Repository navigation
fix: reserve DISK_GB for libvirt image cache in nova.conf - #241
Merged
hemanthnakkina merged 1 commit intoNov 25, 2026
Merged
Conversation
Nova omits the shared libvirt image cache (_base) from reported DISK_GB inventory, causing Placement to overcommit disk space. Under high utilization, the cache can grow to hundreds of GBs, exhausting the host disk, failing new builds, and interrupting active instances. Enable workarounds.reserve_disk_resource_for_image_cache so nova-compute tracks cache size against reserved disk. Closes-bug: #2173743 (cherry picked from commit 9185ca4)
gboutry
approved these changes
Nov 24, 2026
hemanthnakkina
approved these changes
Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Nova does not count the libvirt image cache (
/var/lib/nova/instances/_base) in the DISK_GB inventory it reports to Placement. The cache shares a filesystem with instance disks, so the scheduler sees more free local disk than actually exists. On busy hosts the cache can grow to hundreds of GB that Placement does not account for; hosts running at high utilization then fill up after scheduling has already succeeded, causing instance build failures and interrupting running instances when guest disk writes fail.As mentioned in upstream documentation [1], set
workarounds.reserve_disk_resource_for_image_cache = Trueso nova-compute adds the actual size of the image cache to the reserved DISK_GB it reports to Placement. The option has no effect when_baseis on a separate filesystem or when instances use Ceph RBD, so it is safe as a default.[1] - https://docs.openstack.org/nova/2024.1/admin/image-caching.html#image-caching-resource-accounting
Closes-bug: #2173743
(cherry picked from commit 9185ca4)
QA steps
openstack resource provider inventory show <compute-uuid> DISK_GB.update_resources_intervalperiodic to run, then re-check the inventory:reservedDISK_GB should now include the image's size in_basein addition to the instance's disk