Bug 2128587

Summary: csi rbd and cephfs plugin pods are not recreated after updating flag in rook-ceph-operator-config
Product: [Red Hat Storage] Red Hat OpenShift Data Foundation Reporter: Amrita Mahapatra <ammahapa>
Component: rookAssignee: Nobody <nobody>
Status: CLOSED CURRENTRELEASE QA Contact: Amrita Mahapatra <ammahapa>
Severity: high Docs Contact:
Priority: high    
Version: 4.12CC: muagarwa, ocs-bugs, odf-bz-bot
Target Milestone: ---   
Target Release: ODF 4.12.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-02-08 14:06:28 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: 2039269, 2041432    

Description Amrita Mahapatra 2022-09-21 07:57:49 UTC
Description of problem (please be detailed as possible and provide log
snippests): csi rbd and cephfs plugin pods are not recreated after updating 'CSI_ENABLE_METADATA' flag in 'rook-ceph-operator-config' config map. And 'setmatadata =true' remained for csi-cephfsplugin and csi-rbdplugin under deployment pods, csi-cephfsplugin-provisioner and csi-rbdplugin-provisioner respectively when 'CSI_ENABLE_METADATA' flag is disabled.



Version of all relevant components (if applicable):
OCP version--- 4.12.0-0.nightly-2022-09-18-141547
ODF version--- 4.12.0-56
ceph version--- 16.2.10-41.el8cp
rook version--- v4.12.0-0.ffcae8e019e3e67f76c70c9badde72646034ec79


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


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)? 4


Can this issue reproducible? Yes


Can this issue reproduce from the UI? Yes


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


Steps to Reproduce:
1. Install ODF 4.12 cluster
2. Update 'CSI_ENABLE_METADATA' flag in 'rook-ceph-operator-config' config map from UI or using the patch command below.

oc patch cm rook-ceph-operator-config -n openshift-storage -p $'data:\n "CSI_ENABLE_METADATA":  "true"'

Note:- To update from UI login to web console 
   Workloads --->ConfigMaps
 update configmap yaml for, rook-ceph-operator-config 

3. Check the 'setmatadata =true' and clustername got set for csi-cephfsplugin and csi-rbdplugin under deployment pods, csi-cephfsplugin-provisioner and csi-rbdplugin-provisioner respectively.

4. Check the rbd and cephfs plugin pods get recreated or not.
5. Disable 'CSI_ENABLE_METADATA' flag in 'rook-ceph-operator-config' config map using UI or patch request,

oc patch cm rook-ceph-operator-config -n openshift-storage -p $'data:\n "CSI_ENABLE_METADATA":  "false"'

6. Check the 'setmatadata' should not be set for csi-cephfsplugin and csi-rbdplugin under deployment pods, csi-cephfsplugin-provisioner and csi-rbdplugin-provisioner respectively.

7. Check the rbd and cephfs plugin pods get recreated or not.

Actual results: rbd and cephfs plugin pods are not getting recreated after updating the 'CSI_ENABLE_METADATA' flag in 'rook-ceph-operator-config' config map. And setmatadata =true' remained for csi-cephfsplugin and csi-rbdplugin under deployment pods, csi-cephfsplugin-provisioner and csi-rbdplugin-provisioner respectively when 'CSI_ENABLE_METADATA' flag is disabled.


Expected results: rbd and cephfs plugin pods should get recreated after updating the 'CSI_ENABLE_METADATA' flag in 'rook-ceph-operator-config' config map and 'setmatadata' should not be set for csi-cephfsplugin and csi-rbdplugin under deployment pods, csi-cephfsplugin-provisioner and csi-rbdplugin-provisioner respectively when 'CSI_ENABLE_METADATA' flag is disabled.


Additional info: