nova/nova/virt/libvirt
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
..
storage Merge "Leave brackets on Ceph IP addresses for libguestfs" 2019-10-14 20:56:14 +00:00
volume workarounds: Add option to locally attach RBD volumes on compute hosts 2020-04-06 21:59:08 +01:00
__init__.py
blockinfo.py fup: Add missing docstrings from get_rescue_device|bus diskinfo funcs 2020-04-09 10:39:25 +01:00
config.py libvirt: Use domain capabilities to get supported device models 2020-03-24 17:28:09 +00:00
designer.py Switch to uses_virtio to enable iommu driver for AMD SEV 2019-12-10 11:01:08 +00:00
driver.py Reserve DISK_GB resource for the image cache 2020-05-19 17:47:50 +02:00
guest.py libvirt: Always provide the size in bytes when calling virDomainBlockResize 2020-04-01 15:28:32 +01:00
host.py libvirt: check job status for VIR_DOMAIN_EVENT_SUSPENDED_MIGRATED event 2019-11-05 16:05:02 +00:00
imagebackend.py Remove 'nova.image.api' module 2020-02-18 11:45:39 +00:00
imagecache.py Reserve DISK_GB resource for the image cache 2020-05-19 17:47:50 +02:00
instancejobtracker.py Remove translation of log messages 2017-06-13 11:20:28 +07:00
migration.py Support live migration with vpmem 2020-04-07 13:13:13 +00:00
utils.py Add default cpu model for AArch64 2020-03-26 11:12:44 +01:00
vif.py Merge "vif: Remove dead code" 2020-04-11 16:04:28 +00:00