Project

General

Profile

Actions

Bug #12251

closed

the output is wrong when runing "ceph osd reweight"

Added by chuanhong wang almost 9 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
High
Assignee:
Joao Eduardo Luis
Category:
Monitor
Target version:
-
% Done:

0%

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

Description

environment: centos7 + ceph v0.94
problem: when doing "ceph osd reweight", there is something wrong in the output. For example, the internal value of weight is 58982, but the command output in the bracket is 8589822.
[root@c8 ~]# ceph osd reweight 0 0.9
reweighted osd.0 to 0.9 (8589822)
At line 5625 of OSDMonitor.cc, should ios::hex be replaced by std::hex?


Related issues 2 (0 open2 closed)

Copied to Ceph - Backport #12492: the output is wrong when runing "ceph osd reweight"ResolvedJoao Eduardo Luis07/09/2015Actions
Copied to Ceph - Backport #12493: the output is wrong when runing "ceph osd reweight"ResolvedLoïc Dachary07/09/2015Actions
Actions #1

Updated by Sage Weil almost 9 years ago

  • Assignee set to Joao Eduardo Luis
  • Priority changed from Normal to High
Actions #2

Updated by Joao Eduardo Luis over 8 years ago

  • Category set to Monitor
  • Status changed from New to Fix Under Review

I have no idea why we're outputting that in hex, but hey, here's the fix: https://github.com/ceph/ceph/pull/5301

Actions #3

Updated by Kefu Chai over 8 years ago

  • Status changed from Fix Under Review to Pending Backport
  • Backport set to firefly, hammer
Actions #4

Updated by Nathan Cutler over 8 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF