Bug 989435 - Setting ACL entries fails with glusterfs-3.4.0.12rhs
Summary: Setting ACL entries fails with glusterfs-3.4.0.12rhs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: glusterfs
Version: 2.1
Hardware: Unspecified
OS: Unspecified
high
urgent
Target Milestone: ---
: ---
Assignee: Anand Avati
QA Contact: Anush Shetty
URL:
Whiteboard:
Depends On:
Blocks: 957769 994392
TreeView+ depends on / blocked
 
Reported: 2013-07-29 09:20 UTC by Anush Shetty
Modified: 2015-09-01 23:06 UTC (History)
7 users (show)

Fixed In Version: glusterfs-3.4.0.18rhs-1
Doc Type: Known Issue
Doc Text:
Cause: On the gluster volume, ACL setting doesn't work as expected due to the caching of metadata in client side. Consequence: the ACL setting with 'setfacl' is not visible from 'getfacl' command. Workaround (if any): disable 'stat-prefetch' (or md-cache) translator by 'gluster volume set <VOL> stat-prefetch disable'. Result: After disabling the 'stat-prefetch', ACLs works fine on gluster mount.
Clone Of:
: 994392 (view as bug list)
Environment:
Last Closed: 2013-09-23 22:29:53 UTC
Embargoed:


Attachments (Terms of Use)
Sosreport of 10.70.37.49 . The RHS client was also mounted was this machine. (1.58 MB, application/x-xz)
2013-07-29 09:48 UTC, Anush Shetty
no flags Details
sosreport of 10.70.37.120 (1.58 MB, application/x-xz)
2013-07-29 09:48 UTC, Anush Shetty
no flags Details
sosreport of 10.70.37.132 (1.61 MB, application/x-xz)
2013-07-29 09:50 UTC, Anush Shetty
no flags Details
sosreport of 10.70.37.208 (1.59 MB, application/x-xz)
2013-07-29 09:50 UTC, Anush Shetty
no flags Details

Description Anush Shetty 2013-07-29 09:20:16 UTC
Description of problem: Setting ACL entries to files on RHS fails.


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


How reproducible: Consistenly 


Steps to Reproduce:
1. Create a 2x2 Distributed-Replicate volume

2. Mount RHS client
   mount -t glusterfs -o acl 10.70.37.49:acl /mnt/gluster

3. Create file on mount point and set ACL entries on the file
   
   # touch file1

   [root@rhs3 gluster]# ls
   file1

   [root@rhs3 gluster]# getfacl file1
   # file: file1
   # owner: root
   # group: root
   user::rw-
   group::r--
   other::r--

   [root@rhs3 gluster]# setfacl -m u:test:r-- file1

   [root@rhs3 gluster]# getfacl file1
   # file: file1
   # owner: root
   # group: root
   user::rw-
   group::r--
   other::r--



Actual results:

Setfacl command fails to set acl entries.


Expected results:

This is a regression. Setting ACL entries should succeed. 

Additional info:

# gluster volume info acl
 
Volume Name: acl
Type: Distributed-Replicate
Volume ID: 4c8234b4-8d74-4048-97a9-0d2f519996d1
Status: Started
Number of Bricks: 2 x 2 = 4
Transport-type: tcp
Bricks:
Brick1: 10.70.37.49:/glance2/s1
Brick2: 10.70.37.120:/glance2/s2
Brick3: 10.70.37.132:/glance2/s3
Brick4: 10.70.37.208:/glance2/s4

Comment 2 Anush Shetty 2013-07-29 09:48:00 UTC
Created attachment 779714 [details]
Sosreport of 10.70.37.49 . The RHS client was also mounted was this machine.

Comment 3 Anush Shetty 2013-07-29 09:48:52 UTC
Created attachment 779715 [details]
sosreport of 10.70.37.120

Comment 4 Anush Shetty 2013-07-29 09:50:01 UTC
Created attachment 779716 [details]
sosreport of 10.70.37.132

Comment 5 Anush Shetty 2013-07-29 09:50:43 UTC
Created attachment 779717 [details]
sosreport of 10.70.37.208

Comment 6 Amar Tumballi 2013-07-29 17:26:43 UTC
Can you confirm if doing 'gluster volume set <VOL> stat-prefetch off' and doing the same operations fixes the problem?

Next question is, if there is a work around, is it a blocker?

Comment 7 Anush Shetty 2013-07-30 06:07:02 UTC
(In reply to Amar Tumballi from comment #6)
> Can you confirm if doing 'gluster volume set <VOL> stat-prefetch off' and
> doing the same operations fixes the problem?
> 
> Next question is, if there is a work around, is it a blocker?

It is not really about setting stat-prefetch off. But after any graph change, I see that setting ACLs work.

Comment 8 Amar Tumballi 2013-07-30 11:47:35 UTC
If you disable 'stat-prefetch', no more graph changes are required. We are working on a fix for this. But till that time, (for all ACL tests) can you proceed with stat-prefetch disabled.

Comment 10 Anush Shetty 2013-08-08 06:28:16 UTC
Verified with glusterfs-3.4.0.18rhs-1.el6rhs.x86_64

Comment 11 Scott Haines 2013-09-23 22:29:53 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.

http://rhn.redhat.com/errata/RHBA-2013-1262.html


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