Bug 1951600 - [4.6.z][Clone of BZ #1936545] setuid and setgid file bits are not retained after a OCS CephFS CSI restore
Summary: [4.6.z][Clone of BZ #1936545] setuid and setgid file bits are not retained af...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenShift Container Storage
Classification: Red Hat Storage
Component: ceph
Version: 4.6
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: ---
: OCS 4.6.5
Assignee: Scott Ostapovicz
QA Contact: Jilju Joy
URL:
Whiteboard:
Depends On: 1936545 1938669
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-20 14:32 UTC by Mudit Agarwal
Modified: 2021-06-17 15:47 UTC (History)
21 users (show)

Fixed In Version: 4.6.5-411.ci
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1936545
Environment:
Last Closed: 2021-06-17 15:46:42 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2021:2479 0 None None None 2021-06-17 15:47:05 UTC

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


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