Bug 1939021

Summary: RBD RWX PVC creation with Filesystem volume mode selection is creating RWX PVC with Block volume mode instead of disabling Filesystem volume mode selection
Product: OpenShift Container Platform Reporter: gowtham <gshanmug>
Component: Console Storage PluginAssignee: gowtham <gshanmug>
Status: CLOSED WONTFIX QA Contact: Raz Tamir <ratamir>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.7CC: aos-bugs, jijoy, jokerman, nthomas, ocs-bugs, ratamir
Target Milestone: ---   
Target Release: 4.7.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1936788 Environment:
Last Closed: 2021-06-09 06:19:29 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: 1936788    
Bug Blocks:    

Description gowtham 2021-03-15 13:17:37 UTC
+++ This bug was initially created as a clone of Bug #1936788 +++

Description of problem:

If Ceph RBD storage class and RWX access mode is selected, the option to select Volume mode is still enabled. So Filesystem volume mode can be selected for RDB RWX PVC which is not supported. Clicking on create button will not throw any error but the volume mode of the created PVC will be Block.


Version-Release number of selected component (if applicable):
4.7.0-0.nightly-2021-03-06-183610

How reproducible:
Always

Steps to Reproduce:
1. Go to Storage --> PersistentVolumeClaims and click on "Create PersistentVolumeClaim" button.
2. Select project 
3. Select RBD Storage Class and fill Persistent Volume Claim Name.
4. Select Access Mode "Shared Access (RWX)".
5. Give the required PVC Size.
6. Select Volume Mode "Filesystem"
7. Click on "Create" button


Actual results:
PVC will be created with volume mode as Block.


Expected results:
Selection of Volume Mode "Filesystem" should be disabled if RBD storage class and RWX Access Mode is selected. 

Additional info: