Project

General

Profile

Actions

Bug #42265

closed

[mgr] "rbd task" MGR commands require appropriate caps to run

Added by Jason Dillaman over 4 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Jason Dillaman
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

$ ceph auth get-or-create client.ceph-csi mon 'profile rbd' osd 'profile rbd' >> keyring 
$ ceph auth get client.ceph-csi
exported keyring for client.ceph-csi
[client.ceph-csi]
    key = AQCtJJ9d/g6vCxAAQ5r5Rbvxo5vo43wAGHGwkw==
    caps mon = "profile rbd" 
    caps osd = "profile rbd" 
$ rbd --id ceph-csi create --size 1G image
$ ceph --id ceph-csi rbd task add remove rbd/image
Error EACCES: access denied: does your client key have mgr caps? See http://docs.ceph.com/docs/master/mgr/administrator/#client-authentication
$ ceph auth caps client.ceph-csi mon 'profile rbd' osd 'profile rbd' mgr "allow command 'rbd task add remove'" 
$ ceph --id ceph-csi rbd task add remove rbd/image
{"sequence": 1, "id": "987a711e-e19a-476c-b64d-b98a0ddfa427", "message": "Removing image rbd/image", "refs": {"action": "remove", "pool_name": "rbd", "pool_namespace": "", "image_name": "image", "image_id": "10291e504559"}}

Create a new "mgr 'profile rbd [pool=XYZ]" cap to support these new commands. This also applies to the "rbd perf" commands.


Related issues 1 (0 open1 closed)

Copied to rbd - Backport #42630: nautilus: [mgr] "rbd task" MGR commands require appropriate caps to runResolvedJason DillamanActions
Actions #1

Updated by Jason Dillaman over 4 years ago

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 30912
Actions #2

Updated by Mykola Golub over 4 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #3

Updated by Nathan Cutler over 4 years ago

  • Copied to Backport #42630: nautilus: [mgr] "rbd task" MGR commands require appropriate caps to run added
Actions #4

Updated by Nathan Cutler over 3 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF