Bug 994421

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: [Red Hat Storage] Red Hat Gluster Storage Reporter: senaik
Component: distributeAssignee: Nithya Balachandran <nbalacha>
Status: CLOSED DEFERRED QA Contact: storage-qa-internal <storage-qa-internal>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.1CC: rhs-bugs, spalai, vbellur
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1286099 (view as bug list) Environment:
Last Closed: 2015-11-27 10:48:05 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: 1286099, 1669937    

Description senaik 2013-08-07 09:10:03 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 


Version-Release number of selected component (if applicable):
===========================================================
3.4.0.16rhs-1.el6rhs.x86_64

How reproducible:
================
Always


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

2.Fuse / NFS 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 


Additional info:
===================
[root@boost ~]# gluster v i distribute
 
Volume Name: distribute
Type: Distribute
Volume ID: 60b2cc68-e8b8-48e5-b7e0-3daaa0411ec1
Status: Started
Number of Bricks: 6
Transport-type: tcp
Bricks:
Brick1: 10.70.34.85:/rhs/brick1/b1
Brick2: 10.70.34.86:/rhs/brick1/b2
Brick3: 10.70.34.87:/rhs/brick1/b3
Brick4: 10.70.34.88:/rhs/brick1/b4
Brick5: 10.70.34.86:/rhs/brick1/b5
Brick6: 10.70.34.87:/rhs/brick1/b6