Ceph - mounting a sub-directory with kernel client cephfs on RHEL 7.4 fails with "is write-protected, mounting read-only" or "mount error 13 = Permission denied"
Issue
Mounting filesystem with kernel client with user capabilities restricted to specific sub-directory fails with:
[root@node-0 ~]# uname -a
Linux node-0.sevenfour.lab.pnq2.cee.redhat.com 3.10.0-693.el7.x86_64 #1 SMP Thu Jul 6 19:56:57 EDT 2017 x86_64 x86_64 x86_64 GNU/Linux
[root@node-0 ~]# mount -v -t ceph 10.74.177.14:6789,10.74.181.231:6789,10.74.181.42:6789:/ceph-ansible/ /mnt/ -o name=1,secret=AQA9jYJg4Y48CRAA0MvFXbPS9Iyd8J52Cs0+lA==
mount: 10.74.177.14:6789,10.74.181.231:6789,10.74.181.42:6789:/ceph-ansible/ is write-protected, mounting read-only
mount: cannot mount 10.74.177.14:6789,10.74.181.231:6789,10.74.181.42:6789:/ceph-ansible/ read-only
Environment
Red Hat Enterprise Linux 7.4 version and below
Red Hat Ceph Storage
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.