Actions
Bug #8551
closedinit-ceph: small drives can end up with defaultweight = 0.00
Status:
Resolved
Priority:
High
Assignee:
-
Category:
-
Target version:
-
% Done:
0%
Source:
Community (user)
Tags:
Backport:
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
init-ceph calculates the default weight of an OSD with
defaultweight="$(df -P -k $osd_data/. | tail -1 | awk '{ print sprintf("%.2f",$2/1073741824) }')"
If the drive is small enough, that can result in 0.00; the script should clamp that to 1.00 or something else appropriate.
(discovered by IRC user dennis__, diagnosed by me)
Updated by Dan Mick about 7 years ago
sage avers: it's now handled in OSD:: update_crush_location and there is a min of .00001 now
Actions