Project

General

Profile

Actions

Bug #46816

closed

mon stat prints plain text with -f json

Added by Jan Fajerski over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Category:
Administration/Usability
Target version:
-
% Done:

0%

Source:
Community (dev)
Tags:
low-hanging-fruit
Backport:
octopus, nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
ceph-qa-suite:
Component(RADOS):
Monitor
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

master:~ # ceph mon stat
e1: 3 mons at {node1=[v2:192.168.100.16:3300/0,v1:192.168.100.16:6789/0],node2=[v2:192.168.100.71:3300/0,v1:192.168.100.71:6789/0],node3=[v2:192.168.100.206:3300/0,v1:192.168.100.206:6789/0]}, election epoch 12, leader 0 node1, quorum 0,1,2 node1,node2,node3

master:~ # ceph mon stat -f json

e1: 3 mons at {node1=[v2:192.168.100.16:3300/0,v1:192.168.100.16:6789/0],node2=[v2:192.168.100.71:3300/0,v1:192.168.100.71:6789/0],node3=[v2:192.168.100.206:3300/0,v1:192.168.100.206:6789/0]}, election epoch 12, leader 0 node1, quorum 0,1,2 node1,node2,node3

I guess the stat output doesn't have a json formatter yet. At least this should return valid json (maybe just {}) in order to not break tools that expect json.


Related issues 2 (0 open2 closed)

Copied to RADOS - Backport #47898: octopus: mon stat prints plain text with -f jsonResolvedNathan CutlerActions
Copied to RADOS - Backport #47899: nautilus: mon stat prints plain text with -f jsonResolvedNathan CutlerActions
Actions

Also available in: Atom PDF