cinder/cinder/tests/scheduler
Zhiteng Huang dcdce87822 Downgrade 'infinite' and 'unknown' capacity in weigher
When FilterScheduler was first introduced into Cinder, drivers were
required for the first time to report capacity. Some drivers preferred
to report 'infinite' or 'unknown' capacity because they were doing
thin-provisioning or the total capacity kept increasing. Now that we
have better support for thin-provisioning and we do find unrealistic
capacity couldn't do us any good in making optimal scheduling decision,
because 'infinite' and 'unknown' would always have the highest weight
when the weight multiplier is positive, which in most cases it is.

Drivers are expected to avoid sending 'infinite' 'unknown' capacity
anymore, instead, should report an actual real number for total/free
capacity.

This fix doesn't fix the driver, instead a small tweak is added to
CapacityWeigher in order to downgrade those drivers who report
'infinite' or 'unknown' as free capacity.  In particular, those who
report 'infinite'/'unknown' free capacity will be adjusted to be the
one has lowest weight, no matter in 'spreading' (weight multiplier>0)
or 'stacking' (weight multiplier<0) mode.

DocImpact

Change-Id: Ied087386a1a2f43e6a77499a817d5c637ef448f6
Partial-bug: #1350638
2014-09-23 12:49:58 +08:00
..
__init__.py Enable flake8 H303,H304 checking 2014-04-15 09:16:01 +00:00
fakes.py Downgrade 'infinite' and 'unknown' capacity in weigher 2014-09-23 12:49:58 +08:00
test_allocated_capacity_weigher.py Pool-aware Scheduler Support 2014-08-31 16:27:02 -07:00
test_capacity_weigher.py Downgrade 'infinite' and 'unknown' capacity in weigher 2014-09-23 12:49:58 +08:00
test_chance_weigher.py Fix and enable gating on F401 2013-12-20 15:01:23 +01:00
test_filter_scheduler.py Pool-aware Scheduler Support 2014-08-31 16:27:02 -07:00
test_host_filters.py Pool-aware Scheduler Support 2014-08-31 16:27:02 -07:00
test_host_manager.py Allow scheduler pool information to be retrieved 2014-09-20 11:04:12 -07:00
test_rpcapi.py Allow scheduler pool information to be retrieved 2014-09-20 11:04:12 -07:00
test_scheduler.py Volume types need to be specified when creating CG 2014-09-13 14:36:03 -04:00
test_scheduler_options.py Enable flake8 F841 checking 2014-04-01 11:38:35 +04:00
test_volume_number_weigher.py Pool-aware Scheduler Support 2014-08-31 16:27:02 -07:00