Bug 1917908 - [VMIO] vmimport pod fail to create when using ceph-rbd/block
Summary: [VMIO] vmimport pod fail to create when using ceph-rbd/block
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: V2V
Version: 2.6.0
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: 2.6.0
Assignee: Sam Lucidi
QA Contact: Daniel Gur
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-19 16:35 UTC by Amos Mastbaum
Modified: 2021-03-10 11:24 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-03-10 11:23:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2021:0799 0 None None None 2021-03-10 11:24:48 UTC

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


Note You need to log in before you can comment on or make changes to this bug.