Hello,
   I find only ceph.client.admin can mount cephfs.

[root@ceph-base-0 ceph]# ceph auth get client.cephfs_user
exported keyring for client.cephfs_user
[client.cephfs_user]
key = AQDZ3DZWR7nqBxAAzSoU/yRz1oJsOYdYrTAzcw==
caps mds = "allow *"
caps mon = "allow *"
caps osd = "allow *"

[root@cephfs-client ~]# cat ceph.client.cephfs_user
[client.cephfs_user]
key = AQDZ3DZWR7nqBxAAzSoU/yRz1oJsOYdYrTAzcw==

But when i mount fuse, it throw an exception.
[root@cephfs-client ~]# ceph-fuse -k ceph.client.cephfs_user -m
10.12.12.10:6789 -m 10.12.12.6:6789 -m 10.12.12.5:6789 ./test_ceph_fs
2015-11-02 12:23:17.938470 7f9d63f9b760 -1 did not load config file,
using default settings.
ceph-fuse[15325]: starting ceph client
2015-11-02 12:23:17.973134 7f9d63f9b760 -1 init, newargv = 0x2c33f30 newargc=11
ceph-fuse[15325]: ceph mount failed with (1) Operation not permitted
ceph-fuse[15323]: mount failed: (1) Operation not permitted

But when i use client.admin
[root@ceph-base-0 ceph]# ceph auth get client.admin
exported keyring for client.admin
[client.admin]
key = AQCMrhxWhRFBBhAA+f1yZXyjzF2eBrUt1UMdFA==
auid = 0
caps mds = "allow *"
caps mon = "allow *"
caps osd = "allow *"

[root@cephfs-client ~]# ceph-fuse -k ceph.client.admin.keyring -m
10.12.12.10:6789 -m 10.12.12.6:6789 -m 10.12.12.5:6789 ./test_ceph_fs
2015-11-02 12:25:03.038526 7f66e0957760 -1 did not load config file,
using default settings.
ceph-fuse[15360]: starting ceph client
2015-11-02 12:25:03.073797 7f66e0957760 -1 init, newargv = 0x3035f30 newargc=11
ceph-fuse[15360]: starting fuse

It is ok.

So i want to know.
Dose ceph's fuse only allow admin to mount fs?





-- 
谦谦君子
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to