Bug #68453
closedmds: Failed to create a file on a path eventhough mds auth caps has 'rw' on the path
100%
Description
Also seen in the https://bugzilla.redhat.com/show_bug.cgi?id=2316919
[root@ceph-amk-top-bh9z9m-node8 ~]# ceph fs subvolume getpath cephfs subvol_1
/volumes/_nogroup/subvol_1/33a3d82f-93b9-470d-b937-e2b20552deb8
[root@ceph-amk-top-bh9z9m-node8 ~]# ceph fs authorize cephfs client.test_auth / r /volumes/_nogroup/subvol_1/33a3d82f-93b9-470d-b937-e2b20552deb8/ rw
[client.test_auth]
key = AQC......
[root@ceph-amk-top-bh9z9m-node8 ~]# ceph auth get client.test_auth -o /etc/ceph/ceph.client.test_auth.keyring
[root@ceph-amk-top-bh9z9m-node8 ~]# mkdir /mnt/cephfuse
[root@ceph-amk-top-bh9z9m-node8 ~]# ceph-fuse -n client.test_auth /mnt/cephfuse/ -r / --client_fs cephfs
2024-10-07T04:37:07.430-0400 7fd06d40b480 -1 init, newargv = 0x7fd05c004bd0 newargc=15
ceph-fuse6552: starting ceph client
ceph-fuse6552: starting fuse
[root@ceph-amk-top-bh9z9m-node8 ~]# ceph auth get ceph-fuse -n client.test_auth /mnt/cephfuse/ -r / --client_fs cephfs ^C
[root@ceph-amk-top-bh9z9m-node8 ~]# ^C
[root@ceph-amk-top-bh9z9m-node8 ~]# ceph auth get client.test_auth
[client.test_auth]
key = AQC.......
caps mds = "allow r fsname=cephfs, allow rw fsname=cephfs path=/volumes/_nogroup/subvol_1/33a3d82f-93b9-470d-b937-e2b20552deb8/"
caps mon = "allow r fsname=cephfs"
caps osd = "allow rw tag cephfs data=cephfs"
[root@ceph-amk-top-bh9z9m-node8 ~]# cd /mnt/cephfuse/
[root@ceph-amk-top-bh9z9m-node8 cephfuse]# touch auth_test_file
touch: cannot touch 'auth_test_file': Permission denied
[root@ceph-amk-top-bh9z9m-node8 cephfuse]# cd volumes/_nogroup/subvol_1/33a3d82f-93b9-470d-b937-e2b20552deb8/
[root@ceph-amk-top-bh9z9m-node8 33a3d82f-93b9-470d-b937-e2b20552deb8]#
[root@ceph-amk-top-bh9z9m-node8 33a3d82f-93b9-470d-b937-e2b20552deb8]# touch auth_test_file
touch: cannot touch 'auth_test_file': Permission denied
Updated by Kotresh Hiremath Ravishankar over 1 year ago
- Status changed from New to Pending Backport
Updated by Kotresh Hiremath Ravishankar over 1 year ago ยท Edited
The tracker is being raised after the PR is merged to track the backports of reef, quincy. The fix is present in squid as part of the branch out.
Updated by Kotresh Hiremath Ravishankar over 1 year ago
- Assignee set to Kotresh Hiremath Ravishankar
Updated by Upkeep Bot over 1 year ago
- Copied to Backport #68454: quincy: mds: Failed to create a file on a path eventhough mds auth caps has 'rw' on the path added
Updated by Upkeep Bot over 1 year ago
- Copied to Backport #68455: reef: mds: Failed to create a file on a path eventhough mds auth caps has 'rw' on the path added
Updated by Konstantin Shalygin about 1 year ago
- Status changed from Pending Backport to Resolved
- % Done changed from 0 to 100
Updated by Patrick Donnelly 9 months ago
- Merge Commit set to 38d614c85df9f9690c896b072a86aa618e23b213
- Fixed In set to v19.0.0-678-g38d614c85df9