Bug 1061585

Summary: Remove-brick: File permission (setuid) changes after migration of the file
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: shylesh <shmohan>
Component: glusterfsAssignee: vsomyaju
Status: CLOSED ERRATA QA Contact: Amit Chaurasia <achauras>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.1CC: mzywusko, nbalacha, nlevinki, nsathyan, rcyriac, sharne, surs, vagarwal, vbellur, vsomyaju
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 3.0.3   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: glusterfs-3.6.0.33-1 Doc Type: Bug Fix
Doc Text:
Previously, if the setuid bit of a file was set and if the file was migrated after a remove-brick operation, after the file migration, the setuid bit did not exist. With this fix, changes are made to ensure that the file permissions retain the setuid bit even after file migration.
Story Points: ---
Clone Of:
: 1086228 1168549 (view as bug list) Environment:
Last Closed: 2015-01-15 13:36:59 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: 1086228, 1162573, 1162694, 1168549    

Description shylesh 2014-02-05 07:02:29 UTC
Description of problem:
If a file has setuid bit set and if it is migrated through remove-brick then setuid bit disappears after migration.

Version-Release number of selected component (if applicable):

3.4.0.59rhs-1.el6_4.x86_64
How reproducible:
always

Steps to Reproduce:
1.creted a 6x2  distributed-replicate volume
2. added a new user test and created some files on the mount point as test user
3. set the sticky bit and setuid bit
chmod +t <file> & chmod +s <file>
4. permission becomes 
-rwSrwSr-T
5. Now remove one of the pair using remove-brick command
gluster volume remove-brick <vol> <brick> start 
6. once the migration is complete commit it 
7. check the permissions on the mount point

Actual results:

permission of the file got changed to  -rw-rwSr-T.

so setuid bit is missing for user

 
Additional info:

[root@rhs-client4 ~]# gluster v info
 
Volume Name: dist-rep
Type: Distributed-Replicate
Volume ID: fccb1682-2a43-4925-a030-d303aaa43352
Status: Started
Number of Bricks: 2 x 2 = 4
Transport-type: tcp
Bricks:
Brick1: rhs-client4.lab.eng.blr.redhat.com:/home/dist-rep0
Brick2: rhs-client9.lab.eng.blr.redhat.com:/home/dist-rep1
Brick3: rhs-client4.lab.eng.blr.redhat.com:/home/dist-rep4
Brick4: rhs-client9.lab.eng.blr.redhat.com:/home/dist-rep5

Decommissioned bricks
----------------------
rhs-client4.lab.eng.blr.redhat.com:/home/dist-rep6 rhs-client9.lab.eng.blr.redhat.com:/home/dist-rep7 


cluster info
---------------
rhs-client9.lab.eng.blr.redhat.com
rhs-client40.lab.eng.blr.redhat.com
rhs-client4.lab.eng.blr.redhat.com

client
------
10.70.35.26

mount type nfs
mount point  10.70.35.26:/nfs

attached the sosreports



mount was on

Comment 5 Amit Chaurasia 2014-11-25 10:04:37 UTC
Followed the repro steps and checked the permissions of the file after the migration. The permissions are intact. Closing the bug.

Comment 6 Shalaka 2015-01-09 10:54:57 UTC
Please review and sign-off edited doc text.

Comment 8 errata-xmlrpc 2015-01-15 13:36:59 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, 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://rhn.redhat.com/errata/RHBA-2015-0038.html

Comment 9 Red Hat Bugzilla 2023-09-14 02:03:14 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days