accounting bug for lvm with thin provisioning and max_over_subscription_ratio=1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
Michael Rowden |
Bug Description
The following was discovered on stable/kilo but I think it applies to current master as well.
When using thin provisioning with LVM, the driver reports the actual free space as free_capacity_gb. This means that we could allocate a volume the size of the thin pool, but if we haven't written to it we will still report a large amount in free_capacity_gb.
In the capacity filter there is logic that looks like this:
if (host_state.
<handle thin provisioning case>
if free < volume_size:
return False
return True
The problem is that if we have thin provisioning enabled, but max_over_
I think the fix is to change the above to use "host_state.
Changed in cinder: | |
assignee: | nobody → Siva Mullapudi (scmullap) |
Changed in cinder: | |
assignee: | Siva Mullapudi (scmullap) → Michael Rowden (mrrowden) |
Changed in cinder: | |
assignee: | Michael Rowden (mrrowden) → Eric Harney (eharney) |
Changed in cinder: | |
assignee: | Eric Harney (eharney) → Michael Rowden (mrrowden) |
Fix proposed to branch: master /review. openstack. org/275408
Review: https:/