Bug 1492617 - [starter][pro][dedicated] User is presented options to select PVC Access Modes that are invalid for Storage Class in web console
Summary: [starter][pro][dedicated] User is presented options to select PVC Access Mode...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Unknown
Version: 3.x
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Zac Herman
QA Contact: yasun
URL: https://github.com/openshift/origin-w...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-09-18 10:21 UTC by Will Gordon
Modified: 2018-07-30 15:38 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-07-30 15:38:18 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.