Project

General

Profile

Bug #5477

Unable to create files on CephFS on Fedora 18 using kernel module

Added by Chris Howarth over 10 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

I have mounted a CephFS filesystem on a Fedora 18 system, which succeeds as follows:

[root@e8c4-dl360g7-03 ceph]# mount -t ceph 10.40.99.165:6789:/ /mnt/cephfs -o name=admin,secret=AQAsublRGAoVChAAHrAp4+WaRBwzftaAibIhMg==

However if I try to create a file this fails:

[root@e8c4-dl360g7-03 cephfs]# touch /mnt/cephfs/newfile
touch: cannot touch /mnt/cephfs/newfile : Permission denied

I can modify an existing file's permissions:

[root@e8c4-dl360g7-03 cephfs]# chmod o+w /mnt/cephfs/chrisfile

One point to note it that my Ceph cluster is runing on RHEL6.4 which has kernel module 2.6.32 which does not support the kernel module itself. I am wondering if both the client and the Ceph cluster require support for the kernel modules (rather than just the client side).

Many thanks

Chris

History

#1 Updated by Sage Weil over 10 years ago

I suspect this is SElinux or something similar getting in the way...

#2 Updated by Greg Farnum over 10 years ago

And you don't need any kernel support to run the Ceph daemons. You should also check the permissions — it's possible something weird happened somewhere and the root mount directory has different permissions than the files you've created elsewhere. (This is most common with FUSE setting the root dir to be owned by root, but Fedora or SELinux or whatever might have done something similar here.)

#3 Updated by Ian Colle over 10 years ago

  • Project changed from teuthology to CephFS

#4 Updated by Chris Howarth over 10 years ago

Many thanks for the responses Sage and Greg. You were right - once I disabled SElinux this worked.

Chris

#5 Updated by Sage Weil over 10 years ago

  • Status changed from New to Resolved

Also available in: Atom PDF