Bug 1040423 - Able to get "trusted.glusterfs.quota.*" extended attribute from mount point
Summary: Able to get "trusted.glusterfs.quota.*" extended attribute from mount point
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: GlusterFS
Classification: Community
Component: quota
Version: pre-release
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ---
Assignee: Susant Kumar Palai
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-11 12:13 UTC by Susant Kumar Palai
Modified: 2014-11-11 08:25 UTC (History)
2 users (show)

Fixed In Version: glusterfs-3.6.0beta1
Clone Of:
Environment:
Last Closed: 2014-11-11 08:25:38 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description Susant Kumar Palai 2013-12-11 12:13:15 UTC
Description of problem:
========================
We are able to get the "trusted.glusterfs.quota.limit-set" extended-attribute from the client machine

Version-Release number of selected component (if applicable):
==============================================================
glusterfs 3.4.0.35rhs built on Oct 15 2013 14:06:04

How reproducible:
================
Often

Steps to Reproduce:
=======================
1. Create a replicate volume. Start the volume. 

2. Enable quota on the volume. Set limit-usage on "/" for 1GB

3. From the client machine mount the volume. 

4. Execute : "getfattr -d -e hex -m . <mount_point>"

Actual results:
================
root@darrel [Oct-17-2013-12:54:00] >mount -t glusterfs rhs-client11:/vol_rep /mnt/fuse2

root@darrel [Oct-17-2013-12:54:12] >getfattr -d -e hex -m . /mnt/fuse2
getfattr: Removing leading '/' from absolute path names
# file: mnt/fuse2
trusted.glusterfs.quota.limit-set=0x0000000280000000ffffffffffffffff
trusted.glusterfs.volume-id=0x5a934afaff4448568f4032572ed0850f


Expected results:
=================
None of the trusted.glusterfs* attributes should be visible. 


Additional Info:
=================
root@rhs-client11 [Oct-17-2013-12:55:18] >gluster v info vol_rep
 
Volume Name: vol_rep
Type: Replicate
Volume ID: 5a934afa-ff44-4856-8f40-32572ed0850f
Status: Started
Number of Bricks: 1 x 2 = 2
Transport-type: tcp
Bricks:
Brick1: rhs-client11:/rhs/bricks/vol_rep_b0
Brick2: rhs-client12:/rhs/bricks/vol_rep_b1
Options Reconfigured:
features.quota: on
root@rhs-client11 [Oct-17-2013-13:03:45] >gluster v quota vol_rep list
                  Path                   Hard-limit Soft-limit   Used  Available
--------------------------------------------------------------------------------
/                                         10.0GB       80%         N/A     N/A

Able to remove/set the extended attributes to other values from mount point.

trusted.glusterfs.quota.limit-set
==========================================================================
Mount point:
~~~~~~~~~~~~
root@rhs-client14 [Nov-07-2013- 6:00:23] >getfattr -d -e hex -m . /mnt/gm1
getfattr: Removing leading '/' from absolute path names
# file: mnt/gm1
trusted.glusterfs.quota.limit-set=0x0000000280000000ffffffffffffffff

root@rhs-client14 [Nov-07-2013- 6:02:29] >setfattr -x trusted.glusterfs.quota.limit-set .
root@rhs-client14 [Nov-07-2013- 6:02:44] >echo $?
0

Bricks:
~~~~~~~~~~
Volume Name: vol_rep
Type: Replicate
Volume ID: 51f57dab-e803-4e3d-9471-63febc2ed51d
Status: Started
Number of Bricks: 1 x 3 = 3
Transport-type: tcp
Bricks:
Brick1: rhs-client11:/rhs/bricks/b1
Brick2: rhs-client12:/rhs/bricks/b1-rep1
Brick3: rhs-client13:/rhs/bricks/b1-rep2
Options Reconfigured:
features.quota: on
root@rhs-client11 [Nov-07-2013- 6:01:47] >gluster v quota vol_rep list
                  Path                   Hard-limit Soft-limit   Used  Available
--------------------------------------------------------------------------------
/                                         10.0GB       80%      10.0GB  0Bytes

After resetting the "trusted.glusterfs.quota.limit-set" extended attribute. 

root@rhs-client11 [Nov-07-2013- 6:01:52] >gluster v quota vol_rep list
                  Path                   Hard-limit Soft-limit   Used  Available
--------------------------------------------------------------------------------

"trusted.glusterfs.volume-id"
=========================================================================
Mount point:
~~~~~~~~~~~~
root@rhs-client14 [Nov-07-2013- 5:52:07] >find . | xargs getfattr -d -e hex -m .
# file: .
trusted.glusterfs.volume-id=0x51f57dabe8034e3d947163febc2ed51d

root@rhs-client14 [Nov-07-2013- 5:57:04] >setfattr -x trusted.glusterfs.volume-id .
root@rhs-client14 [Nov-07-2013- 5:57:14] >echo $?
0

Bricks:
~~~~~~~~~
root@rhs-client11 [Nov-07-2013- 5:57:26] >getfattr -d -e hex -m . /rhs/bricks/b1/
getfattr: Removing leading '/' from absolute path names
# file: rhs/bricks/b1/
trusted.gfid=0x00000000000000000000000000000001
trusted.glusterfs.dht=0x000000010000000000000000ffffffff

root@rhs-client12 [Nov-07-2013- 5:57:26] >getfattr -d -e hex -m . /rhs/bricks/b1-rep1/
getfattr: Removing leading '/' from absolute path names
# file: rhs/bricks/b1-rep1/
trusted.gfid=0x00000000000000000000000000000001
trusted.glusterfs.dht=0x000000010000000000000000ffffffff


root@rhs-client13 [Nov-07-2013- 5:57:26] >getfattr -d -e hex -m . /rhs/bricks/b1-rep2/
getfattr: Removing leading '/' from absolute path names
# file: rhs/bricks/b1-rep2/
trusted.gfid=0x00000000000000000000000000000001
trusted.glusterfs.dht=0x000000010000000000000000ffffffff

Other extended attributes readable and writable : "trusted.pgfid"

Comment 1 Anand Avati 2013-12-12 06:40:06 UTC
REVIEW: http://review.gluster.org/6490 (fuse: filter glusterfs quota xattrs) posted (#1) for review on master by susant palai (spalai)

Comment 2 Anand Avati 2013-12-15 16:45:56 UTC
REVIEW: http://review.gluster.org/6490 (fuse: filter glusterfs quota xattrs) posted (#2) for review on master by susant palai (spalai)

Comment 3 Anand Avati 2013-12-15 16:57:47 UTC
REVIEW: http://review.gluster.org/6490 (fuse: filter glusterfs quota xattrs) posted (#3) for review on master by susant palai (spalai)

Comment 4 Anand Avati 2013-12-15 17:19:16 UTC
REVIEW: http://review.gluster.org/6490 (fuse: filter glusterfs quota xattrs) posted (#4) for review on master by susant palai (spalai)

Comment 5 Anand Avati 2013-12-16 08:49:38 UTC
REVIEW: http://review.gluster.org/6490 (quota: filter glusterfs quota xattrs) posted (#5) for review on master by susant palai (spalai)

Comment 6 Anand Avati 2013-12-19 09:32:31 UTC
REVIEW: http://review.gluster.org/6490 (quota: filter glusterfs quota xattrs) posted (#6) for review on master by susant palai (spalai)

Comment 7 Anand Avati 2013-12-19 09:34:43 UTC
REVIEW: http://review.gluster.org/6490 (quota: filter glusterfs quota xattrs) posted (#7) for review on master by susant palai (spalai)

Comment 8 Anand Avati 2013-12-19 09:46:16 UTC
REVIEW: http://review.gluster.org/6490 (quota: filter glusterfs quota xattrs) posted (#8) for review on master by susant palai (spalai)

Comment 9 Anand Avati 2013-12-24 07:31:46 UTC
REVIEW: http://review.gluster.org/6490 (quota: filter glusterfs quota xattrs) posted (#9) for review on master by susant palai (spalai)

Comment 10 Anand Avati 2014-01-17 09:41:48 UTC
REVIEW: http://review.gluster.org/6490 (quota: filter glusterfs quota xattrs) posted (#10) for review on master by susant palai (spalai)

Comment 11 Anand Avati 2014-01-17 09:48:24 UTC
REVIEW: http://review.gluster.org/6490 (quota: filter glusterfs quota xattrs) posted (#11) for review on master by susant palai (spalai)

Comment 12 Anand Avati 2014-01-21 03:29:04 UTC
REVIEW: http://review.gluster.org/6490 (quota: filter glusterfs quota xattrs) posted (#12) for review on master by susant palai (spalai)

Comment 13 Anand Avati 2014-01-21 03:38:34 UTC
REVIEW: http://review.gluster.org/6490 (quota: filter glusterfs quota xattrs) posted (#13) for review on master by susant palai (spalai)

Comment 14 Anand Avati 2014-01-21 06:51:40 UTC
REVIEW: http://review.gluster.org/6490 (quota: filter glusterfs quota xattrs) posted (#14) for review on master by susant palai (spalai)

Comment 15 Anand Avati 2014-01-22 08:37:37 UTC
REVIEW: http://review.gluster.org/6490 (quota: filter glusterfs quota xattrs) posted (#15) for review on master by susant palai (spalai)

Comment 16 Anand Avati 2014-01-23 04:43:13 UTC
COMMIT: http://review.gluster.org/6490 committed in master by Vijay Bellur (vbellur) 
------
commit 79683794c2ee9c6b5c1182e2a378598c2037a9ff
Author: Susant Palai <spalai>
Date:   Thu Dec 12 06:20:55 2013 +0000

    quota: filter glusterfs quota xattrs
    
    Change-Id: I86ebe02735ee88598640240aa888e02b48ecc06c
    BUG: 1040423
    Signed-off-by: Susant Palai <spalai>
    Reviewed-on: http://review.gluster.org/6490
    Tested-by: Gluster Build System <jenkins.com>
    Reviewed-by: Raghavendra G <rgowdapp>

Comment 17 Niels de Vos 2014-09-22 12:33:40 UTC
A beta release for GlusterFS 3.6.0 has been released. Please verify if the release solves this bug report for you. In case the glusterfs-3.6.0beta1 release does not have a resolution for this issue, leave a comment in this bug and move the status to ASSIGNED. If this release fixes the problem for you, leave a note and change the status to VERIFIED.

Packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update (possibly an "updates-testing" repository) infrastructure for your distribution.

[1] http://supercolony.gluster.org/pipermail/gluster-users/2014-September/018836.html
[2] http://supercolony.gluster.org/pipermail/gluster-users/

Comment 18 Niels de Vos 2014-11-11 08:25:38 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-3.6.1, please reopen this bug report.

glusterfs-3.6.1 has been announced [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] http://supercolony.gluster.org/pipermail/gluster-users/2014-November/019410.html
[2] http://supercolony.gluster.org/mailman/listinfo/gluster-users


Note You need to log in before you can comment on or make changes to this bug.