Actions
Bug #38624
opencrush: get_rule_weight_osd_map does not handle multi-take rules
Status:
New
Priority:
Normal
Assignee:
-
Category:
Introspection/Control
Target version:
-
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
CrushWrapper::get_rule_weight_osd_map() does not handle multi-take rules well. for example, a take 1 (primary) and take 2 (replicas) will miscalculate the usage ratio, leading to a misleading MAX AVAIL in 'ceph df'. That calculation should also take the pool size into account, since a rule might be take 2, take 2, but have replica size 3.
Actions