Project

General

Profile

Actions

Bug #17703

closed

ceph -s -f json can not get cluster objects

Added by peng zhang over 7 years ago. Updated over 7 years ago.

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

0%

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

Description

ceph -s show:
[root@lab8106 ~]# ceph -s
cluster fae7a8db-c671-4b45-a784-ddb41e633905
health HEALTH_OK
monmap e1: 1 mons at {lab8106=192.168.8.106:6789/0}
election epoch 3, quorum 0 lab8106
fsmap e5: 1/1/1 up {0=lab8106=up:active}
osdmap e31: 1 osds: 1 up, 1 in
flags sortbitwise
pgmap v12689: 80 pgs, 3 pools, 278 MB data, 93 objects
319 MB used, 277 GB / 278 GB avail
80 active+clean

there is 92 objects

but:

[root@lab8106 ~]# ceph -s -f json

{"health":{"health":{"health_services":[{"mons":[{"name":"lab8106","kb_total":52403200,"kb_used":32990828,"kb_avail":19412372,"avail_percent":37,"last_updated":"2016-10-26 01:45:45.246489","store_stats":{"bytes_total":16386381,"bytes_sst":14944573,"bytes_log":983040,"bytes_misc":458768,"last_updated":"0.000000"},"health":"HEALTH_OK"}]}]},"timechecks":{"epoch":3,"round":0,"round_status":"finished"},"summary":[],"overall_status":"HEALTH_OK","detail":[]},"fsid":"fae7a8db-c671-4b45-a784-ddb41e633905","election_epoch":3,"quorum":[0],"quorum_names":["lab8106"],"monmap":{"epoch":1,"fsid":"fae7a8db-c671-4b45-a784-ddb41e633905","modified":"2016-10-19 14:26:28.879232","created":"2016-10-19 14:26:28.879232","mons":[{"rank":0,"name":"lab8106","addr":"192.168.8.106:6789\/0"}]},"osdmap":{"osdmap":{"epoch":31,"num_osds":1,"num_up_osds":1,"num_in_osds":1,"full":false,"nearfull":false,"num_remapped_pgs":0}},"pgmap":{"pgs_by_state":[{"state_name":"active+clean","count":80}],"version":12697,"num_pgs":80,"data_bytes":291672869,"bytes_used":335007744,"bytes_avail":298444226560,"bytes_total":298779234304},"fsmap":{"epoch":5,"id":1,"up":1,"in":1,"max":1,"by_rank":[{"filesystem_id":1,"rank":0,"name":"lab8106","status":"up:active"}]}}

[root@lab8106 ~]# ceph -v
ceph version 10.2.3 (ecc23778eb545d8dd55e2e4735b53cc93f92e65b)

so some problem ?

Actions #1

Updated by huang jun over 7 years ago

i will try to fix this, also missed pools num in -f json/json-pretty output

Actions #4

Updated by Kefu Chai over 7 years ago

  • Status changed from New to Fix Under Review
  • Assignee set to peng zhang
Actions #5

Updated by Kefu Chai over 7 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF