nova/nova
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
..
api Delete resource providers for all nodes when deleting compute service 2019-06-13 14:58:20 -04:00
cells Remove 'instance_update_at_top', 'instance_destroy_at_top' 2019-05-02 08:32:05 -06:00
cmd Merge "Query `in_tree` to placement" 2019-05-02 21:55:38 +00:00
common
compute Remove 'instance_update_at_top', 'instance_destroy_at_top' 2019-05-02 08:32:05 -06:00
conductor Merge "Only call _fill_provider_mapping if claim succeeds" 2019-05-02 12:53:47 +00:00
conf Merge "Remove deprecated 'default_flavor' config option" 2019-05-02 00:46:59 +00:00
console Stop handling cells v1 for console authentication 2019-04-16 18:26:17 +01:00
consoleauth Stop handling cells v1 for console authentication 2019-04-16 18:26:17 +01:00
db Merge "Add get_compute_nodes_by_host_or_node()" 2019-05-01 21:32:16 +00:00
hacking Bump to hacking 1.1.0 2019-04-12 16:23:49 +01:00
image Share snapshot image membership with instance owner 2019-02-08 18:06:27 -05:00
ipv6
keymgr
locale Imported Translations from Zanata 2019-03-22 06:26:27 +00:00
network Remove 'instance_info_cache_update_at_top' 2019-04-29 17:55:41 +01:00
notifications Remove CellMappingPayload database_connection and transport_url fields 2019-04-04 09:59:12 -04:00
objects Remove 'instance_update_at_top', 'instance_destroy_at_top' 2019-05-02 08:32:05 -06:00
pci Add get_instance_pci_request_from_vif 2019-03-07 11:37:53 +02:00
policies Remove '/os-cells' REST APIs 2019-04-16 18:26:13 +01:00
privsep Add test coverage for nova.privsep.qemu. 2019-04-04 20:44:01 +00:00
scheduler Avoid unnecessary joins in delete_resource_provider 2019-06-13 15:03:02 -04:00
servicegroup Fix deprecation warning for threadgroup.add_timer 2019-02-07 09:37:00 -05:00
tests Avoid unnecessary joins in delete_resource_provider 2019-06-13 15:03:02 -04:00
virt Merge "libvirt: Avoid using os-brick encryptors when device_path isn't provided" 2019-04-29 22:03:48 +00:00
vnc Deprecate the nova-xvpvncproxy service 2018-10-15 10:03:13 +01:00
volume Bump to hacking 1.1.0 2019-04-12 16:23:49 +01:00
__init__.py Eventlet monkey patching should be as early as possible 2019-03-22 09:27:16 +00:00
availability_zones.py Always pass HostAPI to get_availability_zones 2019-04-26 15:30:48 -04:00
baserpc.py
block_device.py Add method to generate device names universally 2019-01-15 18:55:11 +00:00
cache_utils.py
config.py Configure placement DB context manager for nova-manage/status 2018-09-05 10:29:48 -04:00
context.py Bump to hacking 1.1.0 2019-04-12 16:23:49 +01:00
crypto.py
debugger.py
exception.py Merge "Added mount fstype based validation of Quobyte mounts" 2019-04-05 17:41:13 +00:00
exception_wrapper.py
filters.py
hooks.py
i18n.py
loadables.py
manager.py
monkey_patch.py Bump to hacking 1.1.0 2019-04-12 16:23:49 +01:00
policy.py Fix string interpolations in logging calls 2019-01-29 15:06:39 +09:00
profiler.py
quota.py Merge "quota: remove defaults kwarg in get_project_quotas" 2019-02-26 13:26:24 +00:00
rc_fields.py Switch to using os-resource-classes 2019-02-07 11:11:09 +00:00
rpc.py test_rpc: Stop f****** with global state 2019-04-26 12:21:16 +01:00
safe_utils.py
service.py Remove 'nova-cells' service 2019-04-09 17:15:37 +01:00
service_auth.py
test.py Merge "Make nova.compute.rpcapi.ComputeAPI.router a singleton" 2019-04-28 20:22:52 +00:00
utils.py Eventlet monkey patching should be as early as possible 2019-03-22 09:27:16 +00:00
version.py
weights.py Per aggregate scheduling weight 2019-01-21 11:48:44 +08:00
wsgi.py