XEN: Volume VDIs not cleaned up if boot fails before VBD creation

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

Bug Description

During the spawn process the rollback portion of the create_vm_record step is supposed to detach volumes, destroy the VBDs, and then purge the SR. But this process relies on looking up VBDs attached to the instance. If the spawn process fails while creating/resizing a VDI then there's no VBD to lookup and the SR and VDI will be left on the hypervisor as orphans.

Tags: xenserver
Changed in nova:
assignee: nobody → Andrew Laski (alaski)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

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

commit be58dd8432a8d12484f5553d79a02e720e2c0435
Author: Andrew Laski <email address hidden>
Date: Fri Jun 13 17:15:00 2014 -0400

    Xen: Cleanup orphan volume connections on boot failure

    If the boot process fails after the VDI creation but before a VBD is
    created then the current cleanup methods will not work as they all rely
    on lookups via VBD.

    Change-Id: Id0d93ee60f75bf319baf7859b220ca325175128a
    Closes-bug: #1329941

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