nova/nova/tests
George Shuklin a9e4e2c9a5 If rescue failed set instance to ERROR
The compute API will allow attempting to rescue an instance that is in
active/stopped/error state.  The compute manager will power off the instance
before calling driver.rescue.

If the rescue call fails in the virt driver, we should set the instance
to ERROR state since we (1) know the instance is definitely not active since
the compute manager powered it off and (2) we don't know what failed in the
virt driver, so punting and putting the instance into ERROR state is better
than leaving it broken and not signaling that with the vm_state.

Co-Authored-By: Matt Riedemann <mriedem@us.ibm.com>

Closes-Bug: 1418590
Change-Id: Ia1054d3f9193f876803f8b5a26d00bd9d5d66c12
2015-09-22 13:46:39 -07:00
..
functional Merge "Fix order of arguments in assertEqual" 2015-09-18 18:46:13 +00:00
unit If rescue failed set instance to ERROR 2015-09-22 13:46:39 -07:00
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
fixtures.py Skip additionalProperties checks when LegacyV2CompatibleWrapper enabled 2015-08-06 14:38:45 +08:00