Bug 1041208

Summary: [RFE][nova]: Add a task to force revert a resize migration
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/revert-resize-force-option
Whiteboard: upstream_milestone_none upstream_status_needs-code-review upstream_definition_drafting
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-19 16:54:17 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 13:58:16 UTC
Cloned from launchpad blueprint https://blueprints.launchpad.net/nova/+spec/revert-resize-force-option.

Description:

Currently in cases, where the resize takes longer than usual and the customer can no longer tolerate the downtime or  the resize goes to error (cbs-detach failures or others) the admins need a way to revert the resize. 
But due to several constraints on the vm_state and the migration state, the 'revert-resize' api does not work well. They need a way to *force* revert-resize that would work without the above contraints but would check for the source being up before actually reverting, to prevent data loss.

As part of this extension when server action os-resetState action is called with
fix-failed-migration flag, the server vm_state is set to 'resized' and
the server migration status is set to 'finished' so that the server
resize can be reverted

Specification URL (additional information):

None