nova/nova
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
..
accelerator Delete ARQs for an instance when the instance is deleted. 2020-03-24 22:44:18 -07:00
api Merge "Pass the actual target in quota class policy" 2020-04-23 01:28:44 +00:00
cmd Merge "Support for --force flag for nova-manage placement heal_allocations command" 2020-05-11 18:15:34 +00:00
compute Merge "Update compute rpc version alias for ussuri" 2020-04-23 09:59:10 +00:00
conductor Support live migration with vpmem 2020-04-07 13:13:13 +00:00
conf Reserve DISK_GB resource for the image cache 2020-05-19 17:47:50 +02:00
console Merge "Allow TLS ciphers/protocols to be configurable for console proxies" 2020-02-24 17:27:02 +00:00
db Add placeholder migrations for Ussuri backports 2020-04-24 09:26:42 +09:00
hacking Switch to hacking 2.x 2020-01-17 11:30:40 +00:00
image Remove future imports 2020-03-24 15:05:36 +00:00
keymgr
locale Imported Translations from Zanata 2020-04-26 07:51:21 +00:00
network Merge "nova-net: Remove unused parameters" 2020-03-26 21:46:16 +00:00
notifications Remove 'nova.image.api' module 2020-02-18 11:45:39 +00:00
objects Merge "objects: Add migrate-on-load behavior for legacy NUMA objects" 2020-05-08 15:59:49 +00:00
pci support pci numa affinity policies in flavor and image 2019-12-11 14:39:12 +00:00
policies Merge "Add new default roles in quota class policies" 2020-04-21 08:39:41 +00:00
privsep images: Make JSON the default output format of calls to qemu-img info 2020-04-16 16:38:24 +01:00
scheduler Enable and use COMPUTE_ACCELERATORS trait. 2020-03-27 22:42:37 -07:00
servicegroup Handle ServiceNotFound in DbDriver._report_state 2019-12-04 09:50:17 -05:00
tests Reserve DISK_GB resource for the image cache 2020-05-19 17:47:50 +02:00
virt Reserve DISK_GB resource for the image cache 2020-05-19 17:47:50 +02:00
volume Merge "Add retry to cinder API calls related to volume detach" 2020-04-20 17:36:33 +00:00
__init__.py
availability_zones.py trivial: Fetch 'Service' objects once when building AZs 2020-02-05 21:26:23 +00:00
baserpc.py
block_device.py
cache_utils.py trivial: Remove unused 'cache_utils' APIs 2020-02-05 17:20:28 +00:00
config.py remove support of oslo.messaging 9.8.0 warning message 2020-05-07 19:54:23 +01:00
context.py Reset the cell cache for database access in Service 2020-04-08 17:48:18 +00:00
crypto.py Remove future imports 2020-03-24 15:05:36 +00:00
debugger.py
exception.py Merge "libvirt: Add support for stable device rescue" 2020-04-10 14:56:13 +00:00
exception_wrapper.py
filters.py
hooks.py
i18n.py
loadables.py trivial: Remove dead code 2019-12-12 10:55:02 +00:00
manager.py
middleware.py
monkey_patch.py Monkey patch original current_thread _active 2020-02-12 16:34:56 -05:00
policy.py Use oslo policy flag to disable default change warning instead of all 2020-04-15 02:23:32 +00:00
profiler.py
quota.py nova-net: Remove remaining nova-network quotas 2019-12-02 17:39:23 +00:00
rpc.py
safe_utils.py
service.py Reset the cell cache for database access in Service 2020-04-08 17:48:18 +00:00
service_auth.py
test.py func tests: move _run_periodics() into base class 2020-03-24 10:10:53 -04:00
utils.py compute: Extract _get_bdm_image_metadata into nova.utils 2020-04-09 08:39:36 +01:00
version.py
weights.py
wsgi.py Remove future imports 2020-03-24 15:05:36 +00:00