Skip to content

Commit 20da929

Browse files
committed
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 <[email protected]>
1 parent 8f96936 commit 20da929

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pybind/mgr/status/module.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def handle_fs_status(self,
161161

162162
if output_format in ('json', 'json-pretty'):
163163
json_output['mdsmap'].append({
164-
'rank': rank,
164+
'rank': f"{daemon_info['rank']}-s",
165165
'name': daemon_info['name'],
166166
'state': 'standby-replay',
167167
'events': events,

0 commit comments

Comments
 (0)