Nova compute process crash doesn't reset task state 'migrating'

Bug #1339823 reported by John Warren
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
John Warren

Bug Description

When a live migration (task state = migrating) task is running, and the compute service goes down, the instance remains in migrating state when the compute service restarts. The compute/manager.py _init_instance method seems to handle all states except migrating. It handles inactive migration (resize_migrating), but not live migration.

Revision history for this message
Matt Riedemann (mriedem) wrote :

Bug 1276214 sounds related but the difference is when the failure happens.

tags: added: migration
tags: added: compute
Revision history for this message
Loganathan Parthipan (parthipan) wrote :

Bug 1319797 is also related.

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/107435

Changed in nova:
assignee: nobody → John Warren (jswarren)
status: New → In Progress
Revision history for this message
Jay Pipes (jaypipes) wrote :

Setting to medium, as there is a workaround of updating the database manually... will review the patch shortly.

Changed in nova:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

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

commit fc821e10f259ec8747c2c3b495ce8a4c05c8349c
Author: John Warren <email address hidden>
Date: Wed Jul 16 16:00:32 2014 +0000

    Reset task state 'migrating' on nova compute restart

    This change has the compute manager's init_instance method check
    for a task state set to 'migrating' and resets the task state to
    None, so that live migrations that were pending when the compute
    service went down do not result in instances that are perpetually
    stuck in 'migrating' task state.

    Change-Id: If23ea983cc048f317daae594f420a643f1bfe6ac
    Closes-Bug: #1339823

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.