Bug 1753660 - PVC for v2v-imported VM does not reflect kubevirt-storageclass-defaults
Summary: PVC for v2v-imported VM does not reflect kubevirt-storageclass-defaults
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: V2V
Version: 2.1.0
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: 2.2.0
Assignee: Brett Thurber
QA Contact: Ilanit Stein
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-09-19 14:36 UTC by Tomas Jelinek
Modified: 2020-01-30 16:27 UTC (History)
3 users (show)

Fixed In Version: 4.2.0-0.nightly-2019-09-20-225712
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-01-30 16:27:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
error_screenshot.png (94.34 KB, image/png)
2019-12-16 10:47 UTC, Ilanit Stein
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2020:0307 0 None None None 2020-01-30 16:27:23 UTC

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


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