nova/nova/tests/unit/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
fake_imagebackend.py Merge "Functional tests for NUMA live migration" 2020-04-28 20:46:37 +00:00
fake_libvirt_data.py Also enable iommu for virtio controllers and video in libvirt 2019-12-10 11:01:08 +00:00
fake_os_brick_connector.py Switch to using os-brick 2015-07-27 10:47:22 -07:00
fakelibvirt.py Merge "Functional tests for NUMA live migration" 2020-04-28 20:46:37 +00:00
test_blockinfo.py fup: Combine SUPPORTED_DEVICE_BUS and SUPPORTED_STORAGE_BUSES 2020-04-09 09:05:13 +01:00
test_config.py libvirt: Use domain capabilities to get supported device models 2020-03-24 17:28:09 +00:00
test_designer.py Create a controller for qga when SEV is used 2019-12-10 11:01:08 +00:00
test_driver.py Reserve DISK_GB resource for the image cache 2020-05-19 17:47:50 +02:00
test_fakelibvirt.py libvirt: Get the CPU model, not 'arch' from get_capabilities() 2019-09-20 16:04:46 +00:00
test_guest.py libvirt: Always provide the size in bytes when calling virDomainBlockResize 2020-04-01 15:28:32 +01:00
test_host.py libvirt: check job status for VIR_DOMAIN_EVENT_SUSPENDED_MIGRATED event 2019-11-05 16:05:02 +00:00
test_imagebackend.py Make RBD imagebackend flatten method idempotent 2020-01-28 14:30:40 +01:00
test_imagecache.py Reserve DISK_GB resource for the image cache 2020-05-19 17:47:50 +02:00
test_migration.py Support live migration with vpmem 2020-04-07 13:13:13 +00:00
test_utils.py images: Make JSON the default output format of calls to qemu-img info 2020-04-16 16:38:24 +01:00
test_vif.py nova-net: Copy shared utils from nova-net module 2020-01-08 13:54:12 +00:00