Bug 1492617

Summary: [starter][pro][dedicated] User is presented options to select PVC Access Modes that are invalid for Storage Class in web console
Product: OpenShift Online Reporter: Will Gordon <wgordon>
Component: UnknownAssignee: Zac Herman <zherman>
Status: CLOSED CURRENTRELEASE QA Contact: yasun
Severity: low Docs Contact:
Priority: low    
Version: 3.xCC: aos-bugs, hekumar, jokerman, mmccomas, spadgett, yufchang, zherman
Target Milestone: ---Keywords: OnlinePro, OnlineStarter
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://github.com/openshift/origin-web-console/pull/2797
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-30 15:38:18 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 Will Gordon 2017-09-18 10:21:07 UTC
Description of problem:
When creating a PVC for storage, the only storage class option currently available is 'ebs', which is ONLY able to create with an Access Mode of RWO, however the user is presented with all 3 options for access mode, RWO, RWX, ROX.

Version-Release number of selected component (if applicable):
OpenShift Master: v3.6.173.0.21 (online version 3.5.1.76)
Kubernetes Master: v1.6.1+5115d708d7

How reproducible:
always

Steps to Reproduce:
1. Open web console
2. Browse to create storage
3. Select RWX or ROW for access modes with 'ebs' storage class

Actual results:
PVC is indefinitely pending

Expected results:
RWX and ROW options should not be visible as they are invalid options for 'ebs' storage class.

Additional info:

Comment 1 Abhishek Gupta 2017-09-28 15:15:01 UTC
Sam: Is there a way to restrict these access mode options? Is this a configuration setting for the storage class or something in the UI?

Comment 2 Samuel Padgett 2017-10-16 11:39:13 UTC
There's no way currently to restrict these options in the UI. If the storage class was somehow annotated with the valid choices, we could restrict it, but as far as I know, there's no way for us to tell what options are valid.

Comment 3 Hemant Kumar 2017-10-25 14:17:56 UTC
I have opened a trello card for Storage team - https://trello.com/c/NNjFExmr/579-rfe-allow-users-to-know-accessmodes-supported-by-volume-type . We will try and see if we can come to a consensus about this.

Comment 4 Zac Herman 2018-02-09 22:59:57 UTC
Created PR 2797: https://github.com/openshift/origin-web-console/pull/2797 for this issue.  This uses annotations as suggested and will have to work for now until we can architect a more robust solution.

Comment 5 yasun 2018-07-11 09:31:03 UTC
The access-mode annotation of the default storageclass has been configured. But the another storageclass gp2 is not configured, and still has the issue.

Comment 6 yasun 2018-07-18 02:03:13 UTC
For the storageclass gp2 is a backup storageclass for Ops, we only concern the default storageclass on online.

The fix has been deployed on Online, could this bug be moved to ON_QA?

Comment 7 yasun 2018-07-19 09:22:22 UTC
The bug is verified on Online clusters.