Project

General

Profile

Actions

Bug #22338

closed

mds: ceph mds stat json should use array output for info section

Added by Ji You over 6 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
fs
Component(FS):
MDSMonitor
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

When use `ceph mds stat -f json-pretty` would get output as below:

          "info": {
            "gid_292071": {
              "standby_for_rank": -1,
              "export_targets": [],
              "name": "ceph-dev-mds-k-1380776",
              "incarnation": 114209,
              "standby_replay": false,
              "state_seq": 707405,
              "standby_for_fscid": -1,
              "state": "up:active",
              "gid": 292071,
              "features": 2305244844532236283,
              "rank": 7,
              "standby_for_name": "",
              "addr": "10.148.178.212:6800/2799316021" 
            },
            "gid_289283": {
              "standby_for_rank": -1,
              "export_targets": [],
              "name": "ceph-dev-mds-e-1378660",
              "incarnation": 114045,
              "standby_replay": false,
              "state_seq": 739977,
              "standby_for_fscid": -1,
              "state": "up:active",
              "gid": 289283,
              "features": 2305244844532236283,
              "rank": 5,
              "standby_for_name": "",
              "addr": "10.148.178.207:6800/1166382362" 
            }
         }

The proper output for info section may better to use array option to output.

Actions

Also available in: Atom PDF