Project

General

Profile

Bug #8108

OSD json output uses strings for booleans

Added by Alfredo Deza almost 10 years ago. Updated almost 10 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
OSDMap
Target version:
-
% Done:

0%

Source:
Development
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

The output for osd stat using JSON format uses strings for booleans:

{"epoch":4,"num_osds":1,"num_up_osds":1,"num_in_osds":"1","full":"false","nearfull":"false"}

Those should not be strings if the intent is for them to be booleans.

This has the side effect of other tools loading that output and instead of seeing a boolean they interpret the
value as a string which is not correct.

History

#1 Updated by Joao Eduardo Luis almost 10 years ago

  • Status changed from New to Fix Under Review

wip-8108

#2 Updated by Joao Eduardo Luis almost 10 years ago

#3 Updated by Joao Eduardo Luis almost 10 years ago

{ "epoch": 1,
  "num_osds": 0,
  "num_up_osds": 0,
  "num_in_osds": 0,
  "full": false,
  "nearfull": false}

#4 Updated by Sage Weil almost 10 years ago

  • Status changed from Fix Under Review to Resolved

Also available in: Atom PDF