Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1864351

Summary: [RFE][v2v][UI][RHV to CNV VM import] Allow volume mode Block
Product: OpenShift Container Platform Reporter: Ilanit Stein <istein>
Component: Console Kubevirt PluginAssignee: Yaacov Zamir <yzamir>
Status: CLOSED ERRATA QA Contact: Maayan Hadasi <mguetta>
Severity: medium Docs Contact:
Priority: low    
Version: 4.5CC: aos-bugs, awels, fkrepins, mguetta, yzamir
Target Milestone: ---Keywords: FutureFeature
Target Release: 4.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-27 16:23:11 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 Ilanit Stein 2020-08-03 19:18:17 UTC
Description of problem:
On OCP-4.5/CNV-2.4,
the VM import from RHV target storage volume mode choice box is static and contain the default "Filesystem" option.
With this RFE added in CNV-2.5:
Bug 1857926 - [RFE][v2v][RHV to CNV VM import] Add support for block volumes
Please add the "block" option  

Version-Release number of selected component (if applicable):
OCP-4.5

Comment 1 Yaacov Zamir 2020-08-04 06:07:05 UTC
The Jira issue, for book keeping: https://issues.redhat.com/browse/CNV-5823

Comment 2 Filip Krepinsky 2020-08-10 17:06:27 UTC
it seems the support for this should be in master of vm-import-operator already.

@Yaacov It seems the target release of the vm-import-operator fix is CNV 2.5? What version of CNV is going to be released with openshift 4.6? Could we implement this RFE now?

Comment 3 Yaacov Zamir 2020-08-10 17:24:28 UTC
I am planned to reinstall our server today, got stuck on some BZs :-) will upgrade soon.

Comment 4 Yaacov Zamir 2020-08-10 17:27:17 UTC
cnv 2.5 will be released with openshift 4.6,
so if back end will have the feature in 2.5 we can support it in 4.6 UI

Comment 5 Filip Krepinsky 2020-08-10 17:34:51 UTC
cool, if there would be a version mismatch, then any import would fail on unknown fields

Comment 8 Maayan Hadasi 2020-09-30 10:20:16 UTC
I managed to import RHV to CNV fedora32 VM using ceph-RBD storage class, VolumeMode: Block
CNV 2.5.0 / OCP 4.6.0-fc.8

I tested it with same source VM configured as follow:
1. placement_policy is set to <affinity>migratable</affinity> --> Disk Access Mode in CNV side: RWX
2. placement_policy is set to <affinity>user_migratable</affinity> --> RWO
3. placement_policy is set to <affinity>pinned</affinity> (non_migratable) --> RWO

In all cases import was ended successfully.

@Alex 
Based on what you mentioned here: https://bugzilla.redhat.com/show_bug.cgi?id=1864577#c4 I expected that VM import using block/RWO will fail
Was it changed and we can import using ceph-rbd block, either RWO/RWX?

Comment 9 Alexander Wels 2020-09-30 11:16:55 UTC
Hi,

So for ceph-rbd the following 3 combinations will work:
1. RWO FileSystem
2. RWO Block
3. RWX Block
The 4th combination doesn't work.

So your outcome is expected.

Comment 10 Maayan Hadasi 2020-09-30 11:42:35 UTC
Verified as fixed.

Versions:
OCP 4.6.0-fc.8
CNV 2.5.0

I Was able to import RHV VM using ceph-rbd, Block, RWO/RWX

Comment 12 errata-xmlrpc 2020-10-27 16:23:11 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 (OpenShift Container Platform 4.6 GA Images), 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/RHBA-2020:4196