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:
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?
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.
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.
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.
The access-mode annotation of the default storageclass has been configured. But the another storageclass gp2 is not configured, and still has the issue.
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?
The bug is verified on Online clusters.