Bug #42501
format error: ceph osd stat --format=json
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:
0%
Source:
Tags:
low-hanging-fruit
Backport:
nautilus, mimic
Regression:
Yes
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
-bash-4.2$ ceph osd stat
3 osds: 3 up (since 3d), 3 in (since 3d); epoch: e38
-bash-4.2$
-bash-4.2$ ceph osd stat --format=json
383330-bash-4.2$
Related issues
History
#1 Updated by Changcheng Liu almost 4 years ago
master branch commit head: bf09a04d2275de
"ceph osd stat" output right data:
$ ceph osd stat
3 osds: 3 up (since 3d), 3 in (since 3d); epoch: e38
But, "ceph osd stat --format=json" output wrong data:
$ ceph osd stat --format=json
383330
The right format should be like below: {"epoch":300,"num_osds":3,"num_up_osds":3,"num_in_osds":3,"full":false,"nearfull":false,"num_remapped_pgs":0}
#2 Updated by Greg Farnum almost 4 years ago
- Project changed from Ceph to RADOS
#3 Updated by Brad Hubbard almost 4 years ago
- Tags set to low-hanging-fruit
#4 Updated by Kefu Chai almost 4 years ago
- Status changed from New to Fix Under Review
- Pull request ID set to 31399
#5 Updated by Kefu Chai almost 4 years ago
- Status changed from Fix Under Review to Resolved
#6 Updated by Kefu Chai almost 4 years ago
- Status changed from Resolved to Pending Backport
- Backport set to nautilus, mimic
#7 Updated by Nathan Cutler almost 4 years ago
- Copied to Backport #42852: mimic: format error: ceph osd stat --format=json added
#8 Updated by Nathan Cutler almost 4 years ago
- Copied to Backport #42853: nautilus: format error: ceph osd stat --format=json added
#9 Updated by Nathan Cutler over 3 years ago
- Status changed from Pending Backport to Resolved
While running with --resolve-parent, the script "backport-create-issue" noticed that all backports of this issue are in status "Resolved" or "Rejected".