nova/nova/tests/unit/scheduler
Matt Riedemann 8921a470ee Avoid unnecessary joins in delete_resource_provider
If cascade=True, we're getting all of the instances on the
compute node just to use the uuid, which will by default
join on the info_cache and security_groups for the instances.
This is a simple optimization to avoid those unnecessary joins.

A TODO is left to further optimize this with a new InstanceList
query method to just get the instance uuids on a given host/node
combo, but that requires an RPC change which we can't backport.

Change-Id: Ie121210456a240c257979d3269db115ddae2d23b
Related-Bug: #1811726
Related-Bug: #1756179
2019-06-13 15:03:02 -04:00
..
client Avoid unnecessary joins in delete_resource_provider 2019-06-13 15:03:02 -04:00
filters Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
weights Per aggregate scheduling weight 2019-01-21 11:48:44 +08:00
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
fakes.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
ironic_fakes.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_filter_scheduler.py Fix WeighedHost logging regression 2019-03-05 17:16:23 -05:00
test_filters.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_host_filters.py Modify left filters for RequestSpec 2015-12-11 12:27:20 +01:00
test_host_manager.py Add get_compute_nodes_by_host_or_node() 2019-04-17 08:31:54 +00:00
test_request_filter.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -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 Remove the CachingScheduler 2018-10-18 17:55:36 -04:00
test_scheduler_utils.py Transform compute_task notifications 2018-11-21 16:23:28 +09:00
test_utils.py Query `in_tree` to placement 2019-04-17 08:52:59 +00:00