]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Rename free_virtual in capacity filter
authorVipin Balachandran <vbala@vmware.com>
Tue, 18 Aug 2015 11:13:27 +0000 (16:43 +0530)
committerVipin Balachandran <vbala@vmware.com>
Tue, 18 Aug 2015 11:13:27 +0000 (16:43 +0530)
commitefdeaf1cb60b63c0a8e6d92c14a8b0f0a42fe6d2
treee81883902dc9c4f24e4e0f70f947e7a694c6189b
parentea4be60e8584c715e2c3119000e94074da310970
Rename free_virtual in capacity filter

Capacity filter uses free_virtual capacity to filter out a host if
thin provisioning is enabled and over-subscription ratio is less
than or equal to max_oversubscription_ratio. The current formula
for free_virtual is not calculating the real free virtual capacity.
Rather it computes "adjusted" free virtual capacity which is the
current free capacity (after taking into account of reserved space)
we can over-subscribe. This patch adds necessary documentation and
renames free_virtual to adjusted_free_virtual to clarify this.

Change-Id: I4c2b32ade09583497cf670f6504b8e929e961293
cinder/scheduler/filters/capacity_filter.py