]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Allow provisioning to reach max oversubscription
authorXing Yang <xing.yang@emc.com>
Wed, 3 Jun 2015 14:40:26 +0000 (10:40 -0400)
committerXing Yang <xing.yang@emc.com>
Wed, 3 Jun 2015 14:40:26 +0000 (10:40 -0400)
commitab017d98b1bb39d218bd93970c0e561c685b7dbf
tree7980c2e1513a621a5dc2f3b7e4fe5d58a35c9f9f
parente2de169c6e34954ca943cfbae94f56410b9885c5
Allow provisioning to reach max oversubscription

Currently if provisioned ratio is equal to max_over_subscription_ratio,
the capacity filter does not allow any more thin provisioning. This patch
makes a change so that thin provisioning is allowed if provisioned ratio
is equal to max_over_subscription_ratio; it will only stop provisioning
if provisioned ratio is greater than max_over_subscription_ratio.

Change-Id: Ibf13ef97472b80a1b59ffd4389a4ed2eacf67205
Partial-Bug: #1458976
cinder/scheduler/filters/capacity_filter.py
cinder/tests/unit/scheduler/test_host_filters.py