nova/nova/tests/unit/scheduler
Matt Riedemann 18179aee4e Add CrossCellWeigher
When performing a resize, we'll want to (by default) select
target hosts from the source cell to do a traditional resize
if possible before considering target hosts in another cell
which will be slower and more complicated. If the source cell
is disabled or target flavor is not available in the source cell,
then we'll have no choice but to select a host from another cell.
But all things being equal between hosts, we want to stay within
the source cell (by default). Therefore this change adds a new
CrossCellWeigher and related configuration option to prefer hosts
within the source cell when moving a server. The weigher is
completely noop unless a cross-cell move is permitted by
configuration, which will be provided in a future change.

Part of blueprint cross-cell-resize

Change-Id: Ib18752efa56cfeb860487fe6b26102bb4b1db038
2019-12-12 12:40:29 -05:00
..
client Use Placement 1.34 (string suffixes & mappings) 2019-12-05 17:02:46 -06:00
filters objects: Add 'NUMACell.pcpuset' field 2019-09-18 00:21:10 +01:00
weights Add CrossCellWeigher 2019-12-12 12:40:29 -05:00
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
fakes.py Add support for translating CPU policy extra specs, image meta 2019-09-18 00:21:10 +01:00
ironic_fakes.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_filter_scheduler.py Add Selection.availability_zone field 2019-10-02 13:39:24 -04:00
test_filters.py filters: Stop handling cells v1 2019-06-12 16:09:46 +01:00
test_host_filters.py Modify left filters for RequestSpec 2015-12-11 12:27:20 +01:00
test_host_manager.py Change HostManager to allow scheduling to other cells 2019-08-27 14:26:33 -04:00
test_request_filter.py ItemsMatcher: mock call list arg in any order 2019-10-18 14:16:57 -05:00
test_rpcapi.py Use long_rpc_timeout in select_destinations RPC call 2018-11-20 09:03:53 -05:00
test_scheduler.py Add support for translating CPU policy extra specs, image meta 2019-09-18 00:21:10 +01:00
test_scheduler_utils.py hacking: Resolve W503 (line break occurred before a binary operator) 2019-06-24 14:24:06 -05:00
test_utils.py Use provider mappings from Placement (mostly) 2019-12-06 11:04:55 -06:00