Bug 862967

Summary: Heal uid/gid of directories in distribute
Product: [Community] GlusterFS Reporter: shishir gowda <sgowda>
Component: distributeAssignee: shishir gowda <sgowda>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: mainlineCC: amarts, gluster-bugs, nsathyan
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.4.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-24 17:11:55 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:

Description shishir gowda 2012-10-04 03:55:22 UTC
Description of problem:
If there is mismatch of uid/gid on a directory, it never gets healed, unless there is over-write of these attrs.

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


How reproducible:
always

Steps to Reproduce:
1. create dir
2. take down one brick
3. change ownership (chown) of dir
4. bring brick back up
  
Actual results:
dir ownerships differ

Expected results:
dir ownership should not differ

Additional info:

Comment 1 shishir gowda 2012-10-11 05:57:39 UTC
Fix out for review (http://review.gluster.org/#change,3964).

To test the fix:
1. Create >2 bricks dht volume
2. Create dir
3. Kill one of the bricks
4. chown on the bricks from client
5. force start volume to brick back the killed process
6. trigger a lookup on client
7. Check backend ownership of dir in question. It should have gotten the latest ownership

Comment 2 Vijay Bellur 2012-11-29 21:56:22 UTC
CHANGE: http://review.gluster.org/3964 (cluster/dht: Heal dir uid/gid) merged in master by Anand Avati (avati)