nova/nova/scheduler
mb 6f07f76902 Fix bug preventing forbidden traits from working
Modifies _clean_empties function to take forbidden traits into account
in addition to required traits.

Added unit test test_resources_from_request_spec_flavor_forbidden_trait
to test that a single forbidden trait doesn't get lost in the
resources_from_request_spec function.

Also updated the functional test
test_flavor_forbidden_traits_based_scheduling to do the right thing.

NOTE: test_utils needed a tweak in this (rocky) cherry-pick to reference
RequestGroup from placement/lib since objects.RequestGroup wasn't
introduced until stein [1].

[1] I46c97d2641d9685ef59771314665a17a5236097d

Change-Id: I491b10c9c202baae4a37034848147f910a50eebf
Closes-Bug: #1821824
(cherry picked from commit c088856c8c)
(cherry picked from commit 6a5be4ae25)
2019-04-03 11:44:16 -05:00
..
client Use long_rpc_timeout in select_destinations RPC call 2018-11-26 12:52:39 -05:00
filters scheduler: Start utilizing RequestSpec.network_metadata 2018-07-24 15:05:07 -04:00
weights Change deprecated policies to policy 2018-07-27 02:20:30 +00:00
__init__.py Improve hacking rule to avoid author markers 2014-05-05 14:35:20 +02:00
caching_scheduler.py Mark Chance and Caching schedulers as deprecated 2017-08-09 10:53:53 -07:00
chance.py Modify select_destinations() to return objects and alts 2017-12-07 15:01:13 +00:00
driver.py Remove [scheduler]/host_manager config option 2018-05-03 09:39:26 -04:00
filter_scheduler.py Fix WeighedHost logging regression 2019-03-06 13:48:30 +00:00
host_manager.py Revert "Make host_aggregate_map dictionary case-insensitive" 2018-09-25 19:08:15 -04:00
manager.py Use INFO for logging no allocation candidates 2018-09-27 11:06:45 -04:00
request_filter.py Honor availability_zone hint via placement 2018-05-22 08:56:50 -07:00
rpcapi.py Use long_rpc_timeout in select_destinations RPC call 2018-11-26 12:52:39 -05:00
utils.py Fix bug preventing forbidden traits from working 2019-04-03 11:44:16 -05:00