nova/nova/compute
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
..
monitors Merge "Allow compute monitors in different namespaces" 2015-08-31 16:41:35 +00:00
resources Use oslo.log 2015-02-22 07:56:40 -05:00
__init__.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
api.py Merge "Fix precedence of image bdms over image mappings" 2015-09-18 17:12:28 +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 Fix cells use of legacy bdms during local instance delete operations 2015-08-19 14:17:38 +02:00
claims.py claims: move a debug msg to a warn on missing migration 2015-09-21 09:55:57 +01:00
cpumodel.py Add VirtCPUModel nova objects 2015-02-09 10:26:10 +11:00
flavors.py Enable python34 tests for nova/tests/unit/objects/test*.py 2015-07-01 20:29:42 +00:00
hv_type.py libvirt: rename parallels driver to virtuozzo 2015-07-29 18:40:12 +03:00
instance_actions.py Add missing instance action record for start of live migration 2014-09-24 10:14:42 +08:00
manager.py If rescue failed set instance to ERROR 2015-09-22 13:46:39 -07:00
opts.py Move CPU and RAM allocation ratios to ResourceTracker 2015-08-21 14:59:54 -07:00
power_state.py Remove power_state.BUILDING 2015-04-14 19:10:12 -07:00
resource_tracker.py RT: Migration resource tracking uses migration context 2015-09-15 12:36:58 +01:00
rpcapi.py Merge "Remove cell api overrides for force-delete" 2015-08-12 03:09:41 +00:00
stats.py Switch to using oslo_* instead of oslo.* 2015-02-06 06:03:10 -05:00
task_states.py Recover from REBOOT-* state on compute manager start-up 2014-03-12 10:00:54 +00:00
utils.py Replace conductor proxying calls with the new VolumeUsage object 2015-08-23 18:45:39 +02:00
vm_mode.py Convert nova.compute.* to use instance dot notation 2015-02-25 17:21:36 -05:00
vm_states.py Recover from REBOOT-* state on compute manager start-up 2014-03-12 10:00:54 +00:00