Project

General

Profile

Actions

Bug #68453

closed

mds: Failed to create a file on a path eventhough mds auth caps has 'rw' on the path

Added by Kotresh Hiremath Ravishankar over 1 year ago. Updated 9 months ago.

Status:
Resolved
Priority:
Normal
Category:
-
Target version:
-
% Done:

100%

Source:
Backport:
reef,quincy
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
Pull request ID:
Tags (freeform):
backport_processed
Fixed In:
v19.0.0-678-g38d614c85df9
Released In:
v19.2.0~928
Upkeep Timestamp:

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


Related issues 2 (0 open2 closed)

Copied to CephFS - Backport #68454: quincy: mds: Failed to create a file on a path eventhough mds auth caps has 'rw' on the pathRejectedKotresh Hiremath RavishankarActions
Copied to CephFS - Backport #68455: reef: mds: Failed to create a file on a path eventhough mds auth caps has 'rw' on the pathResolvedKotresh Hiremath RavishankarActions
Actions #1

Updated by Kotresh Hiremath Ravishankar over 1 year ago

  • Status changed from New to Pending Backport
Actions #2

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.

Actions #3

Updated by Kotresh Hiremath Ravishankar over 1 year ago

  • Assignee set to Kotresh Hiremath Ravishankar
Actions #4

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
Actions #5

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
Actions #6

Updated by Upkeep Bot over 1 year ago

  • Tags (freeform) set to backport_processed
Actions #7

Updated by Konstantin Shalygin about 1 year ago

  • Status changed from Pending Backport to Resolved
  • % Done changed from 0 to 100
Actions #8

Updated by Patrick Donnelly 9 months ago

  • Merge Commit set to 38d614c85df9f9690c896b072a86aa618e23b213
  • Fixed In set to v19.0.0-678-g38d614c85df9
Actions #9

Updated by Patrick Donnelly 9 months ago

  • Released In set to v19.2.0~928
Actions

Also available in: Atom PDF