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: I15e9975fa516d81e7d34206e5a4069db5431caa9
Closes-Bug: #1881727
(cherry picked from commit d2af7ca7a5c862f53f18c00ac76fc85336fa79e6)
Reviewed: https:/ /review. opendev. org/748034 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=e51555b3f03 24b8b72a2b3280a 1c30e104b6d8ea
Committed: https:/
Submitter: Zuul
Branch: stable/ussuri
commit e51555b3f0324b8 b72a2b3280a1c30 e104b6d8ea
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 53f18c00ac76fc8 5336fa79e6)
Closes-Bug: #1881727
(cherry picked from commit d2af7ca7a5c862f