Bug 1515155

Summary: [CephFS] cephfs mounting is not possible with Simplified creation of CephFS client keyring command
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Shreekar <sshreeka>
Component: CephFSAssignee: Patrick Donnelly <pdonnell>
Status: CLOSED NOTABUG QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 3.0CC: ceph-eng-bugs, john.spray
Target Milestone: rc   
Target Release: 3.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-20 16:00:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Shreekar 2017-11-20 09:29:51 UTC
Description of problem:
cephfs mounting is possible with both ceph-fuse and kernel client. Command to create keyring:ceph fs authorize cephfs client.1 rw r

Version-Release number of selected component (if applicable):

ceph version 12.2.1-39.el7cp (22e26be5a4920c95c43f647b31349484f663e4b9) luminous (stable)

How reproducible:
Always

Steps to Reproduce:
1.Setup ceph cluster with mds active.
2.Create keyring with ceph fs authorize cephfs client.1 rw r
3.Mount fs in the client dir.

Actual results:
With ceph-fuse:
[root@magna101 ~]# sudo ceph-fuse -n client.demo -m magna118:6789 /mnt/mycephfs/
2017-11-20 09:06:11.098517 7fcb1a582040 -1 init, newargv = 0x559d03a298c0 newargc=9
ceph-fuse[76137]: starting ceph client
ceph-fuse[76137]: ceph mount failed with (1) Operation not permitted

With Kernel client:
[root@magna101 ceph]# sudo  mount -t ceph magna118:6789:/ /mnt/mycephfs/ -o name=demo,secretfile=/etc/ceph/demo.secret
mount error 13 = Permission denied


Expected results:
Should mount the client directory.

Comment 3 Shreekar 2017-11-20 16:00:13 UTC
It failed because of path.
ubuntu@magna115:~$ sudo ceph fs authorize cephfs client.foo / r / rw
[client.foo]
	key = AQB07BJa9zP0MxAAH/+TvbqsmxxcPxyC4nJ9Ow==
client.foo
	key: AQB07BJa9zP0MxAAH/+TvbqsmxxcPxyC4nJ9Ow==
	caps: [mds] allow r, allow rw
	caps: [mon] allow r
	caps: [osd] allow rw pool=cephfs_data
ubuntu@magna115:~$ sudo ceph-fuse -n client.foo /mnt/cephfs/
2017-11-20 15:34:54.660136 7f764d991080 -1 init, newargv = 0x561a7f6a17a0 newargc=9ceph-fuse[23778]: starting ceph client

ceph-fuse[23778]: starting fuse

---
closing it as not a bug.