Bug 1669937

Summary: Rebalance : While rebalance is in progress , SGID and sticky bit which is set on the files while file migration is in progress is seen on the mount point
Product: [Community] GlusterFS Reporter: Nithya Balachandran <nbalacha>
Component: distributeAssignee: bugs <bugs>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: high    
Version: mainlineCC: bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: dht-rebalance
Fixed In Version: glusterfs-6.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1286099 Environment:
Last Closed: 2019-02-01 05:30:39 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: 994421, 1286099    
Bug Blocks:    

Description Nithya Balachandran 2019-01-28 05:56:36 UTC
Description of problem:
========================= 
Listing files on the mount point while rebalance is in progress shows SGID and sticky bit set for the files which are still migrating 


Steps to Reproduce:
=================== 
1.Create distributed Volume and start it 

2.Fuse mount the volume and create some files 

3.Add bricks and start rebalance 

4. While rebalance is in progress, ll on the mount point 

-rw-r-Sr-T. 1 root root 10485760 Aug  7 14:18 f371
-rw-r--r--. 1 root root 10485760 Aug  7 11:55 f372
-rw-r--r--. 1 root root 10485760 Aug  7 11:55 f373
-rw-r--r--. 1 root root 10485760 Aug  7 11:55 f374
-rw-r--r--. 1 root root 10485760 Aug  7 11:55 f375
-rw-r--r--. 1 root root 10485760 Aug  7 14:19 f376
-rw-r--r--. 1 root root 10485760 Aug  7 14:19 f377
-rw-r--r--. 1 root root 10485760 Aug  7 11:55 f378
-rw-r--r--. 1 root root 10485760 Aug  7 11:55 f379
-rw-r--r--. 1 root root 10485760 Aug  7 11:47 f38
.
.
.
.

-rw-r--r--. 1 root root 10485760 Aug  7 11:48 f87
-rw-r-Sr-T. 1 root root 10485760 Aug  7 11:48 f88
-rw-r--r--. 1 root root 10485760 Aug  7 11:48 f89
-rw-r--r--. 1 root root 10485760 Aug  7 14:10 f9
-rw-r--r--. 1 root root 10485760 Aug  7 11:48 f90
-rw-r--r--. 1 root root 10485760 Aug  7 11:48 f91



Actual results:
===============
SGID and sticky bit which is set on the files while file migration is going on is seen on the mount point 

Expected results:
================== 
SGID and sticky bit which is set on the files while file migration is going on should not be seen on the mount point

Comment 1 Worker Ant 2019-01-28 06:52:32 UTC
REVIEW: https://review.gluster.org/22103 (cluster/dht: Remove internal permission bits) posted (#1) for review on master by N Balachandran

Comment 2 Worker Ant 2019-02-01 05:30:39 UTC
REVIEW: https://review.gluster.org/22103 (cluster/dht: Remove internal permission bits) merged (#2) on master by N Balachandran

Comment 3 Shyamsundar 2019-03-25 16:33:11 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-6.0, please open a new bug report.

glusterfs-6.0 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] https://lists.gluster.org/pipermail/announce/2019-March/000120.html
[2] https://www.gluster.org/pipermail/gluster-users/