From: Patrick Donnelly Date: Wed, 2 Jul 2025 15:21:35 +0000 (-0400) Subject: mds: include auth credential in session dump X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=53a6e4e2ef31df21a7c05fda88f4634b8aa3735e;p=ceph.git mds: include auth credential in session dump This looks like: [ { "id": 4446, "auth_name": { "type": 16, "id": "x" }, ... Which would indicate it's a ceph-mgr with id "x". Fixes: https://tracker.ceph.com/issues/71937 Signed-off-by: Patrick Donnelly --- diff --git a/src/mds/SessionMap.cc b/src/mds/SessionMap.cc index 0fb1e1a745985..3884f4ba96f77 100644 --- a/src/mds/SessionMap.cc +++ b/src/mds/SessionMap.cc @@ -630,6 +630,7 @@ void SessionMapStore::decode_legacy(bufferlist::const_iterator& p) void Session::dump(Formatter *f, bool cap_dump) const { f->dump_int("id", info.inst.name.num()); + f->dump_object("auth_name", info.auth_name); f->dump_object("entity", info.inst); f->dump_string("state", get_state_name()); f->dump_int("num_leases", leases.size());