[Bugs] [Bug 1287539] [GSS] - Xattrs on directories are unavailable on distributed replicated volume after adding new bricks

bugzilla at redhat.com bugzilla at redhat.com
Wed Dec 2 10:38:54 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1287539



--- Comment #2 from Susant Kumar Palai <spalai at redhat.com> ---
Description of problem:

Adding new bricks to a distributed replicated volume results in unavailability
of xattrs on directories on distributed replicated volume where gluster is
creating the dirs on the new bricks but not with the appropriate xattrs as
xattrs on files are fine.

How reproducible:

1. Create test volume and start
gluster vol create test replica 2 server1:/brick01/bricksrv01/test
server2:/brick01/bricksrv02/test ; gluster vol test start

2. Mount the volume via fuse
mkdir -p /mnt/gluster/test; mount -t glusterfs -o defaults,_netdev server1:test
/mnt/gluster/test

3. Generate some dummy data
cd /mnt/gluster/test;mkdir dir{1..20};touch dir{1..20}/testfile

4. Set xattrs on files and directories
find . -exec setfattr -n user.swift.metadata -v dummyMetadataForTesting {} \;

5. Confirm xattrs are retrievable. xattrs should be retrievable for both files
and directories find . -type f -exec getfattr -d -m. -e text {} \; find . -type
d -exec getfattr -d -m. -e text {} \;

6. Add 2 new bricks to volume
gluster vol add-brick test replica 2 server3:/brick01/bricksrv03/test
server4:/brick01/bricksrv04/test

7. Rebalance the volume.

8. Try and retrieve xattrs on files. This should succeed.
find . -type f -exec getfattr -d -m. -e text {} \;

9. Try and retrieve xattrs on dirs. All dirs should fail with
"user.swift.metadata: No such attribute"
Find . -type d -exec getfattr -d -m. -e text {} \;

Actual results:

"user.swift.metadata: No such attribute" xattrs on directory after adding
bricks.

Expected results:

Result with user.swift.metadata="dummyMetadataForTesting" xattrs as per file
after adding bricks.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Bugs mailing list