xenapi: failed snapshots never deleted

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

Bug Description

When uploading a snapshot, its possible that nova-compute process is killed.

When this happens, currently, that snapshot is never deleted, and the VDI chain can grown a lot.

To fix this, we should remove any snapshots from the chain, before taking the next snapshot.

Tags: xenserver
tags: added: xenserver
Changed in nova:
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → John Garbutt (johngarbutt)
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/100880

Changed in nova:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by John Garbutt (<email address hidden>) on branch: master
Review: https://review.openstack.org/100880
Reason: Agreed direction now, getting rid of this one.

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

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

commit 64520ceeacdb42b66d3b15474124d273d9e8ccf2
Author: John Garbutt <email address hidden>
Date: Wed Jun 18 13:19:57 2014 +0100

    XenAPI: Remove interrupted snapshots

    Currently the VDI chain can grow very long when a snapshots happen at
    the same time as nova-compute being terminated.

    While we now clean up the instance state, the VDI chain is left in a bad
    state, it has an extra snapshot that is no longer required.

    This change improves that by looking at when we detect a failed
    snapshot, we go back and tidy up the VDI chain.

    Partial-Bug: #1331440

    Change-Id: I9bae82048910d8c45bc2a4093064c1ac68f15750

Sean Dague (sdague)
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.