Bug 762667 (GLUSTER-935)

Summary: Directories change mode from 0755 to 0644 automatically
Product: [Community] GlusterFS Reporter: Sachidananda Urs <sac>
Component: coreAssignee: Vijay Bellur <vbellur>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: urgent    
Version: mainlineCC: gluster-bugs, vijay
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Server log files none

Description Sachidananda Urs 2010-05-20 03:30:32 UTC
Created attachment 205 [details]
this is the core dump produced when I start Piranha

Comment 1 Sachidananda Urs 2010-05-20 04:29:01 UTC
His operations are affected by this bug.

Comment 2 Sachidananda Urs 2010-05-20 06:28:59 UTC
Certain directories on gluster filesystem periodically change from mode 0755 to mode 0644. Needless to say, a directory of mode 0644 does not work very well.

It is of course possible that some program in the system is explicitly
chmod'ing the directory to remove the execute bit. However, this problem is not seen on Gluster 2.x. This behavior is seen on Drupal Gardens after Gardens  switched to Gluster 3.0.4.

Further supporting the glusterfs bug theory are these lines from
/var/log/glusterfs/etc-glusterfs-glusterfsd.vol.log, examples of which seem to appear exactly once each time a directory mysteriously changes to not having the execute bit set any more:

[2010-05-19 13:59:05] E [posix.c:2366:posix_open] posix1: open on
/mnt/brick1/theirc/sites/default/files/ctools/css: Is a directory
[2010-05-19 13:59:05] E [posix.c:2146:posix_truncate] posix1: truncate on
/theirc/sites/default/files/ctools/css failed: Is a directory
[2010-05-19 13:59:05] E [posix.c:2366:posix_open] posix1: open on
/mnt/brick1/theirc/sites/default/files/ctools/css: Is a directory


Please find the attached server logs with the bug.

Comment 3 Vijay Bellur 2010-05-20 07:15:49 UTC
Can we get the client logs from there as well?

Comment 4 Anand Avati 2010-05-26 08:40:16 UTC
PATCH: http://patches.gluster.com/patch/3317 in release-3.0 (Set op_ret to -1 when open fails in posix_open)

Comment 5 Anand Avati 2010-05-27 06:00:37 UTC
PATCH: http://patches.gluster.com/patch/3320 in master (resolver: set safer conditionals during path creation)

Comment 6 Anand Avati 2010-05-27 06:00:55 UTC
PATCH: http://patches.gluster.com/patch/3321 in release-3.0 (resolver: set safer conditionals during path creation)

Comment 7 Vijay Bellur 2010-09-29 01:54:12 UTC
PATCH: http://patches.gluster.com/patch/5055 in master (resolver: set safer conditionals during path creation)