Project

General

Profile

Bug #12251

the output is wrong when runing "ceph osd reweight"

Added by chuanhong wang over 3 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
Monitor
Target version:
-
Start date:
07/09/2015
Due date:
% Done:

0%

Source:
other
Tags:
Backport:
firefly, hammer
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:

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

Copied to Ceph - Backport #12492: the output is wrong when runing "ceph osd reweight" Resolved 07/09/2015
Copied to Ceph - Backport #12493: the output is wrong when runing "ceph osd reweight" Resolved 07/09/2015

Associated revisions

Revision 787fa80c (diff)
Added by Joao Luis over 3 years ago

mon: OSDMonitor: fix hex output on 'osd reweight'

Fixes: #12251

Signed-off-by: Joao Eduardo Luis <>

Revision 42bff0b9 (diff)
Added by Joao Luis about 3 years ago

mon: OSDMonitor: fix hex output on 'osd reweight'

Fixes: #12251

Signed-off-by: Joao Eduardo Luis <>
(cherry picked from commit 787fa80c2746fde44ac0583ff7995ec5be9a672d)

Revision 6b42b062 (diff)
Added by Joao Luis about 3 years ago

mon: OSDMonitor: fix hex output on 'osd reweight'

Fixes: #12251

Signed-off-by: Joao Eduardo Luis <>
(cherry picked from commit 787fa80c2746fde44ac0583ff7995ec5be9a672d)

History

#1 Updated by Sage Weil over 3 years ago

  • Assignee set to Joao Luis
  • Priority changed from Normal to High

#2 Updated by Joao Luis over 3 years ago

  • Category set to Monitor
  • Status changed from New to Need 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

#3 Updated by Kefu Chai over 3 years ago

  • Status changed from Need Review to Pending Backport
  • Backport set to firefly, hammer

#4 Updated by Nathan Cutler about 3 years ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF