Bug #42501
closed
format error: ceph osd stat --format=json
Added by Changcheng Liu over 4 years ago.
Updated about 4 years ago.
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$
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}
- Project changed from Ceph to RADOS
- Tags set to low-hanging-fruit
- Status changed from New to Fix Under Review
- Pull request ID set to 31399
- Status changed from Fix Under Review to Resolved
- Status changed from Resolved to Pending Backport
- Backport set to nautilus, mimic
- Copied to Backport #42852: mimic: format error: ceph osd stat --format=json added
- Copied to Backport #42853: nautilus: format error: ceph osd stat --format=json added
- 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".
Also available in: Atom
PDF