Description of problem: When using target SC ceph-rbd/block the vmimport container fails to create Unable to attach or mount volumes: unmounted volumes=[4203f1a6-76ce-d255-3c79-35a333df8f3c-2000], unattached volumes=[default-token-rdjr9 4203f1a6-76ce-d255-3c79-35a333df8f3c-2000 libvirt-domain-xml]: volume 4203f1a6-76ce-d255-3c79-35a333df8f3c-2000 has volumeMode Block, but is specified in volumeMounts Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
The vmimport pod: http://pastebin.test.redhat.com/932545
https://github.com/kubernetes/kubernetes/issues/79794
if i understand correctly, block pvc should got under volumeDevices, and not volumeMounts
The vmimport pod events are quite clear: Unable to attach or mount volumes: unmounted volumes=[4203f1a6-76ce-d255-3c79-35a333df8f3c-2000], unattached volumes=[4203f1a6-76ce-d255-3c79-35a333df8f3c-2000 libvirt-domain-xml default-token-rdjr9]: volume 4203f1a6-76ce-d255-3c79-35a333df8f3c-2000 has volumeMode Block, but is specified in volumeMounts And indeed the MakeGuestConversionJobSpec method [1] only uses volumeMounts, even though the volumes are in Block mode. [1] https://github.com/kubevirt/vm-import-operator/blob/6b83b8a1dd37f1f88b8a3aaa6a68cfd9eb3f105b/pkg/guestconversion/guestconversion.go#L24
https://github.com/kubevirt/vm-import-operator/pull/464
This downstream images are part of hco-bundle-registry-container-v2.6.0-520 and onward. Moving to ON_QA.
Verified on hco-bundle-registry-container-v2.6.0-520. VM import from VMware via api of a RHEL7 VM to target Ceph-RBD/Block ended successfully and VM was started OK. (Tested with "default" namespace).
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: OpenShift Virtualization 2.6.0 security and bug fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2021:0799