Bug 1283042 - [RFE] Reject / verify before assigning weight with values much higher / lower than it's peers
Summary: [RFE] Reject / verify before assigning weight with values much higher / lower...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RADOS
Version: 1.2.3
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: 2.0
Assignee: Samuel Just
QA Contact: ceph-qe-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-18 05:16 UTC by James Biao
Modified: 2019-08-15 05:51 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-02-09 21:07:51 UTC
Embargoed:


Attachments (Terms of Use)

Description James Biao 2015-11-18 05:16:07 UTC
Description of problem:

Customer runs a script that looked at the output of 'ceph osd tree' to obtain the weight for a particular osd and then reweighted it by adding or subtracting 0.05 to/from its current crush weight based on whether its utilization was high or low.

After a recent upgrade from firefly to hammer, due to a change to ceph -s output, there is now leading whitespace for osds with fewer digits than the max (i.e., 768 would have a leading space but 1353 would not), and this whitespace caused the parser to pick out the OSD number as its weight, so each osd with a number under 1000 got its number plus or minus 0.05 as its weight.

Would like to request an RFE to prevent wieght being assigned a number that way beyond the range of its peers.


Version-Release number of selected component (if applicable):

RHCS 1.2.3


Note You need to log in before you can comment on or make changes to this bug.