finish migration should handle exception to revert instance info

Bug #1296519 reported by jichenjc
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
jichenjc

Bug Description

when instance resize, it will call finish_migration at last to create new instance and destroy old instance
if driver layer has problem in create new instance, the instance will be set to 'ERROR' state

we are able to use reset-state --active to reset the instance and use it
but the instance information is set to new instance and not reverted to old one

Tags: compute
jichenjc (jichenjc)
Changed in nova:
assignee: nobody → jichencom (jichenjc)
Tracy Jones (tjones-i)
tags: added: compute
melanie witt (melwitt)
Changed in nova:
importance: Undecided → High
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/83278

Changed in nova:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/83278
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=e686131fc4b8724328f0922067569120c90eb261
Submitter: Jenkins
Branch: master

commit e686131fc4b8724328f0922067569120c90eb261
Author: jichenjc <email address hidden>
Date: Tue Mar 25 06:17:01 2014 +0800

    Restore instance flavor info when driver finish_migration fails

    when instance resize, it will call finish_migration at last to create
    new instance and destroy old instance. If driver layer has problem in
    create new instance, the instance will be set to 'ERROR' state.

    we are able to use reset-state --active to reset the instance and use it
    but the instance information is set to new flavor
    and not reverted to old one

    Change-Id: I5961260f50e7893c7bf03e329e06edfd4f295640
    Closes-Bug: #1296519

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → juno-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: juno-3 → 2014.2
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.