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):
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
PVC will be created with volume mode as Block.
Selection of Volume Mode "Filesystem" should be disabled if RBD storage class and RWX Access Mode is selected.
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:
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.