From: Kotresh HR Date: Tue, 10 Sep 2024 08:00:54 +0000 (+0530) Subject: mgr/status: Fix 'fs status' json output X-Git-Tag: v20.0.0~901^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=20da9296a23fb599ca29d2e97453036b71a20904;p=ceph.git 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 --- diff --git a/src/pybind/mgr/status/module.py b/src/pybind/mgr/status/module.py index 85e65266a559..2b59132c1cba 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,