Bug 1908997

Summary: Unsupported access mode should not be available when creating pvc by cinder-csi-driver/gcp-pd-csi-driver from web-console
Product: OpenShift Container Platform Reporter: Wei Duan <wduan>
Component: Management ConsoleAssignee: Yadan Pei <yapei>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.7CC: aos-bugs, jhadvig, jokerman, yapei
Target Milestone: ---Keywords: UpcomingSprint
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:46:32 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:

Description Wei Duan 2020-12-18 06:36:30 UTC
Description of problem:
New added cinder-csi-driver/gcp-pd-csi-driver from OCP4.7 only support RWO, please make ROX and RWX unavailable for cinder-csi-driver(cinder.csi.openstack.org) and gcp-pd-csi-driver(pd.csi.storage.gke.io).

Need adding more line in https://github.com/openshift/console/blob/master/frontend/public/components/storage/shared.ts
'cinder.csi.openstack.org': ['ReadWriteOnce'],
'pd.csi.storage.gke.io': ['ReadWriteOnce'],

Version-Release number of selected component (if applicable):
4.7.0-0.nightly-2020-12-14-080124

How reproducible:
Always

Steps to Reproduce:
On osp and GCE cluster:
from web console -> Storage -> Persistent Volume Claim -> Create Persistent Volume Claim -> Select standard-csi as storageclass


Actual results:
RWX and RWO access mode could be selected when creating pvc by cinder-csi-driver/gcp-pd-csi-driver from web-console

Expected results:
RWX and RWO access mode should not be available when creating pvc by cinder-csi-driver/gcp-pd-csi-driver from web-console

Comment 2 Yadan Pei 2021-01-26 08:33:34 UTC
On OSP cluster:
from web console -> Storage -> Persistent Volume Claim -> Create Persistent Volume Claim -> Select the sc provisioned by cinder.csi.openstack.org, only Single User (RWO) is enabled, RWX and ROX are disabled

On GCE cluster:
from web console -> Storage -> Persistent Volume Claim -> Create Persistent Volume Claim -> Select the sc provisioned by pd.csi.storage.gke.io, only Single User (RWO) is enabled, RWX and ROX are disabled

verified on 4.7.0-0.nightly-2021-01-26-024127

Comment 5 errata-xmlrpc 2021-02-24 15:46:32 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