[Bugs] [Bug 1218587] New: directory become root ownership when the directories are created in parallel on two different mounts

bugzilla at redhat.com bugzilla at redhat.com
Tue May 5 10:19:26 UTC 2015


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

            Bug ID: 1218587
           Summary: directory become root ownership when the directories
                    are created in parallel on two different mounts
           Product: GlusterFS
           Version: 3.5.2
         Component: core
          Severity: urgent
          Assignee: bugs at gluster.org
          Reporter: away.huang at gmail.com
                CC: bugs at gluster.org, gluster-bugs at redhat.com



Created attachment 1022150
  --> https://bugzilla.redhat.com/attachment.cgi?id=1022150&action=edit
trace-level log filtered by directory name, with some additional info

Description of problem:

at my  testing environment, one DHT glusterfs volume is created on one server ,
with only one brick. 4 clients mount the same volume, app on the client do the
same thing in parallel:
1. mkdir the same directory
2. create different files in above directory.

app runs with none-root user. the problem is that sometimes the ownership will
be "root" after mkdir, which in turn failed the app. 

it is not 100% reproducable. trace-level log is attached (filtered by grepping
the directory name). from the log, it seems the problem is possible caused by
"setattr" in parallel.

the same problem also happened in our product environment  (glusterfs, afr, 3
replicas) by the same application, but not sure if it is the same cause because
with log level is set to info, i can only see the same setatt failure info
(operation not permitted).


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


How reproducible:



Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list