]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: set OSD cap for NVMEoF daemon to "profile rbd" 57233/head
authorAdam King <adking@redhat.com>
Mon, 29 Apr 2024 17:41:10 +0000 (13:41 -0400)
committerAdam King <adking@redhat.com>
Thu, 2 May 2024 12:28:34 +0000 (08:28 -0400)
Otherwise it is impossible to make rbd snapshots

Fixes: https://tracker.ceph.com/issues/65691
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit c83c2cd5b0f9d35465d8f11680c95deff54e746b)

src/pybind/mgr/cephadm/services/nvmeof.py

index d133ad75d252fa963e533b9852aa22b3c68a63be..d1b571dd64c570c699f795faeaacc895e03f266f 100644 (file)
@@ -32,7 +32,7 @@ class NvmeofService(CephService):
 
         keyring = self.get_keyring_with_caps(self.get_auth_entity(nvmeof_gw_id),
                                              ['mon', 'profile rbd',
-                                              'osd', 'allow all tag rbd *=*'])
+                                              'osd', 'profile rbd'])
 
         # TODO: check if we can force jinja2 to generate dicts with double quotes instead of using json.dumps
         transport_tcp_options = json.dumps(spec.transport_tcp_options) if spec.transport_tcp_options else None