nova/nova/tests/unit/scheduler
Surya Seetharaman 472b999355 Disable limit if affinity(anti)/same(different)host is requested
When max_placement_results is less than the total number of nodes in
a deployment it may not be possible to use the affinity, anti-affinity,
same host or different host filters as there is no guarantee
for placement to return the expected hosts under such situations. This
patch disables the max_placement_results parameter when nova queries
placement for ``GET /allocation_candidates`` if the
request_spec.scheduler_hints containts any of group, same_host or
different_host keys.

NOTE(mriedem): The test is modified to remove the to_querystring
call since change I496e8d64907fdcb0e2da255725aed1fc529725f2 that
added it was in Rocky. As such, assertResourceRequestsEqual is
changed to also assert the expected limit value.

Change-Id: Ia2d5f80b6db59a8f6da03344aeaa6aa599407672
Closes-Bug: #1827628
(cherry picked from commit 2f9e972ba3)
(cherry picked from commit c094a6ef0c)
(cherry picked from commit aa19788d78)
2019-08-09 10:26:09 -04:00
..
client Disable limits if force_hosts or force_nodes is set 2018-07-29 00:58:30 +08:00
filters Added ability to configure default architecture for ImagePropertiesFilter 2018-05-15 12:28:43 +00:00
weights Change consecutive build failure limit to a weigher 2018-06-07 07:17:51 -07:00
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
fakes.py placement: using the dict format for the allocation in claim_resources 2018-01-24 23:31:18 +08:00
ironic_fakes.py Set IronicNodeState.uuid in _update_from_compute_node 2017-07-25 17:52:47 -04:00
test_caching_scheduler.py Change consecutive build failure limit to a weigher 2018-06-07 07:17:51 -07:00
test_chance_scheduler.py Modify select_destinations() to return objects and alts 2017-12-07 15:01:13 +00:00
test_client.py [placement] Add sending global request ID in delete (3) 2018-01-22 02:23:12 +00:00
test_filter_scheduler.py Fix WeighedHost logging regression 2019-03-06 08:50:09 -05:00
test_filters.py Fix invalid uuid warnings 2016-05-10 09:04:37 +00:00
test_host_filters.py Modify left filters for RequestSpec 2015-12-11 12:27:20 +01:00
test_host_manager.py Init HostState.failed_builds 2019-07-03 14:01:27 +00:00
test_ironic_host_manager.py Stop globally caching host states in scheduler HostManager 2018-01-15 19:54:15 +00:00
test_rpcapi.py Modify select_destinations() to return objects and alts 2017-12-07 15:01:13 +00:00
test_scheduler.py Skip placement on rebuild in same host 2018-04-12 19:16:31 +00:00
test_scheduler_utils.py Make scheduler.utils.setup_instance_group query all cells 2018-09-05 16:36:22 +00:00
test_utils.py Disable limit if affinity(anti)/same(different)host is requested 2019-08-09 10:26:09 -04:00