Before taking a new snapshot, we now inspect the VDI chain to check for
old snapshots.
Those old snapshots can be left behind from resize, migrates, and
snapshots that get interrupted if you kill the nova-compute process.
If you leave these snapshots behind, the hypervisor disk will get too
full, as VDI chains grow much bigger than you would expect. In addition
snapshots start to grow in size, causing issues copying the snapshot
into storage.
Reviewed: https:/ /review. openstack. org/122208 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=3f4a0e40af7 705b037db1a2ccc 63de94547f6dd7
Committed: https:/
Submitter: Jenkins
Branch: master
commit 3f4a0e40af7705b 037db1a2ccc63de 94547f6dd7
Author: John Garbutt <email address hidden>
Date: Wed Sep 17 18:13:33 2014 +0100
XenAPI: clean up old snapshots before create new
Before taking a new snapshot, we now inspect the VDI chain to check for
old snapshots.
Those old snapshots can be left behind from resize, migrates, and
snapshots that get interrupted if you kill the nova-compute process.
If you leave these snapshots behind, the hypervisor disk will get too
full, as VDI chains grow much bigger than you would expect. In addition
snapshots start to grow in size, causing issues copying the snapshot
into storage.
Closes-Bug: #1371072
Change-Id: Ice3741213438c7 b4a7fda1e3e0a6d d7faca0fd04