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.
Conflicts:
nova/conf/workarounds.py due to
7c7a25aa1eda9b1815f12cce25dda0a840d562f1 is not in stable/train
nova/virt/libvirt/driver.py due to
I52fbbcac9dc386f24ee81b3321dd0d8355e01976 is not in stable/train
Changes in imagechache.py, workarounds.py and test_imagecache.py are
due to I3c49825ac0d70152b6c8ee4c8ca01546265f4b80 not in stable/train
Change-Id: If874f018ea996587e178219569c2903c2ee923cf
Closes-Bug: #1878024
(cherry picked from commit 89fe504abfbd41a9c37f9b544c0ce98b23b45799)
(cherry picked from commit 968981b5853724a8225cfc16b04ea83b4f485a9a)
Reviewed: https:/ /review. opendev. org/730324 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=90c70f04d77 7e444eb8e2f0bcc b8aa616e69dc66
Committed: https:/
Submitter: Zuul
Branch: stable/train
commit 90c70f04d777e44 4eb8e2f0bccb8aa 616e69dc66
Author: Balazs Gibizer <email address hidden>
Date: Fri May 15 15:00:20 2020 +0200
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 s]/reserve_ disk_resource_ for_image_ cache . If it is set the
[workaround
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.
Conflicts: conf/workaround s.py due to eda9b1815f12cce 25dda0a840d562f 1 is not in stable/train
nova/
7c7a25aa1
nova/ virt/libvirt/ driver. py due to 9dc386f24ee81b3 321dd0d8355e019 76 is not in stable/train
I52fbbcac
Changes in imagechache.py, workarounds.py and test_imagecache.py are 52b6c8ee4c8ca01 546265f4b80 not in stable/train
due to I3c49825ac0d701
Change-Id: If874f018ea9965 87e178219569c29 03c2ee923cf 9c37f9b544c0ce9 8b23b45799) 8225cfc16b04ea8 3b4f485a9a)
Closes-Bug: #1878024
(cherry picked from commit 89fe504abfbd41a
(cherry picked from commit 968981b5853724a