Project

General

Profile

Actions

Bug #42501

closed

format error: ceph osd stat --format=json

Added by Changcheng Liu over 4 years ago. Updated about 4 years ago.

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 2 (0 open2 closed)

Copied to RADOS - Backport #42852: mimic: format error: ceph osd stat --format=jsonResolvedNathan CutlerActions
Copied to RADOS - Backport #42853: nautilus: format error: ceph osd stat --format=jsonResolvedNathan CutlerActions
Actions #1

Updated by Changcheng Liu over 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}

Actions #2

Updated by Greg Farnum over 4 years ago

  • Project changed from Ceph to RADOS
Actions #3

Updated by Brad Hubbard over 4 years ago

  • Tags set to low-hanging-fruit
Actions #4

Updated by Kefu Chai over 4 years ago

  • Status changed from New to Fix Under Review
  • Pull request ID set to 31399
Actions #5

Updated by Kefu Chai over 4 years ago

  • Status changed from Fix Under Review to Resolved
Actions #6

Updated by Kefu Chai over 4 years ago

  • Status changed from Resolved to Pending Backport
  • Backport set to nautilus, mimic
Actions #7

Updated by Nathan Cutler over 4 years ago

  • Copied to Backport #42852: mimic: format error: ceph osd stat --format=json added
Actions #8

Updated by Nathan Cutler over 4 years ago

  • Copied to Backport #42853: nautilus: format error: ceph osd stat --format=json added
Actions #9

Updated by Nathan Cutler about 4 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".

Actions

Also available in: Atom PDF