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

Bug 2033333

Summary: MTV must not set volume or access mode when creating a DataVolume
Product: Migration Toolkit for Virtualization Reporter: Ilanit Stein <istein>
Component: GeneralAssignee: Sam Lucidi <slucidi>
Status: CLOSED ERRATA QA Contact: Igor Braginsky <ibragins>
Severity: medium Docs Contact: Avital Pinnick <apinnick>
Priority: high    
Version: 2.2.0CC: alitke, apinnick, fbladilo, fdewaley, fdupont, istein, jayoung, mguetta
Target Milestone: ---   
Target Release: 2.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-04-04 18:03:42 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 2021-12-16 14:44:15 UTC
Description of problem:
When using a StorageClass like Ceph RBD, we expect to set RWX access mode to enable the live migration feature.
MTV is already using the StorageProfile feature introduced in CNV 4.9, but it is also setting the volume mode to FileSystem and the access mode to RWO, which goes against the design.

It is possible to work around this problem by setting the volume and access modes in the StorageMap CR generated when creating the Plan. Below is an example.

---
apiVersion: forklift.konveyor.io/v1beta1
kind: StorageMap
metadata:
  name: storage-map
  namespace: konveyor-forklift
spec:
  map:
    - destination:
        storageClass: openshift-storage.cephfs.csi.ceph.com
        accessMode: ReadWriteMany
        volumeMode: Block
      source:
        name: iSCSI_Datastore


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

Comment 2 Adam Litke 2021-12-17 13:00:55 UTC
Fabien, see above comment please.

Comment 3 Ilanit Stein 2021-12-19 14:56:15 UTC
The request for this was previously raised here:
Bug 1898254 - Add the ability to override default access and volume modes in storage mapping

Comment 4 Ilanit Stein 2022-01-12 15:48:39 UTC
*** Bug 2032646 has been marked as a duplicate of this bug. ***

Comment 5 Igor Braginsky 2022-02-09 19:54:09 UTC
Validated this bug in MTV 2.3.0-24, access mode is set to RWX as it should.

Comment 8 errata-xmlrpc 2022-04-04 18:03:42 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 (MTV 2.3.0 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/RHEA-2022:1183