nova/releasenotes/notes/bug-1878024-reserve-disk-for-image-cache-ef6688f869b12bcb.yaml
Balazs Gibizer 89fe504abf Reserve DISK_GB resource for the image cache
If the nova compute image cache is on the same disk as the instance
directory then the images in the cache will consume the same disk
resource as the nova instances which can lead to disk overallocation.

This patch adds a new config option
[workarounds]/reserve_disk_resource_for_image_cache . If it is set the
libvirt driver will reserve DISK_GB resources in placement for the
actual size of the image cache.

This is a low complexity solution with known limitations:
* Reservation is updated long after the image is downloaded
* This code allows the reservation to push the provider into negative
available resource if the reservation + allocations exceed the total
inventory.

Change-Id: If874f018ea996587e178219569c2903c2ee923cf
Closes-Bug: #1878024
2020-05-19 17:47:50 +02:00

11 lines
434 B
YAML

---
fixes:
- |
A new ``[workarounds]/reserve_disk_resource_for_image_cache`` config
option was added to fix the `bug 1878024`_ where the images in the compute
image cache overallocate the local disk. If this new config is set then the
libvirt driver will reserve DISK_GB resources in placement based on the
actual disk usage of the image cache.
.. _bug 1878024: https://bugs.launchpad.net/nova/+bug/1878024