nova/nova/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 Replace dict.iteritems() with six.iteritems(dict) 2015-05-22 11:33:18 -07:00
resources Use oslo.log 2015-02-22 07:56:40 -05:00
__init__.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
api.py Make evacuate leave a record for the source compute host to process 2015-07-06 15:40:07 -07:00
arch.py Add amd64 to arch.canonicalize() 2014-09-08 08:08:00 -07:00
build_results.py Compute Add build_instance hook in compute manager 2014-12-04 10:12:00 -05:00
cells_api.py Handle cells race condition deleting unscheduled instance 2015-06-03 20:19:47 +00:00
claims.py objects: introduce numa topology limits objects 2015-03-12 16:39:49 -04:00
cpumodel.py Add VirtCPUModel nova objects 2015-02-09 10:26:10 +11:00
flavors.py Replace unicode with six.text_type 2015-05-12 12:31:20 +02:00
hv_type.py Remove hv_type translation shim for powervm 2015-06-17 12:51:00 -07:00
instance_actions.py Add missing instance action record for start of live migration 2014-09-24 10:14:42 +08:00
manager.py Make evacuate leave a record for the source compute host to process 2015-07-06 15:40:07 -07:00
opts.py Use oslo-config-generator instead of generate_sample.sh 2015-06-18 22:00:18 +00:00
power_state.py Remove power_state.BUILDING 2015-04-14 19:10:12 -07:00
resource_tracker.py Merge "Remove compat_instance()" 2015-07-02 20:57:50 +00:00
rpcapi.py Make live migration create a migration object record 2015-06-25 08:42:04 -07:00
stats.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
task_states.py Recover from REBOOT-* state on compute manager start-up 2014-03-12 10:00:54 +00:00
utils.py compute: remove get_image_metadata method 2015-06-09 11:40:48 +01:00
vm_mode.py Convert nova.compute.* to use instance dot notation 2015-02-25 17:21:36 -05:00
vm_states.py Recover from REBOOT-* state on compute manager start-up 2014-03-12 10:00:54 +00:00