Feature #59388
Updated by Rishabh Dave about 1 year ago
MDS capabilities can take 5 parameters: FS name, path, root squash, UID and GIDs. It's possible to have first 3 together in a MDS cap and also to have later 2 together in a MDS cap. But it's not possible to combine the two group fully or partially.
Following commands run successfully -
<pre>
MONCAP="allow rw"
OSDCAP="allow rw tag cephfs data=a"
ceph auth add mon "$MONCAP" osd "$OSDCAP" mds "allow rw fsname=cephfs1"
ceph auth add mon "$MONCAP" osd "$OSDCAP" mds "allow rw fsname=cephfs1 path=dir1/dir2"
ceph auth add mon "$MONCAP" osd "$OSDCAP" mds "allow rw uid=1000"
ceph auth add mon "$MONCAP" osd "$OSDCAP" mds "allow rw gids=1000,1001,1002"
ceph auth add mon "$MONCAP" osd "$OSDCAP" mds "allow rw uid=1000 gids=1000,1001,1002"
</pre>
But following commands don't run successfully -
<pre>
ceph auth add mon "$MONCAP" osd "$OSDCAP" mds "allow rw fsname=a uid=1000"
ceph auth add mon "$MONCAP" osd "$OSDCAP" mds "allow rw fsname=a gids=1000,1001,1002"
ceph auth add mon "$MONCAP" osd "$OSDCAP" mds "allow rw fsname=a uid=1000 gids=1000,1001,1002"
</pre>