When creating a live snapshot of an instance, nova creates a
copy of the instance disk using a QEMU shallow rebase. This
copy - the delta file - is then extracted and uploaded. The
delta file will eventually be deleted, when the temporary
working directory nova is using for the live snapshot is
discarded, however, until this happens, we will use 3x the
size of the image of host disk space: the original disk,
the delta file, and the extracted file. This can be problematic
when concurrent snapshots of multiple instances are requested
at once.
The solution is simple: delete the delta file after it has
been extracted and is no longer necessary.
Reviewed: https:/ /review. opendev. org/734421 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=d2af7ca7a5c 862f53f18c00ac7 6fc85336fa79e6
Committed: https:/
Submitter: Zuul
Branch: master
commit d2af7ca7a5c862f 53f18c00ac76fc8 5336fa79e6
Author: esubramanian <email address hidden>
Date: Mon Jun 8 23:08:30 2020 -0700
Removes the delta file once image is extracted
When creating a live snapshot of an instance, nova creates a
copy of the instance disk using a QEMU shallow rebase. This
copy - the delta file - is then extracted and uploaded. The
delta file will eventually be deleted, when the temporary
working directory nova is using for the live snapshot is
discarded, however, until this happens, we will use 3x the
size of the image of host disk space: the original disk,
the delta file, and the extracted file. This can be problematic
when concurrent snapshots of multiple instances are requested
at once.
The solution is simple: delete the delta file after it has
been extracted and is no longer necessary.
Change-Id: I15e9975fa516d8 1e7d34206e5a406 9db5431caa9
Closes-Bug: #1881727