nova/nova/tests/unit/compute
Eric M Gonzalez bca425a33f unquiesce instance on volume snapshot failure
This patch adds an exception catch to "snapshot_volume_backed()" of
compute/api.py that catches (at the moment) _all_ exceptions from the
underlying cinderclient. Previously, if the instance is quiesced ( frozen
filesystem ) then the exception will break execution of the function,
skipping the needed unquiesce, and leave the instance in a frozen state.

Now, the exception catch will unquiesce the instance if it was prior to
the failure.

Got a unit test in place with the help of Matt Riedemann.
    test_snapshot_volume_backed_with_quiesce_create_snap_fails

Change-Id: I60de179c72eede6746696f29462ee9d805dace47
Closes-bug: #1731986
2018-02-08 18:38:06 -05: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 Merge "[placement] Add sending global request ID in post" 2018-02-06 04:05:41 +00:00
test_compute_api.py unquiesce instance on volume snapshot failure 2018-02-08 18:38:06 -05:00
test_compute_cells.py Fix invalid UUIDs in remaining tests 2018-01-30 17:15:03 +00:00
test_compute_mgr.py Workaround glanceclient bug when CONF.glance.api_servers not set 2018-02-08 09:06:48 -05:00
test_compute_utils.py Transform instance.resize_prep notification 2018-01-25 09:30:50 +09: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 Handle uuid in HostAPI.compute_node_get 2017-06-19 09:57:49 -04:00
test_instance_list.py Some nit fix in multi_cell_list 2017-12-13 14:27:20 +08: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 Add get_traits() method to ComputeDriver 2018-01-30 20:45:22 -05:00
test_rpcapi.py Add late server group policy check to rebuild 2018-02-06 13:54:12 +01:00
test_shelve.py [placement] Add sending global request ID in delete (2) 2018-01-11 00:34:20 +00:00
test_stats.py Address nits in Ia2296302 2016-03-08 16:48:08 +00:00
test_virtapi.py Remove mox from nova/tests/unit/compute/test_virtapi.py 2016-11-28 08:52:00 +00:00