instance stuck into rebuild state when nova-compute unexpected restart

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

Bug Description

when rebuild an instance, and nova-compute died unexpectedly, then the instance will be in REBUILD state forever unless admin take actions

[root@controller ~]# nova list
+--------------------------------------+--------+---------+------------+-------------+--------------------------------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+--------+---------+------------+-------------+--------------------------------------------+
| a9dd1fd6-27fb-4128-92e6-93bcab085a98 | test11 | REBUILD | rebuilding | Running

jichenjc (jichenjc)
Changed in nova:
assignee: nobody → jichencom (jichenjc)
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/86219

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

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

commit 2bc0877d3cbe5e6ed9bad0907f61011014b75a2d
Author: jichenjc <email address hidden>
Date: Fri Mar 28 04:22:26 2014 +0800

    Update instance state after compute service died for rebuilded instance

    When nova-compute died unexpectedly or rpc message lost unexpectly
    and an rebuild operation is ongoing, the instance will be in REBUILD
    state forever after the nova-compute service restarts.
    Only if admin take actions such as reset its state.
    Like what we did for build instance (general spawn)
    operation, the instance might not be used so it need to be set to ERROR
    state after compute service restarts.

    Change-Id: I37748edb3ca0501b6f2fb41fbd75b7b8aa00d59c
    Closes-Bug: #1304184

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.