]> 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>
Fri, 5 Jun 2015 02:40:55 +0000 (22:40 -0400)
commit28bb8d27d57a034f5e9e78751ee87897bc72c6c2
tree5eafc578075fbe59febcf9779d1569469362113a
parent71d5fff34168773a0af17828d33a0893b23c379a
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
(cherry picked from commit ab017d98b1bb39d218bd93970c0e561c685b7dbf)
cinder/scheduler/filters/capacity_filter.py
cinder/tests/scheduler/test_host_filters.py