Bug 1753660

Summary: PVC for v2v-imported VM does not reflect kubevirt-storageclass-defaults
Product: Container Native Virtualization (CNV) Reporter: Tomas Jelinek <tjelinek>
Component: V2VAssignee: Brett Thurber <bthurber>
Status: CLOSED ERRATA QA Contact: Ilanit Stein <istein>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 2.1.0CC: aos-bugs, cnv-qe-bugs, istein
Target Milestone: ---   
Target Release: 2.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 4.2.0-0.nightly-2019-09-20-225712 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-01-30 16:27:13 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:
Attachments:
Description Flags
error_screenshot.png none

Description Tomas Jelinek 2019-09-19 14:36:52 UTC
Description of problem:
When importing a VM to an env which does not support RWM/filesystem for storage, the import will never be initiated. The consequence, if you only have local or ceph storage in your env (e.g. RHHI.next env), you will not be able to use the v2v feature at all.

Comment 1 Tomas Jelinek 2019-09-19 14:42:26 UTC
https://github.com/openshift/console/pull/2764

Comment 2 Tomas Jelinek 2019-09-30 15:05:49 UTC
Since the v2v has been removed from 2.1.0, retargeting bugs to 2.1.1 to make sure they will be verified on the right version.

Comment 3 Ilanit Stein 2019-12-16 10:46:58 UTC
How to verify (Tomas Jelinek):
best way would probably be to modify the "kubevirt-storage-class-defaults" storage class from openshift-cnv namespace and modify the value for the storage class you are using in a way which does not work. And than try to import and it should fail. Than fix it and try to import and it should pass. This way you should know that the wizard respects the configuration in kubevirt-storage-class-defaults.

# oc -n openshift-cnv edit cm kubevirt-storage-class-defaults
apiVersion: v1
data:
  accessMode: ReadWriteMany  ->  ReadWriteOnce
  local-sc.accessMode: ReadWriteOnce

VM import failed (error_screenshot.png attached).

Then returned it back to ReadWriteMany, and for the same VM import worked fine.

Comment 4 Ilanit Stein 2019-12-16 10:47:49 UTC
Created attachment 1645546 [details]
error_screenshot.png

Comment 6 errata-xmlrpc 2020-01-30 16:27:13 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, 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-2020:0307