Red Hat Bugzilla – Bug 1283042
[RFE] Reject / verify before assigning weight with values much higher / lower than it's peers
Last modified: 2017-07-30 11:20:46 EDT
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):