So disk_available_least might be larger than actual free disk size.
As a result, instances might be scheduled beyond the actual free
disk size if stopped instances were on a host.
This patch fix it.
Stopped instance's disks will be calculated after merging this patch.
Change-Id: I8abf6edfa80e3920539e4f6d4906c573f9543b91
Closes-Bug: #1693679
(cherry-picked from commit 3342215034c7a7a938c497c39f6405763201a261)
(cherry-picked from commit 2a113159c00b51215f3506a9e9834fa7cc0d5ffb)
Reviewed: https:/ /review. openstack. org/474034 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=6ceb92524a9 fac6e7cffcc05b1 377e3cd99c1cb8
Committed: https:/
Submitter: Jenkins
Branch: stable/newton
commit 6ceb92524a9fac6 e7cffcc05b1377e 3cd99c1cb8
Author: Rikimaru Honjo <email address hidden>
Date: Fri May 26 14:04:44 2017 +0900
Calculate stopped instance's disk sizes for disk_available_ least
disk_ available_ least is a free disk size information of hypervisors.
This is calculated by the following fomula:
disk_ available_ least = <free disk size> - <Total gap between virtual
disk size and actual disk size for all instances>
But stopped instance's virtual disk sizes were not calculated /review. openstack. org/#/c/ 105127
after merging following patch in Juno cycle:
https:/
So disk_available_ least might be larger than actual free disk size.
As a result, instances might be scheduled beyond the actual free
disk size if stopped instances were on a host.
This patch fix it.
Stopped instance's disks will be calculated after merging this patch.
Change-Id: I8abf6edfa80e39 20539e4f6d4906c 573f9543b91 938c497c39f6405 763201a261) 15f3506a9e9834f a7cc0d5ffb)
Closes-Bug: #1693679
(cherry-picked from commit 3342215034c7a7a
(cherry-picked from commit 2a113159c00b512