nova/nova/tests/api/openstack/compute/plugins
David McNally cc0be157d0 Recover from REBOOT-* state on compute manager start-up
If a compute manager is stopped / fails during certain REBOOT-*
operations then the instance will be left stuck in a transitional
task_state

This change handles two possible task states REBOOT_PENDING and
REBOOT_STARTED (for both soft and hard reboots). And either clears
these states or retries the reboot depending on the instance state.

Both task states are set after the request has gotten to the compute
manager so we can handle these safely knowing the operation has
ended/failed with the restart of the compute manager.

We retry the reboot where the state is PENDING and where the state is
STARTED and the instance is not running.

Where the instance is running and the state is STARTED we simply
transition the instance to an ACTIVE state. The user can retry the
reboot if required.

Related to blueprint recover-stuck-state

Change-Id: Ib318b3d444a67616441302f3daa8de20ee946f3f
2014-03-12 10:00:54 +00:00
..
v3 Recover from REBOOT-* state on compute manager start-up 2014-03-12 10:00:54 +00:00
__init__.py API extensions framework for v3 API 2013-05-13 10:31:22 +09:30