]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
ceph-crash: Fix testing key with ceph status
authorRaimund Sacherer <rsachere@redhat.com>
Thu, 13 Nov 2025 19:53:05 +0000 (20:53 +0100)
committerRaimund Sacherer <rsachere@redhat.com>
Thu, 13 Nov 2025 20:24:03 +0000 (21:24 +0100)
Running the ceph status command to exercise the key did not add the
client name to the ceph command therefore failing to authenticate to the
cluster on daemon startup.

Fixes: https://tracker.ceph.com/issues/64102
Signed-off-by: Raimund Sacherer <rsachere@redhat.com>
src/ceph-crash.in

index 6f57a151093d2bb87f93ace1b8cf415fc83f023f..148badcdb1a4ec04069b9440d2eaa2b06588c54c 100755 (executable)
@@ -129,9 +129,10 @@ def main():
         log.error("directory %s does not exist; please create" % postdir)
         time.sleep(30)
 
-    log.info("pinging cluster to exercise our key")
-    pr = subprocess.Popen(args=['timeout', '30', 'ceph', '-s'])
-    pr.wait()
+    for n in auth_names:
+        log.info("pinging cluster to exercise our key, trying key {}.".format(n))
+        pr = subprocess.Popen(args=['timeout', '30', 'ceph', '-s', '-n', n])
+        pr.wait()
 
     log.info("monitoring path %s, delay %ds" % (args.path, args.delay * 60.0))
     while True: