Instead of user having to manually write out auth caps syntax, provide a command that allows them to grant access to a client ID by filesystem name.
Upstream ticket: http://tracker.ceph.com/issues/20885
We need a new upstream point release since this PR landed after v12.1.2 was tagged.
Moving this bug to verified state. Command used for verification [ubuntu@host028 ~]$ sudo ceph --cluster qetest fs authorize cephfs client.fs rw r [client.fs] key = AQDO1MJZU4JtOBAAvBocj+CzsNDp3Cogk2FsMw==
The caps created by the command [ubuntu@host028 ~]$ sudo ceph --cluster qetest fs authorize cephfs client.fs rw r [client.fs] key = AQDO1MJZU4JtOBAAvBocj+CzsNDp3Cogk2FsMw== [ubuntu@host028 ~]$ sudo ceph --cluster qetest auth get client.fs exported keyring for client.fs [client.fs] key = AQDO1MJZU4JtOBAAvBocj+CzsNDp3Cogk2FsMw== caps mds = "allow r path=rw" caps mon = "allow r" caps osd = "allow r pool=cephfs_data" Command: ceph fs authorize <fs_name> <entity> <caps>
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:3387