Bug 1184528
Summary: | Some newly created folders have root ownership although created by unprivileged user | ||
---|---|---|---|
Product: | [Community] GlusterFS | Reporter: | Pranith Kumar K <pkarampu> |
Component: | posix | Assignee: | Pranith Kumar K <pkarampu> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 3.5.3 | CC: | bugs, gluster-bugs, ndevos, pkarampu, vcaron |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | glusterfs-3.5.4 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | 1088649 | Environment: | |
Last Closed: | 2015-06-03 21:08:57 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: | 1088649 | ||
Bug Blocks: | 1171847, 1188082 |
Description
Pranith Kumar K
2015-01-21 15:49:00 UTC
REVIEW: http://review.gluster.org/9473 (storage/posix: Set gfid after all xattrs, uid/gid are set) posted (#1) for review on release-3.5 by Pranith Kumar Karampuri (pkarampu) REVIEW: http://review.gluster.org/9474 (storage/posix: Don't try to set gfid in case of INTERNAL-mknod) posted (#1) for review on release-3.5 by Pranith Kumar Karampuri (pkarampu) COMMIT: http://review.gluster.org/9473 committed in release-3.5 by Niels de Vos (ndevos) ------ commit 0594edfb3c9e2aa5a199ce1e2722b269636b4d4b Author: Pranith Kumar K <pkarampu> Date: Mon Jan 12 12:50:50 2015 +0530 storage/posix: Set gfid after all xattrs, uid/gid are set Backport of http://review.gluster.com/9434 Problem: When a new entry is created gfid is set even before uid/gid, xattrs are set on the entry. This can lead to dht/afr healing that file/dir with the uid/gid it sees just after the gfid is set, i.e. root/root. Sometimes setattr/setxattr are failing on that file/dir. Fix: Set gfid of the file/directory only after uid/gid, xattrs are setup properly. Readdirp, lookup either wait for the gfid to be assigned to the entry or not update the in-memory inode ctx in posix-acl xlator which was producing lot EACCESS/EPERM to the application or dht/afr self-heals. BUG: 1184528 Change-Id: I66459bbf595746ede6869447fb68a7dd23a38b7f Signed-off-by: Pranith Kumar K <pkarampu> Reviewed-on: http://review.gluster.org/9473 Tested-by: Gluster Build System <jenkins.com> Reviewed-by: Niels de Vos <ndevos> COMMIT: http://review.gluster.org/9474 committed in release-3.5 by Niels de Vos (ndevos) ------ commit 10667b43a628af2ce3045126b80763b97fa299e7 Author: Pranith Kumar K <pkarampu> Date: Wed Jan 14 17:10:41 2015 +0530 storage/posix: Don't try to set gfid in case of INTERNAL-mknod Backport of http://review.gluster.org/9446 BUG: 1184528 Change-Id: I4131baf5cf6f6ca6deb5b4f426b34c980a065a9e Signed-off-by: Pranith Kumar K <pkarampu> Reviewed-on: http://review.gluster.org/9474 Tested-by: Gluster Build System <jenkins.com> Reviewed-by: Niels de Vos <ndevos> 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.5.4, please reopen this bug report. glusterfs-3.5.4 has been announced on the Gluster Packaging mailinglist [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://thread.gmane.org/gmane.comp.file-systems.gluster.packaging/2 [2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user |