Skip to contentSkip to conversation

cephfs (hammer) flips directory access bits

DISCUSSION CSa 3 participants 5 messages Jan 7, 2016 – Jan 14, 2016

lore
Share & tools
lore

CSa

author
#0 lore raw

Hi,

we are using cephfs on a ceph cluster (V0.94.5, 3x MON, 1x MDS, ~50x OSD). Recently, we observed a spontaneous (and unwanted) change in the access rights of newly created directories:

$ umask
0077
$ mkdir test 
$ ls -ld test
drwx------ 1 me me 0 Jan  6 14:59 test
$ touch test/foo
$ ls -ld test
drwxrwxrwx 1 me me 0 Jan  6 14:59 test
$

I kindly would like to ask for help tracking down this issue.

ciao
Christian

#1 lore raw
Quoted 16 lines · CSa

Hi,

we are using cephfs on a ceph cluster (V0.94.5, 3x MON, 1x MDS, ~50x OSD). Recently, we observed a spontaneous (and unwanted) change in the access rights of newly created directories:

$ umask
0077
$ mkdir test
$ ls -ld test
drwx------ 1 me me 0 Jan  6 14:59 test
$ touch test/foo
$ ls -ld test
drwxrwxrwx 1 me me 0 Jan  6 14:59 test
$
Quoted 1 line

I kindly would like to ask for help tracking down this issue.

Huh. Which clients are you using? What changes have you made to your ceph cluster or environment recently?

In any case, set mds debug to 20 and client debug to 20 on the node you're testing on (if you're using ceph-fuse), run this test, post the logs, and create a ticket in the tracker pointing at them, please. (You can use ceph-post-file if you don't have storage space and it'll upload to our lab.)
-Greg

#2 lore raw
In reply to CSa
Quoted 6 lines · CSa

Hi,

we are using cephfs on a ceph cluster (V0.94.5, 3x MON, 1x MDS, ~50x OSD). Recently, we observed a spontaneous (and unwanted) change in the access rights of newly created directories:

Quoted 9 lines
$ umask
0077
$ mkdir test
$ ls -ld test
drwx------ 1 me me 0 Jan  6 14:59 test
$ touch test/foo
$ ls -ld test
drwxrwxrwx 1 me me 0 Jan  6 14:59 test
$

do you use kernel client? I remember an ACL related bug in old kernel can cause this. mount cephfs with '-o noacl' option can avoid this issue.

Quoted 10 lines

I kindly would like to ask for help tracking down this issue.

ciao
Christian

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
Quoted 3 lines · Zheng

do you use kernel client? I remember an ACL related bug in old kernel can cause this. mount cephfs with '-o noacl' option can avoid this issue.

yes, we use the kernel client (in Debian stable) and yes, mounting with 'noacl' avoids this issue. Good catch!

Do you eventually have a pointer to the patch fixing this bug?
I am convinced the patch could be backported to the kernel in Debian Jessie (as long as it's not too intrusive).

thank you
Christian

Signature · 4 lines
Christian Salzmann                     [email protected]
IT-Dienst                              Takustraße 9, 14195 Berlin
Fachbereich Mathematik und Informatik  http://www.mi.fu-berlin.de
Freie Universität Berlin
#4 lore raw
Quoted 6 lines · Christian Salzmann
Quoted 3 lines · Zheng

do you use kernel client? I remember an ACL related bug in old kernel can cause this. mount cephfs with '-o noacl' option can avoid this issue.

Quoted 6 lines

yes, we use the kernel client (in Debian stable) and yes, mounting with 'noacl' avoids this issue. Good catch!

Do you eventually have a pointer to the patch fixing this bug?
I am convinced the patch could be backported to the kernel in Debian Jessie (as long as it's not too intrusive).

https://github.com/ceph/ceph-client/commit/f5f186474335ac385def69564542e6e4c6a3a8bd

Regards
Yan, Zheng