Bug 1951600

Summary: [4.6.z][Clone of BZ #1936545] setuid and setgid file bits are not retained after a OCS CephFS CSI restore
Product: [Red Hat Storage] Red Hat OpenShift Container Storage Reporter: Mudit Agarwal <muagarwa>
Component: cephAssignee: Scott Ostapovicz <sostapov>
Status: CLOSED ERRATA QA Contact: Jilju Joy <jijoy>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 4.6CC: bniver, ebenahar, hchiramm, hekumar, jespy, jijoy, jmatthew, khiremat, krodger, madam, muagarwa, nberry, ndevos, ocs-bugs, rabhat, rraja, smerrow, srangana, vshankar, ygupta, yipng
Target Milestone: ---Keywords: AutomationBackLog, ZStream
Target Release: OCS 4.6.5   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: 4.6.5-411.ci Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1936545 Environment:
Last Closed: 2021-06-17 15:46:42 UTC Type: ---
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: 1936545, 1938669    
Bug Blocks:    

Comment 8 Jilju Joy 2021-05-27 11:44:29 UTC
Steps performed to verify this bug:

1. Create CephFS PVC 'pvc-cephfs-test' and attach it to an app pod running on node1
2. Copy an executable file to the app pod.
Output from app pod:
# ls -l hello_world.py
-rwsrwsr-x 1 1000 1000 21 May 27 11:14 hello_world.py
3. Create a snapshot of the PVC 'pvc-cephfs-test'
4. Restore the snapshot to create a PVC 'pvc-cephfs-test-snapshot-restore' and attach it to a pod 'pod2' running on node2.
Output from pod2:
# ls -l hello_world.py
-rwsrwsr-x 1 1000 1000 21 May 27 11:14 hello_world.py

5. Clone the PVC 'pvc-cephfs-test' to create PVC 'pvc-cephfs-test-clone'.
6. Attach the cloned PVC 'pvc-cephfs-test-clone' to a pod 'pod3' running on node3.
Output from pod3:
# ls -l hello_world.py
-rwsrwsr-x 1 1000 1000 21 May 27 11:14 hello_world.py

's' bits are retained in restored (step 4) and cloned (step 6) PVC.

Verified in version:
OCS 4.6.5-411.ci
OCP 4.6.0-0.nightly-2021-05-27-000320
14.2.11-147.el8cp (1f54d52f20d93c1b91f1ec6af4c67a4b81402800) nautilus (stable)

Comment 16 errata-xmlrpc 2021-06-17 15:46:42 UTC
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: Red Hat OpenShift Container Storage 4.6.5 security and bug fix 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.

https://access.redhat.com/errata/RHSA-2021:2479