Bug 2097586

Summary: AccessMode should stay on ReadWriteOnce while editing a disk with storage class HPP
Product: Container Native Virtualization (CNV) Reporter: Guohua Ouyang <gouyang>
Component: User ExperienceAssignee: Aviv Turgeman <aturgema>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.11.0CC: aturgema, cnv-qe-bugs, gouyang
Target Milestone: ---   
Target Release: 4.12.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2101192 (view as bug list) Environment:
Last Closed: 2022-09-14 19:35:59 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:
Bug Depends On:    
Bug Blocks: 2101192    
Attachments:
Description Flags
accessmode none

Description Guohua Ouyang 2022-06-16 04:14:00 UTC
Description of problem:
Currently, while editing the boot source of a cloned template, the accessMode is ReadWriteMany in the opened modal, user may not notice it and then saved, which causes unexpected results. 


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


How reproducible:


Steps to Reproduce:
1. clone a template
2. edit the bootsource of this cloned template
3.

Actual results:
the default access mode is RWX

Expected results:
the default access mode is RWO

Additional info:

Comment 1 Guohua Ouyang 2022-06-16 04:28:48 UTC
The optimized StorageProfile settings should be applied while editing the disk in all places.

Comment 2 Guohua Ouyang 2022-06-20 08:51:34 UTC
"Apply optimized StorageProfile settings" is checked while adding a new disk,
But not checked while editing a existing disk

Comment 3 Guohua Ouyang 2022-06-23 01:53:59 UTC
Created attachment 1892016 [details]
accessmode

Comment 4 Guohua Ouyang 2022-06-23 01:58:54 UTC
Now the "Apply optimized StorageProfile settings" is checked by default, which is very good as it ensures no unexpected results will happen.

But there is still a UI here, it shows "ReadWriteMany" for HPP in the disk modal, which should be "ReadWriteOnce".
If we check the disk attributes after the disk is created, it's actually "ReadWriteOnce", that should be the work of "Apply optimized StorageProfile settings".

Comment 5 Guohua Ouyang 2022-07-27 03:58:23 UTC
verified on v4.12.0-88

Comment 9 errata-xmlrpc 2022-09-14 19:35:59 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 (Important: OpenShift Virtualization 4.11.0 Images security and bug fix 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-2022:6526