Project

General

Profile

Actions

Bug #6049

closed

pgmap json output shows bytes_* values quadrupled

Added by Faidon Liambotis over 10 years ago. Updated over 10 years ago.

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

0%

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

Description

I was looking at the "ceph --format=json status" pgmap bytes_{used,avail,total} values with the goal of using them to produce pretty graphs of historical usage.

The values didn't make any sense to me though. Digging a little deeper reveals:

    f->dump_unsigned("bytes_used", osd_sum.kb_used * 4096ull);
    f->dump_unsigned("bytes_avail", osd_sum.kb_avail * 4096ull);
    f->dump_unsigned("bytes_total", osd_sum.kb * 4096ull);

(4096 instead of 1024)

Seems to have been introduced with 9f5cae44, 2013-07-12 11:36:18 -0700.

Actions #1

Updated by Ian Colle over 10 years ago

  • Assignee set to Dan Mick
Actions #2

Updated by Dan Mick over 10 years ago

  • Category set to Monitor
  • Status changed from New to Resolved
Actions #3

Updated by Faidon Liambotis over 10 years ago

Maybe this warrants a backport to dumpling? The fix is tiny and risk-free.

Actions #4

Updated by Sage Weil over 10 years ago

oops, sorry about that. pushed to dumpling branch. a0ac88272511d670b5c3756dda2d02c93c2e9776

Actions

Also available in: Atom PDF