nova/nova/tests/unit/compute
Dan Smith d9c696acf8 Make evacuate leave a record for the source compute host to process
This makes the evacuate process leave a record in the database about the
evacuation, and from what host it was being performed. Now, the compute
manager will use that breadcrumb trail to decide whether it should delete
locally-running instances, instead of just the hostname mismatch.

Since this does a query by migration_type, I added a unit test to the
test_db_api module to prove this actually works.

DocImpact: Deprecates the workarounds/destroy_after_evacuate config option

Related to blueprint robustify-evacuation
Closes-Bug: #1471887
Change-Id: I972c224dfb954a9f06e221c9235ee6e4889c2619
2015-07-06 15:40:07 -07:00
..
monitors Drop L from literal integer numbers for Python 3 2015-05-11 11:15:33 +02:00
__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 Use compute_node consistently in ResourceTracker 2015-05-12 10:09:54 +00:00
test_arch.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
test_claims.py Merge "objects: introduce numa topology limits objects" 2015-03-13 09:45:23 +00:00
test_compute.py Make evacuate leave a record for the source compute host to process 2015-07-06 15:40:07 -07:00
test_compute_api.py compute: remove get_image_metadata method 2015-06-09 11:40:48 +01:00
test_compute_cells.py Merge "Add the swap and ephemeral BDMs if needed" 2015-06-10 18:54:55 +00:00
test_compute_mgr.py Make evacuate leave a record for the source compute host to process 2015-07-06 15:40:07 -07:00
test_compute_utils.py compute: remove get_image_metadata method 2015-06-09 11:40:48 +01:00
test_compute_xen.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
test_flavors.py Make compute unit tests inherit from test.NoDBTestCase 2015-02-24 17:54:29 +02:00
test_host_api.py Code clean up db.instance_get_all_by_host() 2015-05-12 08:16:41 +00:00
test_hvtype.py Remove hv_type translation shim for powervm 2015-06-17 12:51:00 -07:00
test_keypairs.py Fixes X509 keypair creation failure 2015-04-28 12:21:53 +03:00
test_multiple_nodes.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
test_resource_tracker.py Convert RT compute_node to be a ComputeNode object 2015-07-02 07:45:40 +01:00
test_resources.py Make compute unit tests inherit from test.NoDBTestCase 2015-02-24 17:54:29 +02:00
test_rpcapi.py Make live migration create a migration object record 2015-06-25 08:42:04 -07:00
test_shelve.py Delete shelved_* keys in n-cpu unshelve call 2015-05-13 23:50:51 -07:00
test_stats.py Convert nova.compute.* to use instance dot notation 2015-02-25 17:21:36 -05:00
test_tracker.py Convert RT compute_node to be a ComputeNode object 2015-07-02 07:45:40 +01:00
test_virtapi.py Switch to moxstubout and mockpatch from oslotest 2014-12-02 08:03:42 -05:00
test_vmmode.py Convert nova.compute.* to use instance dot notation 2015-02-25 17:21:36 -05:00