xenapi unrescue sometimes leaves rescue VM undeleted

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

Bug Description

There's a race condition between the shutdown and the destroy which results in the rescue VM sometimes not being destroyed.

This is caused by the use of an asynchronous shutdown but without waiting for it to finish.

Since the rescue VM is not destroyed any subsequent attempts to rescue an instance will fail.

Also, the destroy is done asynchronously without any wait so any failures will be silently dropped.

Changed in nova:
assignee: nobody → Johannes Erdfelt (johannes.erdfelt)
status: New → In Progress
importance: Undecided → High
description: updated
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/5094

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/5094
Committed: http://github.com/openstack/nova/commit/5555446d877223341c2723e4be169d996ab2ce3b
Submitter: Jenkins
Branch: master

commit 5555446d877223341c2723e4be169d996ab2ce3b
Author: Johannes Erdfelt <email address hidden>
Date: Thu Mar 8 19:13:26 2012 +0000

    Wait for rescue VM shutdown to complete before destroying it

    Fixes bug 950168

    Also, wait for the VM and VDI destroys to complete so any errors can
    get logged

    Change-Id: I2c2237ed6f95828198824db8628d267ac5b26b3a

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