]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr: generate correct keyname for crash daemon
authorRaimund Sacherer <rsachere@redhat.com>
Thu, 13 Nov 2025 19:56:36 +0000 (20:56 +0100)
committerRaimund Sacherer <rsachere@redhat.com>
Thu, 13 Nov 2025 20:24:27 +0000 (21:24 +0100)
Fixed the orchestrator to create the correct key name for crash daemons.
The key was created with the hostname, while we add as authentication
name `-n client.crash.<deamon-id>`.

Fixes: https://tracker.ceph.com/issues/73847
Signed-off-by: Raimund Sacherer <rsachere@redhat.com>
src/pybind/mgr/cephadm/services/cephadmservice.py

index f166051d0ae1c6db4ecac4e6d47f084da680b8dc..8f29488cd0ac23f287b05b60ff130e300236790c 100644 (file)
@@ -52,9 +52,9 @@ def get_auth_entity(daemon_type: str, daemon_id: str, host: str = "") -> AuthEnt
     """
     # despite this mapping entity names to daemons, self.TYPE within
     # the CephService class refers to service types, not daemon types
-    if daemon_type in ['rgw', 'rbd-mirror', 'cephfs-mirror', 'nfs', "iscsi", 'nvmeof', 'ingress', 'ceph-exporter']:
+    if daemon_type in ['rgw', 'rbd-mirror', 'cephfs-mirror', 'nfs', "iscsi", 'nvmeof', 'ingress', 'ceph-exporter', 'crash']:
         return AuthEntity(f'client.{daemon_type}.{daemon_id}')
-    elif daemon_type in ['crash', 'agent', 'node-proxy']:
+    elif daemon_type in ['agent', 'node-proxy']:
         if host == "":
             raise OrchestratorError(
                 f'Host not provided to generate <{daemon_type}> auth entity name')