Actions
Bug #72167
closed
KH
KH
MDS authcaps is not working correctly in multifs ceph cluster
Bug #72167:
MDS authcaps is not working correctly in multifs ceph cluster
Status:
Resolved
Priority:
Normal
Assignee:
Category:
Correctness/Safety
Target version:
Due date:
% Done:
0%
Source:
other
Backport:
tentacle,squid,reef
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Client, MDS
Labels (FS):
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
v20.3.0-2706-g3ada514761
Released In:
v21.2.0~2156
Upkeep Timestamp:
2026-10-24T02:02:15+00:00
Description
In a multifs ceph cluster, if a client is authorized to access multiple filesystems,
the authorization doesn't work as per configuration.
Take the following for example.
We tried enabling root_squash on cephfs_1 and root_squash is not enabled on files
cephfs_2
[root@ceph-amk-cbt-dqfqfu-node7 mnt]# ceph auth get client.client_4
[client.client_4]
key = AQAzc3lm0D6+LxAAT9ptpMMjjP09cBh1039LzQ==
caps mds = "allow rw fsname=cephfs_1 root_squash, allow rw fsname=cephfs_1 path=/volumes, allow rw fsname=cephfs_2"
caps mon = "allow *"
caps osd = "allow rw tag cephfs_1 data=cephfs_1, allow rw tag cephfs_2 data=cephfs_2"
mounted client_4 and user is able to create folders on cephfs_1
Steps followed:
1. Created cephfs_1 and cephfs_2
2. Created 2 clients
[root@ceph-amk-cbt-dqfqfu-node7 mnt]# ceph auth get client.client_3
[client.client_3]
key = AQAyc3lmfCKQGhAAF88nr6XkCWAEXdkDv/a7Uw==
caps mds = "allow rw fsname=cephfs_1 root_squash, allow rw fsname=cephfs_1 path=/volumes"
caps mon = "allow *"
caps osd = "allow rw tag cephfs_1 data=cephfs_1, allow rw tag cephfs_2 data=cephfs_2"
[root@ceph-amk-cbt-dqfqfu-node7 mnt]# ceph auth get client.client_4
[client.client_4]
key = AQAzc3lm0D6+LxAAT9ptpMMjjP09cBh1039LzQ==
caps mds = "allow rw fsname=cephfs_1 root_squash, allow rw fsname=cephfs_1 path=/volumes, allow rw fsname=cephfs_2"
caps mon = "allow *"
caps osd = "allow rw tag cephfs_1 data=cephfs_1, allow rw tag cephfs_2 data=cephfs_2"
3. Mounted folders with clien_4 and client_3
4. Expectation is mount with cephfs_1 using both clients should work similarly
With client_3 which has only 1 filesystem in caps is working as expected
[root@ceph-amk-cbt-dqfqfu-node7 mnt]# mkdir /mnt/client_3/test_3
mkdir: cannot create directory ‘/mnt/client_3/test_3’: Permission denied
with client_4 which has 2 filesystems in caps is able to create
[root@ceph-amk-cbt-dqfqfu-node7 mnt]# mkdir /mnt/client_4/test_4
[root@ceph-amk-cbt-dqfqfu-node7 mnt]# ls -lrt /mnt/client_4/ | grep test_4
drwxr-xr-x. 2 root root 0 Jun 24 09:32 test_4
[root@ceph-amk-cbt-dqfqfu-node7 mnt]#
KH Updated by Kotresh Hiremath Ravishankar over 1 year ago
- Assignee set to Kotresh Hiremath Ravishankar
KH Updated by Kotresh Hiremath Ravishankar over 1 year ago
- Status changed from New to Fix Under Review
- Pull request ID set to 64550
VS Updated by Venky Shankar about 1 year ago
- Category set to Correctness/Safety
- Status changed from Fix Under Review to Pending Backport
- Target version set to v21.0.0
- Source set to other
UB Updated by Upkeep Bot about 1 year ago
- Copied to Backport #72812: squid: MDS authcaps is not working correctly in multifs ceph cluster added
UB Updated by Upkeep Bot about 1 year ago
- Copied to Backport #72813: tentacle: MDS authcaps is not working correctly in multifs ceph cluster added
UB Updated by Upkeep Bot about 1 year ago
- Copied to Backport #72814: reef: MDS authcaps is not working correctly in multifs ceph cluster added
UB Updated by Upkeep Bot about 1 year ago
- Tags (freeform) set to backport_processed
UB Updated by Upkeep Bot about 1 year ago
- Merge Commit set to 3ada51476160cc26ada5ebc0cdeb9b8ea2ef7014
- Fixed In set to v20.3.0-2706-g3ada514761
- Upkeep Timestamp set to 2025-09-02T13:15:34+00:00
PD Updated by Patrick Donnelly 10 months ago
- Related to Bug #74657: qa: no test coverage for mounting CephFS with multifs restricted caps and no selected file system added
UB Updated by Upkeep Bot 5 months ago
- Status changed from Pending Backport to Resolved
- Upkeep Timestamp changed from 2025-09-02T13:15:34+00:00 to 2026-07-10T13:23:23+00:00
UB Updated by Upkeep Bot 3 months ago
- Tags (freeform) deleted (
backport_processed) - Upkeep Timestamp changed from 2026-07-10T13:23:23+00:00 to 2026-08-28T01:41:36+00:00
UB Updated by Upkeep Bot about 1 month ago
- Released In set to v21.2.0~2156
- Upkeep Timestamp changed from 2026-08-28T01:41:36+00:00 to 2026-10-24T02:02:15+00:00
Actions