Bug 762667 (GLUSTER-935) - Directories change mode from 0755 to 0644 automatically
Summary: Directories change mode from 0755 to 0644 automatically
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-935
Product: GlusterFS
Classification: Community
Component: core
Version: mainline
Hardware: All
OS: Linux
urgent
high
Target Milestone: ---
Assignee: Vijay Bellur
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-05-20 06:28 UTC by Sachidananda Urs
Modified: 2015-12-01 16:45 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)
Server log files (20.00 KB, application/x-tar)
2010-05-20 03:30 UTC, Sachidananda Urs
no flags Details

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)


Note You need to log in before you can comment on or make changes to this bug.