{"action":"created","issue":{"url":"https://api.github.com/repos/kubevirt/containerized-data-importer/issues/514","repository_url":"https://api.github.com/repos/kubevirt/containerized-data-importer","labels_url":"https://api.github.com/repos/kubevirt/containerized-data-importer/issues/514/labels{/name}","comments_url":"https://api.github.com/repos/kubevirt/containerized-data-importer/issues/514/comments","events_url":"https://api.github.com/repos/kubevirt/containerized-data-importer/issues/514/events","html_url":"https://github.com/kubevirt/containerized-data-importer/issues/514","id":376868452,"node_id":"MDU6SXNzdWUzNzY4Njg0NTI=","number":514,"title":"gzip uncompression error: \"could not process image header unable to construct readers\"","user":{"login":"jtudelag","id":10809428,"node_id":"MDQ6VXNlcjEwODA5NDI4","avatar_url":"https://avatars1.githubusercontent.com/u/10809428?v=4","gravatar_id":"","url":"https://api.github.com/users/jtudelag","html_url":"https://github.com/jtudelag","followers_url":"https://api.github.com/users/jtudelag/followers","following_url":"https://api.github.com/users/jtudelag/following{/other_user}","gists_url":"https://api.github.com/users/jtudelag/gists{/gist_id}","starred_url":"https://api.github.com/users/jtudelag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtudelag/subscriptions","organizations_url":"https://api.github.com/users/jtudelag/orgs","repos_url":"https://api.github.com/users/jtudelag/repos","events_url":"https://api.github.com/users/jtudelag/events{/privacy}","received_events_url":"https://api.github.com/users/jtudelag/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-02T15:55:35Z","updated_at":"2018-11-02T16:41:26Z","closed_at":null,"author_association":"NONE","body":"<!-- This form is for bug reports and feature requests ONLY!\r\nAlso make sure that you visit our User Guide at https://kubevirt.io/user-guide/\r\n-->\r\n\r\n**Is this a BUG REPORT or FEATURE REQUEST?**:\r\n\r\n> Uncomment only one, leave it on its own line:\r\n>\r\n /kind bug\r\n\r\nNot sure if a bug or expected behaviour.\r\n\r\n**What happened**:\r\nPlaying with CDI, trying to uncompress a gzip file in a volume, actually using the CDI release artifact,\r\nwhich is a tar.gz. https://github.com/kubevirt/containerized-data-importer/archive/v1.3.0.tar.gz\r\n\r\n> oc logs importer-cirros-wbqqd\r\n\r\nI1102 15:47:14.047008       1 importer.go:32] Starting importer\r\nI1102 15:47:14.047344       1 importer.go:37] begin import process\r\nI1102 15:47:14.047369       1 dataStream.go:235] copying \"https://github.com/kubevirt/containerized-data-importer/archive/v1.3.0.tar.gz\" to \"/data/disk.img\"...                                                   \r\nE1102 15:47:15.119924       1 importer.go:40] EOF\r\ncould not process image header\r\nunable to construct readers\r\nkubevirt.io/containerized-data-importer/pkg/importer.newDataStream\r\n        /go/src/kubevirt.io/containerized-data-importer/pkg/importer/dataStream.go:128\r\nkubevirt.io/containerized-data-importer/pkg/importer.NewDataStream\r\n        /go/src/kubevirt.io/containerized-data-importer/pkg/importer/dataStream.go:103\r\nkubevirt.io/containerized-data-importer/pkg/importer.CopyImage\r\n        /go/src/kubevirt.io/containerized-data-importer/pkg/importer/dataStream.go:236\r\nmain.main\r\n        /go/src/kubevirt.io/containerized-data-importer/cmd/cdi-importer/importer.go:38\r\nruntime.main\r\n        /gimme/.gimme/versions/go1.10.linux.amd64/src/runtime/proc.go:198\r\nruntime.goexit\r\n        /gimme/.gimme/versions/go1.10.linux.amd64/src/runtime/asm_amd64.s:2361\r\nunable to create data stream\r\nkubevirt.io/containerized-data-importer/pkg/importer.CopyImage\r\n        /go/src/kubevirt.io/containerized-data-importer/pkg/importer/dataStream.go:238\r\nmain.main\r\n        /go/src/kubevirt.io/containerized-data-importer/cmd/cdi-importer/importer.go:38\r\nruntime.main\r\n        /gimme/.gimme/versions/go1.10.linux.amd64/src/runtime/proc.go:198\r\nruntime.goexit\r\n        /gimme/.gimme/versions/go1.10.linux.amd64/src/runtime/asm_amd64.s:2361\r\n\r\n\r\n**What you expected to happen**:\r\n\r\nTo have the file uncompressed inside the PV.\r\n\r\n**How to reproduce it (as minimally and precisely as possible)**:\r\n\r\n```\r\ncat << EOF > pvc-cirros.yaml\r\napiVersion: v1\r\nkind: PersistentVolumeClaim\r\nmetadata:\r\n  name: \"cirros\"\r\n  labels:\r\n    app: containerized-data-importer\r\n  annotations:\r\n    cdi.kubevirt.io/storage.import.endpoint: \"https://github.com/kubevirt/containerized-data-importer/archive/v1.3.0.tar.gz\"\r\nspec:\r\n  accessModes:\r\n  - ReadWriteOnce\r\n  resources:\r\n    requests:\r\n      storage: 10Gi\r\nEOF\r\n```\r\n\r\nCreate the PVC\r\n```\r\noc create -f pvc-cirros.yaml\r\n```\r\n\r\nSee the CDI Pod logs\r\n```\r\noc logs  importer-cirros-XXX \r\n```\r\n\r\n**Anything else we need to know?**:\r\n\r\n**Environment**:\r\n- CDI version (use `kubectl get deployments cdi-deployment -o yaml`):\r\n\r\n```\r\n- name: IMPORTER_IMAGE\r\n          value: kubevirt/cdi-importer:v1.2.0\r\n        - name: CLONER_IMAGE\r\n          value: kubevirt/cdi-cloner:v1.2.0\r\n        - name: UPLOADSERVER_IMAGE\r\n          value: kubevirt/cdi-uploadserver:v1.2.0\r\n        - name: PULL_POLICY\r\n          value: IfNotPresent\r\n        - name: UPLOADPROXY_SERVICE\r\n          value: cdi-uploadproxy\r\n```\r\n\r\n- Kubernetes version (use `kubectl version`):\r\n```\r\noc version\r\noc v3.9.40\r\nkubernetes v1.9.1+a0ce1bc657\r\nfeatures: Basic-Auth GSSAPI Kerberos SPNEGO\r\n\r\nServer https://master1.4a26.internal:443\r\nopenshift v3.9.40\r\nkubernetes v1.9.1+a0ce1bc657\r\n```\r\n\r\n- Cloud provider or hardware configuration:\r\n- Install tools:\r\n- Others:\r\n\r\nWas palying with @scollier tutorial, used the cdi.sh script to install CDI. No kubevirt installed, just CDI.\r\nhttps://github.com/scollier/kubevirt-tutorial\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/kubevirt/containerized-data-importer/issues/comments/435439872","html_url":"https://github.com/kubevirt/containerized-data-importer/issues/514#issuecomment-435439872","issue_url":"https://api.github.com/repos/kubevirt/containerized-data-importer/issues/514","id":435439872,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTQzOTg3Mg==","user":{"login":"awels","id":4523502,"node_id":"MDQ6VXNlcjQ1MjM1MDI=","avatar_url":"https://avatars3.githubusercontent.com/u/4523502?v=4","gravatar_id":"","url":"https://api.github.com/users/awels","html_url":"https://github.com/awels","followers_url":"https://api.github.com/users/awels/followers","following_url":"https://api.github.com/users/awels/following{/other_user}","gists_url":"https://api.github.com/users/awels/gists{/gist_id}","starred_url":"https://api.github.com/users/awels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awels/subscriptions","organizations_url":"https://api.github.com/users/awels/orgs","repos_url":"https://api.github.com/users/awels/repos","events_url":"https://api.github.com/users/awels/events{/privacy}","received_events_url":"https://api.github.com/users/awels/received_events","type":"User","site_admin":false},"created_at":"2018-11-02T16:41:25Z","updated_at":"2018-11-02T16:41:25Z","author_association":"MEMBER","body":"@jtudelag keep an eye on #498 which will implement exactly what you are looking for. The current unpacking is only for when you have a VM disk image in a tar file."}}
{"actor":{"display_login":"awels"}}