Bug 1887551

Summary: Unsupported access mode should not be available to select when creating pvc by aws-ebs-csi-driver(gp2-csi) from web-console
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: Management ConsoleAssignee: Jakub Hadvig <jhadvig>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: low Docs Contact:
Priority: low    
Version: 4.6CC: aos-bugs, jokerman, jsafrane, spadgett, yapei
Target Milestone: ---   
Target Release: 4.6.z   
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: 2020-12-21 13:23:55 UTC Type: ---
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: 1887380    
Bug Blocks:    

Description OpenShift BugZilla Robot 2020-10-12 19:12:49 UTC
+++ This bug was initially created as a clone of Bug #1887380 +++

Created attachment 1720910 [details]
unsupport access mode

Description of problem:
When creating a pvc from web-console in aws cluster, if choose gp2-csi as storageclass, we can select the RWX and RWO access mode while they are not supported for aws-ebs-csi-driver(gp2-csi),  
Please make them unavailable like gp2.

Version-Release number of selected component (if applicable):
4.6.0-0.nightly-2020-10-10-041109

How reproducible:
Always

Steps to Reproduce:
See attachment

Actual results:
RWX and RWO access mode could be selected when creating pvc by aws-ebs-csi-driver(gp2-csi) from web-console

Expected results:
RWX and RWO access mode should not be available when creating pvc by aws-ebs-csi-driver(gp2-csi) from web-console

--- Additional comment from jsafrane on 2020-10-12 15:19:38 UTC ---

In 4.6 we added few new CSI drivers. Listing their supported volume modes below:

manila.csi.openstack.org: ['ReadWriteOnce', 'ReadWriteMany', 'ReadOnlyMany']
ebs.csi.aws.com:  ['ReadWriteOnce']
csi.ovirt.org: ['ReadWriteOnce']

Comment 5 Yadan Pei 2020-12-17 06:12:02 UTC
when storageclass has provisioner as ebs.csi.aws.com, when creating PVC only `Single User (RWO)` access mode can be selected

Verified on 4.6.0-0.nightly-2020-12-16-201440

Comment 7 errata-xmlrpc 2020-12-21 13:23:55 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 Container Platform 4.6.9 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-2020:5614