nova/nova/tests/unit/compute
Eric M Gonzalez bcae081c46 unquiesce instance after quiesce failure
If the call to compute_rpcapi.quisece_instance() raises an exception,
any uncaught exception will break out of the function
snapshot_volume_backed(). This can leave the instance in frozen state.

This patch adds a blanket Exception catch to the try block and calls
compute_rpcapi.unquiesce_instance() before reraising.

This has been seen in the wild with RPC timeouts, but this is not the
only possible genesis for an unknown error from quiesce_instance.

Change-Id: Idca5998da8bb42b29a8fffdf52b4af3a043c6326
Closes-Bug: #1754360
(cherry picked from commit 1e77faaa41)
2018-07-10 14:54:07 -04: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 rt: explicitly pass compute node to _update() 2017-01-12 11:30:03 -08:00
test_claims.py rt: use a single ResourceTracker object instance 2017-01-16 14:09:25 -05:00
test_compute.py Detach volumes when VM creation fails 2018-03-06 14:44:03 +00:00
test_compute_api.py unquiesce instance after quiesce failure 2018-07-10 14:54:07 -04:00
test_compute_cells.py Fix invalid UUIDs in remaining tests 2018-01-30 17:15:03 +00:00
test_compute_mgr.py Handle network-changed event for a specific port 2018-06-28 00:16:33 +00:00
test_compute_utils.py Bump compute RPC API to version 5.0 2018-02-08 10:43:56 -08:00
test_compute_xen.py Make xen unit tests work with os-xenapi>=0.3.0 2017-09-05 16:06:31 -04:00
test_flavors.py Make compute unit tests inherit from test.NoDBTestCase 2015-02-24 17:54:29 +02:00
test_host_api.py Make nova service-list use scatter-gather routine 2018-06-29 12:22:37 +00:00
test_instance_list.py Make nova list and migration-list ignore down cells 2018-06-26 18:44:47 +02:00
test_keypairs.py Transform keypair.import notification 2017-10-30 16:44:29 -04:00
test_multi_cell_list.py Some nit fix in multi_cell_list 2017-12-13 14:27:20 +08:00
test_provider_tree.py ProviderTree.get_provider_uuids: Top-down ordering 2018-01-31 08:35:35 -06:00
test_resource_tracker.py Change consecutive build failure limit to a weigher 2018-06-07 07:17:51 -07:00
test_rpcapi.py Compute RPC client bump to 5.0 2018-02-08 12:10:04 -08:00
test_shelve.py Fix shelving a paused instance 2018-05-20 22:11:04 +00:00
test_stats.py Change consecutive build failure limit to a weigher 2018-06-07 07:17:51 -07:00
test_virtapi.py Remove mox from nova/tests/unit/compute/test_virtapi.py 2016-11-28 08:52:00 +00:00