From 20da9296a23fb599ca29d2e97453036b71a20904 Mon Sep 17 00:00:00 2001 From: Kotresh HR Date: Tue, 10 Sep 2024 13:30:54 +0530 Subject: [PATCH] mgr/status: Fix 'fs status' json output Fix rank field of standby-replay mds daemon in 'ceph fs status' json output. The rank field for standby-replay mds daemons were incorrect. It should be of the format '{rank}-s', where {rank} is the active mds which the standby-replay is following. Fixes: https://tracker.ceph.com/issues/67978 Signed-off-by: Kotresh HR --- src/pybind/mgr/status/module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/status/module.py b/src/pybind/mgr/status/module.py index 85e65266a55..2b59132c1cb 100644 --- a/src/pybind/mgr/status/module.py +++ b/src/pybind/mgr/status/module.py @@ -161,7 +161,7 @@ class Module(MgrModule): if output_format in ('json', 'json-pretty'): json_output['mdsmap'].append({ - 'rank': rank, + 'rank': f"{daemon_info['rank']}-s", 'name': daemon_info['name'], 'state': 'standby-replay', 'events': events, -- 2.39.5