nova/nova/compute
Dan Smith 604819b29c Always read-deleted=yes on lazy-load
For some reason we were only reading deleted instances when loading generic
fields and not things like flavor. That weird behavior isn't very helpful,
so this makes us always read deleted for that case. Some of the fields, like
tags, will short-circuit that and just immediately lazy-load an empty set.
But for anything else, we should allow reading that data if it's still there.

With this change, we are able to remove a specific read_deleted='yes' usage
from ComputeManager._destroy_evacuated_instances() which is handled with
the generic solution. TestEvacuateDeleteServerRestartOriginalCompute asserts
that the evacuate scenario is still fixed.

Related-Bug: #1794996
Related-Bug: #1745977

Change-Id: I8ec3a3a697e55941ee447d0b52d29785717e4bf0
2018-11-27 12:42:48 -05:00
..
monitors Remove translation of log messages 2017-06-09 09:06:16 +00:00
__init__.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
api.py Minimal construct plumbing for nova service-list when a cell is down 2018-10-31 15:22:15 -04:00
build_results.py Compute Add build_instance hook in compute manager 2014-12-04 10:12:00 -05:00
cells_api.py Minimal construct plumbing for nova service-list when a cell is down 2018-10-31 15:22:15 -04:00
claims.py [Trivial] docstrings, typos, minor refactoring 2017-08-28 08:33:58 -05:00
flavors.py Remove unused flavor_delete_info() method 2018-08-03 12:44:52 -04:00
instance_actions.py Add instance action record for snapshot instances 2017-12-11 17:46:38 +08:00
instance_list.py Minimal construct plumbing for nova list when a cell is down 2018-10-31 15:12:18 -04:00
manager.py Always read-deleted=yes on lazy-load 2018-11-27 12:42:48 -05:00
migration_list.py Refactor scatter-gather utility to return exception objects 2018-10-31 15:18:07 -04:00
multi_cell_list.py Refactor scatter-gather utility to return exception objects 2018-10-31 15:18:07 -04:00
power_state.py Removed enum duplication from nova.compute 2016-09-02 07:30:44 +00:00
provider_tree.py Add missing ws seperator between words 2018-11-26 23:42:18 +00:00
resource_tracker.py Merge "Make ResourceTracker.tracked_instances a set" 2018-11-01 17:13:06 +00:00
rpcapi.py Fix up compute rpcapi version for pike release 2018-10-22 15:15:49 +11:00
stats.py Change consecutive build failure limit to a weigher 2018-06-06 15:18:50 -07:00
task_states.py Fix resource tracker updates during instance evacuation 2018-09-12 13:05:29 +03:00
utils.py Transform volume.usage notification 2018-10-09 06:28:11 +00:00
vm_states.py Removed enum duplication from nova.compute 2016-09-02 07:30:44 +00:00