Bug 1306218

Summary: quota: xattr trusted.glusterfs.quota.limit-objects not healed on a root of newly added brick
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Vijaikumar Mallikarjuna <vmallika>
Component: quotaAssignee: Manikandan <mselvaga>
Status: CLOSED ERRATA QA Contact: Anil Shah <ashah>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rhgs-3.1CC: rcyriac, rhinduja, rhs-bugs, sankarshan, smohan, storage-qa-internal
Target Milestone: ---Keywords: ZStream
Target Release: RHGS 3.1.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.7.9-2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1306220 (view as bug list) Environment:
Last Closed: 2016-06-23 05:07:39 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: 1299184, 1306220, 1312954    

Description Vijaikumar Mallikarjuna 2016-02-10 10:55:36 UTC
If a quota is enabled on a volume and object-limit is set on root directory.
Now, if a new brick is added, usage-limit is getting healed on a root directory but object-limit is not healing.

Comment 2 Vijaikumar Mallikarjuna 2016-02-10 11:01:25 UTC
Patch submitted upstream: http://review.gluster.org/#/c/13422/

Comment 4 Mike McCune 2016-03-28 23:44:20 UTC
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see mmccune with any questions

Comment 5 Vijaikumar Mallikarjuna 2016-04-07 03:04:31 UTC
Fix 'http://review.gluster.org/#/c/13422/" available in 3.1.3 as part of rebase

Comment 7 Anil Shah 2016-04-26 07:56:32 UTC
xattr atibutests befote adding brick on replica 0 

[root@dhcp46-4 ~]# getfattr -d -m . -e  hex /rhs/brick1/b1/
getfattr: Removing leading '/' from absolute path names
# file: rhs/brick1/b1/
security.selinux=0x73797374656d5f753a6f626a6563745f723a756e6c6162656c65645f743a733000
trusted.gfid=0x00000000000000000000000000000001
trusted.glusterfs.dht=0x000000010000000000000000aab565b0
trusted.glusterfs.quota.dirty=0x3000
trusted.glusterfs.quota.limit-objects.1=0x00000000000003e8ffffffffffffffff
trusted.glusterfs.quota.limit-set.1=0x0000000280000000ffffffffffffffff
trusted.glusterfs.quota.size.1=0x000000000000040000000000000000020000000000000006
trusted.glusterfs.volume-id=0x22b9542504ab40a8b119a19b82778dbf

[root@dhcp47-46 ~]# getfattr -d -m  . -e   hex /rhs/brick1/b2/
getfattr: Removing leading '/' from absolute path names
# file: rhs/brick1/b2/
security.selinux=0x73797374656d5f753a6f626a6563745f723a756e6c6162656c65645f743a733000
trusted.gfid=0x00000000000000000000000000000001
trusted.glusterfs.dht=0x000000010000000000000000aab565b0
trusted.glusterfs.quota.dirty=0x3000
trusted.glusterfs.quota.limit-objects.1=0x00000000000003e8ffffffffffffffff
trusted.glusterfs.quota.limit-set.1=0x0000000280000000ffffffffffffffff
trusted.glusterfs.quota.size.1=0x000000000000040000000000000000020000000000000006
trusted.glusterfs.volume-id=0x22b9542504ab40a8b119a19b82778dbf

xattr atibutests after adding brick on replica 0

[root@dhcp46-4 ~]# getfattr -d -m . -e  hex /rhs/brick2/b1/getfattr: Removing leading '/' from absolute path names
# file: rhs/brick2/b1/
security.selinux=0x73797374656d5f753a6f626a6563745f723a756e6c6162656c65645f743a733000
trusted.gfid=0x00000000000000000000000000000001
trusted.glusterfs.quota.limit-objects.1=0x00000000000003e8ffffffffffffffff
trusted.glusterfs.quota.limit-set.1=0x0000000280000000ffffffffffffffff
trusted.glusterfs.volume-id=0x22b9542504ab40a8b119a19b82778dbf


[root@dhcp47-46 ~]# getfattr -d -m  . -e   hex /rhs/brick2/b2/
getfattr: Removing leading '/' from absolute path names
# file: rhs/brick2/b2/
security.selinux=0x73797374656d5f753a6f626a6563745f723a756e6c6162656c65645f743a733000
trusted.gfid=0x00000000000000000000000000000001
trusted.glusterfs.quota.limit-objects.1=0x00000000000003e8ffffffffffffffff
trusted.glusterfs.quota.limit-set.1=0x0000000280000000ffffffffffffffff
trusted.glusterfs.volume-id=0x22b9542504ab40a8b119a19b82778dbf

xattr attributes for limit-object are getting healed on newly added brick.
Bug verified on build glusterfs-3.7.9-2.el7rhgs.x86_64

Comment 11 errata-xmlrpc 2016-06-23 05:07:39 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://access.redhat.com/errata/RHBA-2016:1240