Exception in finish_resize() will leave instance stuck in RESIZE

Bug #928474 reported by Johannes Erdfelt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Johannes Erdfelt

Bug Description

An exception in nova.compute.manager:finish_resize() will leave the instance stuck in ERROR. There is some handling of exceptions (but only wrapping the driver finish_resize() method) where as exceptions can happen elsewhere (like _get_image_meta that I just saw).

The existing exception handling should probably cover the entire function and not just the stuff that calls the driver.

Revision history for this message
Johannes Erdfelt (johannes.erdfelt) wrote :

As well as any exceptions that occur in _get_instance_nw_info() during finish_resize() (as I just saw in some testing).

Changed in nova:
assignee: nobody → Johannes Erdfelt (johannes.erdfelt)
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/3908

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

Reviewed: https://review.openstack.org/3908
Committed: http://github.com/openstack/nova/commit/5d85be45a53d0a065622e84de30c65c1ce75faca
Submitter: Jenkins
Branch: master

commit 5d85be45a53d0a065622e84de30c65c1ce75faca
Author: Johannes Erdfelt <email address hidden>
Date: Wed Feb 8 19:07:43 2012 +0000

    Handle service failures during finish_resize gracefully

    Fixes bug 928474

    If exceptions occur in the network or image service during finish_resize(),
    the instance can be left in RESIZE state. This change will ensure those
    exceptions will move the instance to ERROR as well.

    Change-Id: I638db27da27310ccd55d52453c3aadaa41634040

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → essex-4
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: essex-4 → 2012.1
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.