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

Bug 1919876

Summary: VM created via customize wizard cannot inherit template's PVC attributes
Product: OpenShift Container Platform Reporter: Guohua Ouyang <gouyang>
Component: Console Kubevirt PluginAssignee: Matan Schatzman <mschatzm>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.7CC: aos-bugs, gouyang, ycui, yzamir
Target Milestone: ---   
Target Release: 4.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-24 15:55:50 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
template pvc yaml
none
template yaml
none
vm yaml which don't have template PVC's attributes none

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