Project

General

Profile

Actions

Bug #67708

closed
EB KH

mgr removes mon caps from cephx upon `fs subvolume deauthorize` even if key is used to access other subvolumes

Bug #67708: mgr removes mon caps from cephx upon `fs subvolume deauthorize` even if key is used to access other subvolumes

Added by Enrico Bocchi over 2 years ago. Updated 29 days ago.

Status:
Backporting
Priority:
Normal
Category:
Administration/Usability
Target version:
Due date:
% Done:

0%

Source:
Community (user)
Backport:
tentacle,squid,reef
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
mgr/volumes
Labels (FS):
Pull request ID:
Tags (freeform):
Fixed In:
v20.3.0-1176-gd78ffd1247
Released In:
v21.2.0~2643
Upkeep Timestamp:
2026-11-04T01:05:56+00:00

Description

The fs/operations module of the mgr removes mon caps (should be at least `allow r`) from a cephx key when doing `fs subvolume deauthorize`.
This can be problematic if the same cephx key is used to access multiple subvolumes, as upon deauthorization, the key will miss caps on the mon and clients will not be able to check in when attempting to mount.

Steps to reproduce:
1. Create two subvolumes (test1, test2) and authorize the same cephx (mykey) for both:

$ ceph fs subvolume create cephfs test1 --size 1048576
$ ceph fs subvolume create cephfs test2 --size 1048576
$ ceph fs subvolume authorize cephfs test1 mykey
$ ceph fs subvolume authorize cephfs test2 mykey
$ ceph auth get client.mykey
[client.mykey]
    key = AQCqsshmotUnGRAAVj3oV2Tvz5BPfc4pOpdvcA==
    caps mds = "allow rw path=/volumes/_nogroup/test1/c8d593a5-3736-4e0c-8d88-7fef9a098e31,allow rw path=/volumes/_nogroup/test2/8a2e0430-2363-47e5-b709-c1108e2423a6" 
    caps mon = "allow r" 
    caps osd = "allow rw pool=cephfs_data,allow rw pool=cephfs_data" 

2. Deauthorize the key for any of the two subvolumes (test2 here)

$ ceph fs subvolume deauthorize cephfs test2 mykey
$  ceph auth get client.mykey
[client.mykey]
    key = AQCqsshmotUnGRAAVj3oV2Tvz5BPfc4pOpdvcA==
    caps mds = "allow rw path=/volumes/_nogroup/test1/c8d593a5-3736-4e0c-8d88-7fef9a098e31" 
    caps osd = "allow rw pool=cephfs_data" 
exported keyring for client.mykey

OpenStack Manila uses `fs subvolume deauthorize` when removing access to a key and when deleting a share.
If the user uses the same key for multiple share, deleting any will lock the clients out also for all the remaining shares.


Related issues 3 (1 open — 2 closed)

Copied to CephFS - Backport #71831: tentacle: mgr removes mon caps from cephx upon `fs subvolume deauthorize` even if key is used to access other subvolumesResolvedJos Collin

Actions
Copied to CephFS - Backport #71832: reef: mgr removes mon caps from cephx upon `fs subvolume deauthorize` even if key is used to access other subvolumesResolvedJos Collin

Actions
Copied to CephFS - Backport #71833: squid: mgr removes mon caps from cephx upon `fs subvolume deauthorize` even if key is used to access other subvolumesIn ProgressJos Collin

Actions

EB Updated by Enrico Bocchi over 2 years ago Actions #1

  • Pull request ID set to 59435

VS Updated by Venky Shankar about 2 years ago Actions #2

  • Status changed from New to Fix Under Review
  • Target version set to v20.0.0
  • Backport set to quincy,reef,squid

VS Updated by Venky Shankar about 2 years ago Actions #3

  • Project changed from mgr to CephFS
  • Category changed from ceph-mgr to Administration/Usability
  • Component(FS) mgr/volumes added

KS Updated by Konstantin Shalygin almost 2 years ago Actions #4

  • Backport changed from quincy,reef,squid to reef,squid

VS Updated by Venky Shankar over 1 year ago Actions #5

  • Status changed from Fix Under Review to Pending Backport
  • Assignee set to Kotresh Hiremath Ravishankar
  • Backport changed from reef,squid to tentacle,squid,reef

@Kotresh Hiremath Ravishankar please do the backports.

VS Updated by Venky Shankar over 1 year ago Actions #6

  • Target version changed from v20.0.0 to v21.0.0

UB Updated by Upkeep Bot over 1 year ago Actions #7

  • Copied to Backport #71831: tentacle: mgr removes mon caps from cephx upon `fs subvolume deauthorize` even if key is used to access other subvolumes added

UB Updated by Upkeep Bot over 1 year ago Actions #8

  • Copied to Backport #71832: reef: mgr removes mon caps from cephx upon `fs subvolume deauthorize` even if key is used to access other subvolumes added

UB Updated by Upkeep Bot over 1 year ago Actions #9

  • Copied to Backport #71833: squid: mgr removes mon caps from cephx upon `fs subvolume deauthorize` even if key is used to access other subvolumes added

UB Updated by Upkeep Bot over 1 year ago Actions #10

  • Tags (freeform) set to backport_processed

UB Updated by Upkeep Bot over 1 year ago Actions #11

  • Merge Commit set to d78ffd1247d6cef5cbd829e77204185dc0d3a8ba
  • Fixed In set to v20.3.0-1176-gd78ffd1247d
  • Upkeep Timestamp set to 2025-07-08T18:45:28+00:00

UB Updated by Upkeep Bot over 1 year ago Actions #12

  • Fixed In changed from v20.3.0-1176-gd78ffd1247d to v20.3.0-1176-gd78ffd1247d6
  • Upkeep Timestamp changed from 2025-07-08T18:45:28+00:00 to 2025-07-14T15:45:48+00:00

UB Updated by Upkeep Bot over 1 year ago Actions #13

  • Fixed In changed from v20.3.0-1176-gd78ffd1247d6 to v20.3.0-1176-gd78ffd1247
  • Upkeep Timestamp changed from 2025-07-14T15:45:48+00:00 to 2025-07-14T21:10:04+00:00

UB Updated by Upkeep Bot 3 months ago Actions #14

  • Status changed from Pending Backport to Backporting
  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2025-07-14T21:10:04+00:00 to 2026-08-27T18:05:00+00:00

UB Updated by Upkeep Bot about 1 month ago Actions #15

  • Released In set to v21.2.0~2642
  • Upkeep Timestamp changed from 2026-08-27T18:05:00+00:00 to 2026-10-24T01:06:49+00:00

UB Updated by Upkeep Bot 29 days ago Actions #16

  • Released In changed from v21.2.0~2642 to v21.2.0~2643
  • Upkeep Timestamp changed from 2026-10-24T01:06:49+00:00 to 2026-11-04T01:05:56+00:00
Actions

Also available in: PDF Atom