Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1499889

Summary: md-cache uses incorrect xattr keynames for GF_POSIX_ACL keys
Product: [Community] GlusterFS Reporter: Guenther Deschner <gdeschner>
Component: md-cacheAssignee: Guenther Deschner <gdeschner>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.12CC: bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-glusterfs-3.12.3 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1476295 Environment:
Last Closed: 2017-11-29 05:52:17 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: 1476295    
Bug Blocks:    

Description Guenther Deschner 2017-10-09 14:36:22 UTC
+++ This bug was initially created as a clone of Bug #1476295 +++

Description of problem:

The caching of GF_POSIX_ACL_DEFAULT and GF_POSIX_ACL_ACCESS keys is not done correctly because mdc_key_load_set() tries to enable the caching with an inappropriate prefix.

"glusterfs.posix_acl." does not match "glusterfs.posix.acl" nor "glusterfs.posix.default_acl"

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

--- Additional comment from Worker Ant on 2017-07-28 10:28:45 EDT ---

REVIEW: https://review.gluster.org/17909 (md-cache: Use correct xattr keynames for virtual glusterfs ACLs.) posted (#1) for review on master by Günther Deschner (gd)

--- Additional comment from Worker Ant on 2017-07-29 16:54:29 EDT ---

COMMIT: https://review.gluster.org/17909 committed in master by Jeff Darcy (jeff.us) 
------
commit 5fe8555800cbc9818e7c976f63499795a378cd8d
Author: Günther Deschner <gd>
Date:   Wed Jul 26 18:10:33 2017 +0200

    md-cache: Use correct xattr keynames for virtual glusterfs ACLs.
    
    The "glusterfs.posix_acl." prefix does not catch the glusterfs posix acl
    xattr keynames which are
    
    	* "glusterfs.posix.acl" and
    	* "glusterfs.posix.default_acl"
    
    Using the GF_POSIX_ACL_ACCESS and GF_POSIX_ACL_DEFAULT defines directly
    is the savest option.
    
    Guenther
    
    Change-Id: I5aba64b26b6cbec850ea02316dd9f069400e857f
    BUG: 1476295
    Signed-off-by: Guenther Deschner <gd>
    Reviewed-on: https://review.gluster.org/17909
    Reviewed-by: Michael Adam <obnox>
    Smoke: Gluster Build System <jenkins.org>
    Reviewed-by: Niels de Vos <ndevos>
    Tested-by: Niels de Vos <ndevos>
    CentOS-regression: Gluster Build System <jenkins.org>

Comment 1 Worker Ant 2017-10-09 15:50:45 UTC
REVIEW: https://review.gluster.org/18456 (md-cache: Use correct xattr keynames for virtual glusterfs ACLs.) posted (#1) for review on release-3.12 by Günther Deschner (gd)

Comment 2 Worker Ant 2017-11-06 06:16:01 UTC
COMMIT: https://review.gluster.org/18456 committed in release-3.12 by  

------------- md-cache: Use correct xattr keynames for virtual glusterfs ACLs.

The "glusterfs.posix_acl." prefix does not catch the glusterfs posix acl
xattr keynames which are

	* "glusterfs.posix.acl" and
	* "glusterfs.posix.default_acl"

Using the GF_POSIX_ACL_ACCESS and GF_POSIX_ACL_DEFAULT defines directly
is the savest option.

Guenther

> BUG: 1476295
> Signed-off-by: Guenther Deschner <gd>
> Reviewed-on: https://review.gluster.org/17909
> Reviewed-by: Michael Adam <obnox>
> Smoke: Gluster Build System <jenkins.org>
> Reviewed-by: Niels de Vos <ndevos>
> Tested-by: Niels de Vos <ndevos>
> CentOS-regression: Gluster Build System <jenkins.org>
> (cherry picked from commit 5fe8555800cbc9818e7c976f63499795a378cd8d)
> Signed-off-by: Günther Deschner <gd>

Change-Id: I5aba64b26b6cbec850ea02316dd9f069400e857f
BUG: 1499889
Signed-off-by: Günther Deschner <gd>

Comment 3 Jiffin 2017-11-29 05:52:17 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-glusterfs-3.12.3, please open a new bug report.

glusterfs-glusterfs-3.12.3 has been announced on the Gluster mailinglists [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://lists.gluster.org/pipermail/gluster-devel/2017-November/053983.html
[2] https://www.gluster.org/pipermail/gluster-users/