Swap not being cleaned up on exception

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

Bug Description

If an exception is raised during spawn instance (in XenServer), we can end up leaving the swap as an orphaned VDI.

There are two approaches to fixing this:

1. A long, involved approach of refactoring much of _create_vm into separate, atomic steps that can support fine-grained undoability.

2. Making _create_vm's undo func call _destroy instead of _destroy_vm.

1) is probably too risky for this late in the release, so I'm opting for 2) with an eye to tackling a more complete rework down the road.

Changed in nova:
assignee: nobody → Rick Harris (rconradharris)
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/4836

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

Reviewed: https://review.openstack.org/4836
Committed: http://github.com/openstack/nova/commit/f0a172ea8bcd5b241115210fcdbe33cf268ef051
Submitter: Jenkins
Branch: master

commit f0a172ea8bcd5b241115210fcdbe33cf268ef051
Author: Rick Harris <email address hidden>
Date: Fri Mar 2 22:26:20 2012 +0000

    Cleanup swap in _create_vm undo

    Fixes bug 945198

    Change-Id: I697fab1bbfdd45fc22d5490524e138c4f377bc58

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.