nova/nova/tests/unit/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 Allow monitor plugins to set own metric object 2016-06-27 14:38:32 +05:30
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
eventlet_utils.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
fake_resource_tracker.py Compute: Handle reshaped provider trees 2018-08-28 14:05:24 -05:00
test_claims.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_compute.py Always read-deleted=yes on lazy-load 2018-11-27 12:42:48 -05:00
test_compute_api.py Minimal construct plumbing for nova show when a cell is down 2018-10-31 15:22:09 -04:00
test_compute_cells.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_compute_mgr.py Always read-deleted=yes on lazy-load 2018-11-27 12:42:48 -05:00
test_compute_utils.py Transform volume.usage notification 2018-10-09 06:28:11 +00:00
test_compute_xen.py Remove mox in nova/tests/unit/virt/xenapi/stubs.py 2018-06-21 23:59:39 +00:00
test_flavors.py Make compute unit tests inherit from test.NoDBTestCase 2015-02-24 17:54:29 +02:00
test_host_api.py Minimal construct plumbing for nova service-list when a cell is down 2018-10-31 15:22:15 -04:00
test_instance_list.py Refactor scatter-gather utility to return exception objects 2018-10-31 15:18:07 -04:00
test_keypairs.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_multi_cell_list.py Refactor scatter-gather utility to return exception objects 2018-10-31 15:18:07 -04:00
test_provider_tree.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_resource_tracker.py Merge "Make ResourceTracker.tracked_instances a set" 2018-11-01 17:13:06 +00:00
test_rpcapi.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_shelve.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_stats.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_virtapi.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00