Bug 1386669

Summary: FSAL_GLUSTER : nfs4_acl functions is not working on latest ganesha rpms
Product: Red Hat Gluster Storage Reporter: Jiffin <jthottan>
Component: nfs-ganeshaAssignee: Frank Filz <ffilz>
Status: CLOSED ERRATA QA Contact: surabhi <sbhaloth>
Severity: high Docs Contact:
Priority: high    
Version: rhgs-3.2CC: ffilz, jthottan, kkeithle, mzywusko, ndevos, rcyriac, rhinduja, rhs-bugs, sbhaloth, skoduri, storage-qa-internal
Target Milestone: ---Keywords: Regression
Target Release: RHGS 3.2.0   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: nfs-ganesha-2.4.1-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-23 06:24:46 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:
Bug Depends On:    
Bug Blocks: 1351528    

Description Jiffin 2016-10-19 12:17:09 UTC
Description of problem:
Both nfs4_getfal/nfs4_setfacl is not working on latest ganesha builds. On the getattr/setattr call at FSAL_GLUSTER condition for acl enabled is always bypassing(glfs_h_acl_set/get is never called)

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

How reproducible:
always

Steps to Reproduce:
1.Create and Start glusterfs volume
2.Export the volume
3.Enable acl for that volume
4.Mount the volume
5.Create a file and call nfs4_getfacl on that file

Actual results:
Returns NULL

Expected results:
Should Return default values

Additional info:

Comment 3 Soumya Koduri 2016-10-20 21:43:41 UTC
Fixes submitted so far:

https://review.gerrithub.io/299006
https://review.gerrithub.io/299040

Comment 5 Soumya Koduri 2016-11-09 11:38:21 UTC
With the latest ganesha build provided, the ACLs functionalities have been working well esp., nfs4_getfacl and nfs4_setfacl work as expected. Moving this bug to ON_QA.

[root@dhcp35-197 ~]# nfs4_getfacl /mnt/dir1/
A::OWNER@:rwaDxtTcCy
A::GROUP@:rwaDxtcy
A::EVERYONE@:rxtcy

Comment 9 surabhi 2016-11-22 11:07:51 UTC
Verified with latest build, the nfs4_setfacl and nfs4_getfacl is listing default acls properly on nfsv4 mount.

nfs4_setfacl -a A::alice:RX abc

nfs4_getfacl abc
A::OWNER@:rwaxtTcCy
A::alice:rwaxtcy
A::GROUP@:rwaxtcy
A::EVERYONE@:rwaxtcy


nfs-ganesha-2.4.1-1.el7rhgs.x86_64
nfs-ganesha-gluster-2.4.1-1.el7rhgs.x86_64
glusterfs-ganesha-3.8.4-5.el7rhgs.x86_64


Moving the BZ to verified.

Comment 11 errata-xmlrpc 2017-03-23 06:24:46 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://rhn.redhat.com/errata/RHEA-2017-0493.html