Bug 1917908

Summary: [VMIO] vmimport pod fail to create when using ceph-rbd/block
Product: Container Native Virtualization (CNV) Reporter: Amos Mastbaum <amastbau>
Component: V2VAssignee: Sam Lucidi <slucidi>
Status: CLOSED ERRATA QA Contact: Daniel Gur <dagur>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 2.6.0CC: cnv-qe-bugs, fdupont, istein
Target Milestone: ---Keywords: TestBlocker
Target Release: 2.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-03-10 11:23:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Amos Mastbaum 2021-01-19 16:35:30 UTC
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:

Comment 1 Amos Mastbaum 2021-01-19 16:36:21 UTC
The vmimport pod: http://pastebin.test.redhat.com/932545

Comment 5 Amos Mastbaum 2021-01-20 08:12:12 UTC
if i understand correctly, block pvc should got under volumeDevices, and not volumeMounts

Comment 6 Fabien Dupont 2021-01-20 13:15:36 UTC
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

Comment 8 Fabien Dupont 2021-01-28 08:17:21 UTC
This downstream images are part of hco-bundle-registry-container-v2.6.0-520 and onward. Moving to ON_QA.

Comment 9 Ilanit Stein 2021-01-29 12:33:00 UTC
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).

Comment 12 errata-xmlrpc 2021-03-10 11:23:40 UTC
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