Bug 2059248 - Change default fsgroupchange policy for CephFS driver from NONE to OnRootMismatch
Summary: Change default fsgroupchange policy for CephFS driver from NONE to OnRootMism...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat OpenShift Data Foundation
Classification: Red Hat Storage
Component: rook
Version: 4.10
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: ODF 4.10.0
Assignee: Humble Chirammal
QA Contact: Rachael
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-28 15:10 UTC by Humble Chirammal
Modified: 2023-08-09 17:03 UTC (History)
8 users (show)

Fixed In Version: 4.10.0-175
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-04-21 09:12:50 UTC
Embargoed:
kramdoss: needinfo+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github red-hat-storage rook pull 355 0 None Merged Bug 2059248: csi: default to ReadWriteOnceWithFSType for cephfs 2022-03-01 16:39:33 UTC
Github rook rook pull 9729 0 None Merged csi: default to ReadWriteOnceWithFSType for cephfs 2022-02-28 15:14:26 UTC

Description Humble Chirammal 2022-02-28 15:10:42 UTC
Description of problem (please be detailed as possible and provide log
snippests):

CSI cephfs driver now  leave the validation of volume permission mode  and adjustment to CO/kubelet based on the FSGroup Change policy in place (ref#https://bugzilla.redhat.com/show_bug.cgi?id=2053156). At present the fsgroup change policy default to NONE for CephFS driver in ODF release which has to be changed to general default value ( CO and RBD driver ) ie `onRootMismatch` 
 



Version of all relevant components (if applicable):

ODF 4.10

Steps to Reproduce:

Having regression check would be enough to validate this change.

Actual results:


Expected results:


Additional info:

Comment 2 Humble Chirammal 2022-03-01 04:44:46 UTC
Karthick, this is the counterpart change of Ceph CSI which we covered in referenced bug, can you provide QE ack on this?

Comment 5 Humble Chirammal 2022-03-07 07:50:01 UTC
It looks like even in release 4.9, the default was not changed to NONE and been kept as "onrootmismatch", if thats the case, no extra verification required on this from this bugzilla report pov.

Comment 6 Humble Chirammal 2022-03-07 07:52:10 UTC
Verified from ODF 4.9 and 4.10 cluster too. Thanks Rachel++

```
2022-03-07 04:40:15.536845 I | op-k8sutil: CSI_RBD_FSGROUPPOLICY="ReadWriteOnceWithFSType" (default)
2022-03-07 04:40:15.547915 I | ceph-csi: CSIDriver object created for driver "openshift-storage.rbd.csi.ceph.com"
2022-03-07 04:40:15.936942 I | op-k8sutil: CSI_CEPHFS_FSGROUPPOLICY="ReadWriteOnceWithFSType" (default)
2022-03-07 04:40:15.950369 I | ceph-csi: CSIDriver object created for driver "openshift-storage.cephfs.csi.ceph.com"
```

```
$ oc get csidriver openshift-storage.cephfs.csi.ceph.com -o yaml
apiVersion: storage.k8s.io/v1
kind: CSIDriver
metadata:
  creationTimestamp: "2022-03-07T04:40:15Z"
  name: openshift-storage.cephfs.csi.ceph.com
  resourceVersion: "39803"
  uid: 2134a1cb-08d8-4721-b2e0-10efe36f3a85
spec:
  attachRequired: true
  fsGroupPolicy: ReadWriteOnceWithFSType
  podInfoOnMount: false
  requiresRepublish: false
  storageCapacity: false
  volumeLifecycleModes:
  - Persistent

```


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