Closed qwang1 closed 6 years ago
Version: kubevirt v0.7.0, cdi-controller:v1.0.0, asb 1.2.17
Downloaded image http://www.tinycorelinux.net/9.x/x86/release/TinyCore-9.0.iso , it worked.
Downloaded image from http://download.eng.bos.redhat.com/brewroot/packages/rhel-guest-image/7.6/70/images/rhel-guest-image-7.6-70.x86_64.qcow2
[root@cnv-executor-qwang-711-master1 ~]# oc project qwang-import-vm-3
Now using project "qwang-import-vm-3" on server "https://cnv-executor-qwang-711-master1:8443".
[root@cnv-executor-qwang-711-master1 ~]# oc get all
NAME READY STATUS RESTARTS AGE
pod/importer-vm-qwang-rhel7-vm-3-disk-01-x7mt7 0/1 Error 0 4m
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/glusterfs-dynamic-vm-qwang-rhel7-vm-3-disk-01 ClusterIP 172.30.244.129 <none> 1/TCP 4m
[root@cnv-executor-qwang-711-master1 ~]# oc logs pod/importer-vm-qwang-rhel7-vm-3-disk-01-x7mt7
I0711 12:47:38.327644 1 importer.go:31] Starting importer
I0711 12:47:38.328505 1 importer.go:36] beginning import from "http://download.eng.bos.redhat.com/brewroot/packages/rhel-guest-image/7.6/70/images/rhel-guest-image-7.6-70.x86_64.qcow2"
W0711 12:47:38.328583 1 dataStream.go:66] IMPORTER_ACCESS_KEY_ID and/or IMPORTER_SECRET_KEY env variables are empty
I0711 12:47:38.423430 1 util.go:49] begin import...
E0711 12:48:45.254591 1 importer.go:39] exit status 1
could not convert qcow2 image to raw
github.com/kubevirt/containerized-data-importer/pkg/image.ConvertQcow2ToRaw
/go/src/github.com/kubevirt/containerized-data-importer/pkg/image/qemu.go:38
github.com/kubevirt/containerized-data-importer/pkg/importer.copy
/go/src/github.com/kubevirt/containerized-data-importer/pkg/importer/dataStream.go:303
github.com/kubevirt/containerized-data-importer/pkg/importer.(*dataStream).copy
/go/src/github.com/kubevirt/containerized-data-importer/pkg/importer/dataStream.go:283
github.com/kubevirt/containerized-data-importer/pkg/importer.CopyImage
/go/src/github.com/kubevirt/containerized-data-importer/pkg/importer/dataStream.go:172
main.main
/go/src/github.com/kubevirt/containerized-data-importer/cmd/importer/importer.go:37
runtime.main
/usr/local/go/src/runtime/proc.go:198
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:2361
unable to copy image
Questions:
Thanks.
I think this issue belongs to the CDI repo. qcow2 to raw is supported, we demonstrated this flow
I used a small sized qcow2, it works.
Hi there,
I failed to use import-vm-apb to import a vm or template via URL. I used this as disk image: http://download.eng.bos.redhat.com/brewroot/packages/rhel-guest-image/7.6/70/images/rhel-guest-image-7.6-70.x86_64.qcow2 . Anything I did wrong? Besides, I'd like to know why the command "oc logs" shows it sticks when "Get content metadata", but run ansible-playbook in the sandbox shows it sticks when "Change project". Thanks.
Version: openshift v3.10.8 kubevirt v0.7.0-alpha.5 asb 1.2.17