nova/nova/compute
Andrea Rosa fa00292546 Abort an ongoing live migration
This change adds a DELETE call on the server-migrations object to cancel
a running live migration of a specific instance.
TO perform the cancellation the virtualization driver needs to support
it, in case that the feature is not supported we return an error.
We allow a cancellation of a migration only if the migration is
running at the moment of the request and if the migration type is equal
to 'live-migration'.
In this change we implement this feature for the libvirt driver.
When the cancellation of a live migration succeeded we rollback the live
migration and we set the state of the Migration object equals to
'cancelled'.
The implementation of this change is based on the work done by the
implementation of the feature called 'force live migration':
https://review.openstack.org/245921

DocImpact
ApiImpact

Implements blueprint: abort-live-migration
Change-Id: I1ff861e54997a069894b542bd764ac3ef1b3dbb2
2016-02-26 15:11:41 +00:00
..
monitors config options: Centralise 'virt.driver' options 2016-02-11 09:40:25 +00:00
resources Deprecate Extensible Resource Tracker 2015-11-05 17:40:37 +00:00
__init__.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
api.py Abort an ongoing live migration 2016-02-26 15:11:41 +00: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 Pass attachment_id to Cinder when detach a volume 2016-01-20 22:16:27 +01:00
claims.py Claims: fix log message 2015-11-13 06:13:52 -08:00
cpumodel.py Add VirtCPUModel nova objects 2015-02-09 10:26:10 +11:00
flavors.py Remove flavors.get_flavor() only used in tests 2015-11-13 14:17:06 +01:00
hv_type.py Add 'lxd' to the list of recognized hypervisors 2015-11-17 08:56:20 +00:00
instance_actions.py Abort an ongoing live migration 2016-02-26 15:11:41 +00:00
manager.py Abort an ongoing live migration 2016-02-26 15:11:41 +00:00
opts.py single point of entry for sample config generation 2016-01-08 13:55:26 +00:00
power_state.py Remove power_state.BUILDING 2015-04-14 19:10:12 -07:00
resource_tracker.py Update ComputeNode values with disk allocation ratios in the RT 2016-02-22 09:58:53 +00:00
rpcapi.py Abort an ongoing live migration 2016-02-26 15:11:41 +00:00
stats.py RT: Decrese usage for offloaded instances 2016-02-16 19:14:50 +00:00
task_states.py Remove the executable bit from several python files 2015-12-10 21:43:22 +00:00
utils.py Merge "Remove two unneeded db lookups during delete of a resizing instance" 2015-12-02 02:36:37 +00:00
vm_mode.py Convert nova.compute.* to use instance dot notation 2015-02-25 17:21:36 -05:00
vm_states.py Add a compute API to trigger crash dump in instance. 2015-12-19 09:30:08 +08:00