[Bugs] [Bug 1253151] New: Sharding - Individual shards' ownership differs from that of the original file

bugzilla at redhat.com bugzilla at redhat.com
Thu Aug 13 06:44:55 UTC 2015


https://bugzilla.redhat.com/show_bug.cgi?id=1253151

            Bug ID: 1253151
           Summary: Sharding - Individual shards' ownership differs from
                    that of the original file
           Product: GlusterFS
           Version: 3.7.3
         Component: sharding
          Keywords: Triaged
          Assignee: bugs at gluster.org
          Reporter: kdhananj at redhat.com
        QA Contact: bugs at gluster.org
                CC: bugs at gluster.org
        Depends On: 1251824



+++ This bug was initially created as a clone of Bug #1251824 +++

Description of problem:
When it comes to creating new shards (this happens as of today during writev()
and readv()), the shard translator uses uid and gid of the requesting process
(frame->root->{uid,gid}) to create the participant shards of a write or a read
request. Sometimes _even_ when a non-root user owns and operates on a sharded
file, the participant shards are found to be owned by root:root in the backend.
This is because write-behind winds a collated writev with uid,gid=0 (for all we
know the different writes that write-behind collates could have come from
different user processes). Here the assumption is that if open() on a file has
already succeeded for a given file and an fd is returned, subsequent change of
permissions shall have no effect on the writes that are performed through this
particular fd.

Even so, shard translator should be creating participant shards with the same
uid and gid as that of the original owner of the actual file.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

--- Additional comment from Krutika Dhananjay on 2015-08-10 10:00:10 EDT ---

http://review.gluster.org/#/c/11874/

--- Additional comment from Anand Avati on 2015-08-13 02:34:51 EDT ---

REVIEW: http://review.gluster.org/11874 (features/shard: Ensure shards are
owned by the same owner/group as the original file) posted (#3) for review on
master by Krutika Dhananjay (kdhananj at redhat.com)


Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=1251824
[Bug 1251824] Sharding - Individual shards' ownership differs from that of
the original file
-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list