]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-crash: reduce log noise from auth fallback in post_crash() 68283/head
authorKefu Chai <k.chai@proxmox.com>
Thu, 9 Apr 2026 12:52:57 +0000 (20:52 +0800)
committerKefu Chai <k.chai@proxmox.com>
Thu, 9 Apr 2026 13:00:26 +0000 (21:00 +0800)
commit3a0f9ee50995d07e752325d0495ca0e18db0190b
tree42d842cf21f6cc19e0ad698139fa94a9fd8e8034
parent1574115b66e2793ccdc3d906a9ea88bab05f0655
ceph-crash: reduce log noise from auth fallback in post_crash()

post_crash() iterates auth_names trying each identity until one
succeeds. Previously it logged a WARNING for every failed attempt,
even when the next name succeeds. This is noisy in deployments
where only a subset of the auth names have keyrings (e.g. manual
deployments with only client.crash, or environments where
client.admin is not accessible to ceph-crash).

Improve the logging:

- For auth failures (EACCES), log at DEBUG level and continue to
  the next name.
- For non-auth failures, log a WARNING and stop immediately —
  trying other names won't help.
- If all names fail authentication, log a single WARNING with the
  last stderr.

Retain the stderr check from a77b47eeeb57 as a safeguard for mgr
commands that may return rc=0 with an error on stderr.

Signed-off-by: Kefu Chai <k.chai@proxmox.com>
src/ceph-crash.in