Bug #22338
mds: ceph mds stat json should use array output for info section
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.
History
#1 Updated by Ji You over 5 years ago
Ji You wrote:
When use `ceph mds stat -f json-pretty` would get output as below:
[...]
The proper output for info section may better to use array option to output.
#2 Updated by Xiaoxi Chen over 5 years ago
- Tracker changed from Fix to Bug
- Regression set to No
- Severity set to 3 - minor
#3 Updated by Patrick Donnelly over 5 years ago
- Subject changed from ceph mds stat json should use array output for info section to mds: ceph mds stat json should use array output for info section
- Status changed from New to Resolved