Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1229567 - context of access control translator should be updated properly for GF_POSIX_ACL_*_KEY xattrs
context of access control translator should be updated properly for GF_POSIX_...
Status: CLOSED ERRATA
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: glusterfs (Show other bugs)
3.1
All All
high Severity high
: ---
: RHGS 3.1.0
Assigned To: Jiffin
Apeksha
:
Depends On: 1215174 1226807 1228155 1229564 1229860 1230327
Blocks: 1202842
  Show dependency treegraph
 
Reported: 2015-06-09 02:02 EDT by Jiffin
Modified: 2015-07-29 00:59 EDT (History)
13 users (show)

See Also:
Fixed In Version: glusterfs-3.7.1-8
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1226807
Environment:
Last Closed: 2015-07-29 00:59:41 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1495 normal SHIPPED_LIVE Important: Red Hat Gluster Storage 3.1 update 2015-07-29 04:26:26 EDT

  None (edit)
Description Jiffin 2015-06-09 02:02:06 EDT
+++ This bug was initially created as a clone of Bug #1226807 +++

Description of problem:
Ganesha caches the ACLs for a directory too long, needs some re-validation or something. nfs4_setfacl will fails due to that. but succeeds when nfs-ganesha is restarted or when there is a sufficient delay.

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

How reproducible:
always

Steps to Reproduce:
1.Create and start a volume

2.Export a volume using nfs-ganesha

3.Create any user(user1) and group(group1) in the server and client

4.Mount the volume using nfs4 protocol

5.create directory at mount point : mkdir src

6.set acl(default acl for directory) using nfs4_setfacl on src: nfs4_setfacl -a A:gdf:group1@example.com:RWX src 

Actual results:

nfs4_setfacl fails, but succeeds when there is a sufficient delay or when ganesha is restarted.

Expected results:

nfs4_setfacl should succeed

Additional info:
The POSIX ACLs on the brick are set correctly. May be need to invalidate the dentry.
Comment 4 Jiffin 2015-06-16 02:10:58 EDT
This is a known issue , should be fixed in next release.
Comment 6 Jiffin 2015-06-24 09:20:45 EDT
It is related to access control translator in gluster code, when an acl is set on directory , it update the in memory context of access control translator.
A simple workaround for this issue is perform 'ls' on the directory after setting the acl.
Comment 10 Jiffin 2015-07-04 05:01:11 EDT
The patch is posted at https://code.engineering.redhat.com/gerrit/#/c/52284/
Comment 11 Jiffin 2015-07-16 04:36:40 EDT
This one fixed is in https://code.engineering.redhat.com/gerrit/#/c/52284/
Comment 12 Apeksha 2015-07-20 03:05:54 EDT
nfs4_setfacl succeeds.
    
Output:

    # mkdir /mnt/vol5/src1
     
    # nfs4_setfacl -a A:gdf:acl_group@lab.eng.blr.redhat.com:RWX /mnt/vol5/src1
    # nfs4_getfacl /mnt/vol5/src1/
    A::OWNER@:rwaDxtTcCy
    A::GROUP@:rxtcy
    A:g:acl_group@lab.eng.blr.redhat.com:rwaDxtcy
    A::EVERYONE@:rxtcy
    A:fdi:OWNER@:tcy
    A:fdi:GROUP@:tcy
    A:fdig:acl_group@lab.eng.blr.redhat.com:rwaDxtcy
    A:fdi:EVERYONE@:tcy
Comment 13 errata-xmlrpc 2015-07-29 00:59:41 EDT
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://rhn.redhat.com/errata/RHSA-2015-1495.html

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