Bug 2227035

Summary: Custom StorageClass names not working for external mode cluster.
Product: [Red Hat Storage] Red Hat OpenShift Data Foundation Reporter: Parag Kamble <pakamble>
Component: ocs-operatorAssignee: Nikhil Ladha <nladha>
Status: CLOSED NOTABUG QA Contact: Elad <ebenahar>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.14CC: muagarwa, nladha, odf-bz-bot
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-14 07:30:55 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:

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.