nova/nova/tests/unit/compute
John Garbutt 017e853b95 Stop failed live-migrates getting stuck migrating
When there are failures in driver.cleanup, we are seeing live-migrations
that get stuck in the live-migrating state. While there has been a patch
to stop the cause listed in the bug this closes, there are other
failures (such as a token timeout when talking to cinder or neutron)
that could trigger this same failure mode.

When we hit an error this late in live-migration, it should be a very
rare event, so its best to just put the instance and migration into an
error state, and help alert both the operator and API user to the
failure that has occurred.

For backport into Newton, 'migrate_instance_start' had to be patched
in the unit test (nova/tests/unit/compute/test_compute.py).

Closes-Bug: #1662626

Change-Id: Idfdce9e7dd8106af01db0358ada15737cb846395
(cherry picked from commit b56f8fc2d1)
(cherry picked from commit 012fa9353f)
2017-06-14 16:24:21 +00:00
..
monitors Allow monitor plugins to set own metric object 2016-06-27 14:38:32 +05:30
__init__.py
eventlet_utils.py
fake_resource_tracker.py Remove extensible resource tracking 2016-04-01 16:45:34 +01:00
test_arch.py
test_claims.py Fix drop_move_claim() on revert resize 2016-10-10 10:05:20 +01:00
test_compute.py Stop failed live-migrates getting stuck migrating 2017-06-14 16:24:21 +00:00
test_compute_api.py Handle MarkerNotFound from cell0 database 2016-12-07 01:38:29 +00:00
test_compute_cells.py Handle ObjectActionError during cells instance delete 2016-09-08 15:42:36 -04:00
test_compute_mgr.py Merge "libvirt: Remove redundant bdm serial mangling and saving during swap_volume" into stable/newton 2017-03-15 04:34:05 +00:00
test_compute_utils.py Transform instance.delete notifications 2016-06-30 16:54:51 +02:00
test_compute_xen.py Merge "Remove mox from tests/unit/compute/test_compute_xen.py" 2016-05-18 12:25:03 +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 Remove compute host from all host aggregates when compute service is deleted 2016-07-16 22:19:44 +03:00
test_hvtype.py Add 'lxd' to the list of recognized hypervisors 2015-11-17 08:56:20 +00:00
test_keypairs.py 'limit' and 'marker' support for db_api and keypair_obj 2016-07-12 14:25:33 +03:00
test_multiple_nodes.py remove the use of import_object_ns 2016-04-22 13:44:39 -04:00
test_resource_tracker.py Ensure ResourceProvider/Inventory created before add Allocations record 2016-09-08 19:57:49 +08:00
test_rpcapi.py Move cell message queue switching and add caching 2016-08-31 22:33:17 +00:00
test_shelve.py Transform instance.shelve notifications 2016-07-07 09:44:11 +02:00
test_stats.py Address nits in Ia2296302 2016-03-08 16:48:08 +00:00
test_virtapi.py Remove unused provider firewall rules functionality in nova 2016-02-01 15:50:04 +01:00
test_vmmode.py Convert nova.compute.* to use instance dot notation 2015-02-25 17:21:36 -05:00