Bug 2227035 - Custom StorageClass names not working for external mode cluster.
Summary: Custom StorageClass names not working for external mode cluster.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat OpenShift Data Foundation
Classification: Red Hat Storage
Component: ocs-operator
Version: 4.14
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Nikhil Ladha
QA Contact: Elad
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-27 14:06 UTC by Parag Kamble
Modified: 2023-08-14 07:30 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-14 07:30:55 UTC
Embargoed:


Attachments (Terms of Use)

Description Parag Kamble 2023-07-27 14:06:26 UTC
Description of problem (please be detailed as possible and provide log
snippests): 
This case was tested to qualify feature RHSTOR-4124. When applying the custom storageclass names in the storagecluster object in the external mode storagecluster, those names are not being reflected as storageclass. 


Version of all relevant components (if applicable):


Does this issue impact your ability to continue to work with the product
(please explain in detail what is the user impact)?


Is there any workaround available to the best of your knowledge? No


Rate from 1 - 5 the complexity of the scenario you performed that caused this
bug (1 - very simple, 5 - very complex)?


Can this issue reproducible? Yes


Can this issue reproduce from the UI? NO


If this is a regression, please provide more details to justify this:


Steps to Reproduce:
1. Setup a external mode cluster.
2. Edit storagecluster object.
   #> oc edit storagecluster ocs-external-storagecluster  -n openshift-storage
3. Add Following custom names in the storagecluster spec.
   
   spec:
    managedResources:
        cephFilesystems:
            storageClassName: custom-storageclass-cephfs
        cephBlockPools:
            storageClassName: custom-storageclass-rbd


4. Wait until the storageclass names are reflected in the 'oc get sc' command output.


Actual results:

Storageclass name defined in the storagecluster object are not reflected int the  'oc get sc' output.



Expected results:
Following are the storageclass out put which not having the new storageclass names as defined in the storagecluster object.

❯ oc get sc                                                                                                                                                    ─╯
NAME                                   PROVISIONER                             RECLAIMPOLICY   VOLUMEBINDINGMODE      ALLOWVOLUMEEXPANSION   AGE
ocs-external-storagecluster-ceph-rbd   openshift-storage.rbd.csi.ceph.com      Delete          Immediate              true                   14h
ocs-external-storagecluster-cephfs     openshift-storage.cephfs.csi.ceph.com   Delete          Immediate              true                   14h
openshift-storage.noobaa.io            openshift-storage.noobaa.io/obc         Delete          Immediate              false                  82m
thin-csi (default)                     csi.vsphere.vmware.com                  Delete          WaitForFirstConsumer   true                   27h
 


Additional info:

This tests was done with the ODF-4.14.0.77 build.


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