Bug 1936788

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: Jilju Joy <jijoy>
Component: Console Storage PluginAssignee: gowtham <gshanmug>
Status: CLOSED ERRATA QA Contact: Jilju Joy <jijoy>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.7CC: afrahman, aos-bugs, jokerman, nthomas, ocs-bugs
Target Milestone: ---   
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1939021 (view as bug list) Environment:
Last Closed: 2021-07-27 22:51:56 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:
Bug Depends On:    
Bug Blocks: 1939021    
Attachments:
Description Flags
Screenshot of Create Persistent Volume Claim page which shows Filesystem volume mode selection while creating RBD RWX PVC
none
Screenshot-Volume mode default to Block if RBD StorageClass and RWX Access mode is selected none

Description Jilju Joy 2021-03-09 07:20:00 UTC
Created attachment 1761930 [details]
Screenshot of Create Persistent Volume Claim page which shows Filesystem volume mode selection while creating RBD RWX PVC

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:

Comment 2 Jilju Joy 2021-06-15 06:21:17 UTC
Created attachment 1791143 [details]
Screenshot-Volume mode default to Block if RBD StorageClass and RWX Access mode is selected

Volume mode selection is disabled if RBD StorageClass and RWX Access mode is selected. The volume mode Block will be enabled by default. Tested this using 'ocs-storagecluster-ceph-rbd' and 'ocs-storagecluster-ceph-rbd-thick'  storage classes.

Verified in version:
OCP 4.8.0-0.nightly-2021-06-13-101614
ocs-operator.v4.8.0-416.ci

Comment 5 errata-xmlrpc 2021-07-27 22:51:56 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.8.2 bug fix and security 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-2021:2438