Project

General

Profile

Bug #6382

ceph osd crush reweight is broken; bad return code check

Added by Dan Mick almost 7 years ago. Updated almost 7 years ago.

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

0%

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

Description

it calls newcrush.adjust_item_weightf, and expects 0, but adjust_item_weight* seem to return
a count of changed weights.

Associated revisions

Revision 3de32562 (diff)
Added by Sage Weil almost 7 years ago

mon/OSDMonitor: fix 'ceph osd crush reweight ...'

The adjust method returns a count of adjusted items.

Add a test.

Fixes: #6382
Backport: dumpling
Signed-off-by: Sage Weil <>
Reviewed-by: Dan Mick <>

Revision 94548b4b (diff)
Added by Sage Weil almost 7 years ago

mon/OSDMonitor: fix 'ceph osd crush reweight ...'

The adjust method returns a count of adjusted items.

Add a test.

Fixes: #6382
Backport: dumpling
Signed-off-by: Sage Weil <>
Reviewed-by: Dan Mick <>
(cherry picked from commit 3de32562b55c6ece3a6ed783c36f8b9f21460339)

History

#1 Updated by Sage Weil almost 7 years ago

  • Status changed from New to Resolved
  • Source changed from other to Development

Also available in: Atom PDF