nova/nova/tests
Kevin_Zheng 036fb56ab3 Only run placement request filters when Placement will be called
Any enabled placement request filters are processed during scheduling
here:

https://github.com/openstack/nova/blob/d78055/nova/scheduler/manager.py#L127

But then if we're doing a rebuild, or the driver.USES_ALLOCATION_CANDIDATES
is False, we don't call placement:

https://github.com/openstack/nova/blob/d78055/nova/scheduler/manager.py#L132

https://github.com/openstack/nova/blob/d78055/nova/scheduler/manager.py#L135

So we're unnecessarily processing the request spec filters (like
querying the aggregates table) in those conditions.

Change-Id: I8ed019c2208c28bb733aac961e855ce77f332a1e
Closes-bug: #1772523
2018-06-04 07:33:24 +00:00
..
functional Merge "[placement] default to accept of application/json when */*" 2018-06-01 21:45:58 +00:00
live_migration/hooks Fix live migration grenade ceph setup 2017-10-26 17:53:15 -04:00
unit Only run placement request filters when Placement will be called 2018-06-04 07:33:24 +00:00
__init__.py
fixtures.py Merge "update scheduler to use image-traits" 2018-05-11 22:34:20 +00:00
json_ref.py Nits from Ic3ab7d60e4ac12b767fe70bef97b327545a86e74 2017-11-28 15:55:45 +01:00
uuidsentinel.py