Bug 1041265

Summary: [RFE][nova]: Fix failed migration so that support can revert resize
Product: Red Hat OpenStack Reporter: RHOS Integration <rhos-integ>
Component: RFEsAssignee: RHOS Maint <rhos-maint>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: markmc, yeylon
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://blueprints.launchpad.net/nova/+spec/fix-failed-migration
Whiteboard: upstream_milestone_none upstream_status_unknown upstream_definition_drafting
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-19 17:19:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description RHOS Integration 2013-12-12 14:12:26 UTC
Cloned from launchpad blueprint https://blueprints.launchpad.net/nova/+spec/fix-failed-migration.

Description:

There are couple of scenarios in which the instance's vm_state and task_state are not in one of the allowed states. For instance the rsync process dies midway due to deployments or compute node restart and never goes to error state. In those cases support is forced to update the db and put the instance and migration to error status so that the revert goes through. The reset-state api only changes the vm state and marks the task state as None. We need to change the migration status to 'finished' for the revert.
We will have to add a new extension to reset the vm_state to 'resized', task state to None and the migration status to 'finished'

Specification URL (additional information):

None