← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1881727] Re: Nova retains the 'delta' file for the entire snapshot upload time

 

Reviewed:  https://review.opendev.org/734421
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=d2af7ca7a5c862f53f18c00ac76fc85336fa79e6
Submitter: Zuul
Branch:    master

commit d2af7ca7a5c862f53f18c00ac76fc85336fa79e6
Author: esubramanian <esubramanian@xxxxxxxxxxx>
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: I15e9975fa516d81e7d34206e5a4069db5431caa9
    Closes-Bug: #1881727


** Changed in: nova
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1881727

Title:
  Nova retains the 'delta' file for the entire snapshot upload time

Status in OpenStack Compute (nova):
  Fix Released

Bug description:
  When the live snapshot happens it setups a 100% copy of the original
  file using libvirt/qemu to sync the disk to it using "Shallow" mode
  (this is the .delta file). From that .delta file it extracts the image
  and uploads it. The delta file remains till the upload completes which
  results in 3x space required for each snapshots.

  To fix this issue, the .delta file can be removed once the image is
  extracted from the .delta file
  https://github.com/openstack/nova/blob/stable/pike/nova/virt/libvirt/driver.py#L2007-L2008

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1881727/+subscriptions


References