]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: set mgr cap for NVMeoF to allow cmd "service dump" 70281/head
authorVallari Agrawal <vallari.agrawal@ibm.com>
Fri, 17 Jul 2026 09:14:04 +0000 (14:44 +0530)
committerVallari Agrawal <vallari.agrawal@ibm.com>
Fri, 17 Jul 2026 11:27:01 +0000 (16:57 +0530)
Allow nvmeof daemons cap to run mgr command "service dump".
This helps to map gateway_id with hostname (info needed to resolve
nvmeof issue https://github.com/ceph/ceph-nvmeof/issues/1974)

Fixes: https://tracker.ceph.com/issues/78339
Signed-off-by: Vallari Agrawal <vallari.agrawal@ibm.com>
src/pybind/mgr/cephadm/services/nvmeof.py

index 8881185babb20d213edaabe0ab96905b28c25051..ccaaebe71759b77c8f9b3bf5f1da3f62bc0cdd07 100644 (file)
@@ -126,6 +126,7 @@ class NvmeofService(CephService):
         map_discovery_addr = spec.discovery_addr_map.get(daemon_spec.host) if spec.discovery_addr_map else None
         keyring = self.get_keyring_with_caps(self.get_auth_entity(nvmeof_gw_id),
                                              ['mon', 'profile rbd',
+                                              'mgr', 'allow command "service dump"',
                                               'osd', 'profile rbd'])
 
         super().prepare_certificates(daemon_spec)