Could not find VM by name during delete in xenapi driver

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

Bug Description

If an instance failed to build and is left in ERROR, then a subsequent delete in the xenapi driver will result in this error and instance fault:

Could not find VM by name

This is because the destroy method was changed to raise an exception if the instance couldn't be found on the xen server. It should be changed back to be more tolerant of that kind of failure.

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

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

Reviewed: https://review.openstack.org/6658
Committed: http://github.com/openstack/nova/commit/07d54c27a32e66884495b00ec7c19d679cdb823f
Submitter: Jenkins
Branch: master

commit 07d54c27a32e66884495b00ec7c19d679cdb823f
Author: Johannes Erdfelt <email address hidden>
Date: Thu Apr 19 15:06:27 2012 +0000

    Be more tolerant of deleting failed builds

    Fixes bug 985705

    If an instance fails to build, the xen server may not have an instance.
    This can cause _get_opaque_vm_ref to unnecessarily raise an exception
    and add an instance fault that is misleading.

    Change-Id: I068d0af284a5671f429b2d8b13a25b629ede59bd

Changed in nova:
status: In Progress → Fix Committed
Devin Carlen (devcamcar)
Changed in nova:
milestone: none → folsom-1
Thierry Carrez (ttx)
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: folsom-1 → 2012.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.