diff options
author | Alexandre Arents <alexandre.arents@corp.ovh.com> | 2020-04-10 12:51:01 +0000 |
---|---|---|
committer | Alexandre Arents <alexandre.arents@corp.ovh.com> | 2020-06-18 12:29:27 +0000 |
commit | 61084702f447d8d48f0aef161a9517d9504cd578 (patch) | |
tree | 9f693d5cb3dc39c0da57f87ce9bdabe1462e5694 /playbooks | |
parent | 6ed556f4adfd8a98fae2e91204f1ce0484f5dd9d (diff) | |
download | nova-61084702f447d8d48f0aef161a9517d9504cd578.tar.gz |
libvirt: ensure disk_over_commit is not negative
During update_available_resource periodic task, nova-compute reports
total amount of disk_over_committed in order to determine current hypervisor's
available_disk_least.
In case instance disk file have allocated size greater than virtual
disk size, resulting disk_over_committed is negative.
Because a negative value will inaccurately increase available_disk_least,
the change proposes to set it to 0 instead.
Closes-Bug: #1872082
Change-Id: I34b783542504524d2e4d98d3037c9086766e04b0
Diffstat (limited to 'playbooks')
0 files changed, 0 insertions, 0 deletions