Bug 1919876 - VM created via customize wizard cannot inherit template's PVC attributes
Summary: VM created via customize wizard cannot inherit template's PVC attributes
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Console Kubevirt Plugin
Version: 4.7
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.7.0
Assignee: Matan Schatzman
QA Contact: Guohua Ouyang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-25 10:42 UTC by Guohua Ouyang
Modified: 2021-02-24 15:56 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-24 15:55:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
template pvc yaml (4.00 KB, text/plain)
2021-01-26 12:19 UTC, Guohua Ouyang
no flags Details
template yaml (6.26 KB, text/plain)
2021-01-26 12:20 UTC, Guohua Ouyang
no flags Details
vm yaml which don't have template PVC's attributes (6.14 KB, text/plain)
2021-01-26 12:21 UTC, Guohua Ouyang
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2020:5633 0 None None None 2021-02-24 15:56:05 UTC

Description Guohua Ouyang 2021-01-25 10:42:50 UTC
Description of problem:
VM created via customize wizard cannot inherit template's PVC attributes.

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

How reproducible:
100%

Steps to Reproduce:
1. Add boot source for a template (with SC=ocs-storagecluster-ceph-rbd accessMode=ReadWriteMany volumeMode=Block)
2. Create vm1 from this template via default wizard by using default settings.
3. Create vm2 from this template via customize wizard by using default settings.

Actual results:
VM1's PVC attributes are same with template's PVC.
VM2's PVC attributes are different, it is SC=standard accessMode=ReadWriteOnce volumeMode=Block

Expected results:
VM2 PVC has the same attributes with the template's PVC.

Additional info:

Comment 1 Yaacov Zamir 2021-01-25 11:58:04 UTC
Note:
UI should always override the target dataVolume's SC, accessMode and volumeMode
https://bugzilla.redhat.com/show_bug.cgi?id=1918294#c8

Comment 2 Guohua Ouyang 2021-01-26 12:19:46 UTC
Created attachment 1750873 [details]
template pvc yaml

Comment 3 Guohua Ouyang 2021-01-26 12:20:26 UTC
Created attachment 1750874 [details]
template yaml

Comment 4 Guohua Ouyang 2021-01-26 12:21:13 UTC
Created attachment 1750875 [details]
vm yaml which don't have template PVC's attributes

Comment 6 Guohua Ouyang 2021-02-02 06:38:05 UTC
verified on master

Comment 9 errata-xmlrpc 2021-02-24 15:55:50 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 Container Platform 4.7.0 security, bug fix, and enhancement 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-2020:5633


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