nova/nova/virt
Rikimaru Honjo 2a113159c0 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
after merging following patch in Juno cycle:
https://review.openstack.org/#/c/105127

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 3342215034)
2017-06-14 10:50:01 +09:00
..
disk Fix a typo in documents 2017-01-06 22:10:27 +08:00
hyperv [Trivial] Hyper-V: accept Glance vhdx images 2017-06-08 14:30:53 +00:00
image libvirt: virtuozzo instance resize support 2016-06-28 22:13:49 +03:00
ironic Merge "Removes unnecessary utf-8 encoding" 2017-02-03 06:00:47 +00:00
libvirt Calculate stopped instance's disk sizes for disk_available_least 2017-06-14 10:50:01 +09:00
vmwareapi [2/3]Replace six.iteritems() with .items() 2017-01-09 09:11:00 +00:00
xenapi Make xenapi driver compatible with assert_can_migrate 2017-05-31 03:32:07 +00:00
__init__.py Declare nova.virt namespace 2016-04-28 15:01:44 +00:00
block_device.py [2/3]Replace six.iteritems() with .items() 2017-01-09 09:11:00 +00:00
configdrive.py Fixes python 3 unit tests 2016-09-23 20:10:24 +00:00
diagnostics.py [2/3]Replace six.iteritems() with .items() 2017-01-09 09:11:00 +00:00
driver.py Support Ironic interface attach/detach in nova virt 2017-01-19 22:13:16 -05:00
event.py Add 'suspended' lifecycle event 2015-04-03 03:59:20 +03:00
fake.py Fixes to get all functional tests working on py35 2017-01-14 13:06:56 -05:00
firewall.py Fix spelling mistake 2016-06-28 08:41:09 +02:00
hardware.py objects: add new field cpuset_reserved in NUMACell 2017-01-24 19:37:55 +00:00
imagecache.py Rename ImageCacheManager._list_base_images to _scan_base_images 2016-05-26 14:45:42 +01:00
images.py Bump prlimit cpu time for qemu from 2 to 8 2016-12-08 10:41:31 -05:00
interfaces.template Fixes interfaces template identification issue 2014-12-07 17:52:34 +02:00
netutils.py libvirt: expose virtual interfaces with vlans to metadata 2017-01-26 17:06:56 -05:00
osinfo.py Do not attempt to load osinfo if we do not have os_distro 2017-03-30 05:11:40 +00:00
storage_users.py Use oslo.log 2015-02-22 07:56:40 -05:00
virtapi.py Remove unused provider firewall rules functionality in nova 2016-02-01 15:50:04 +01:00
volumeutils.py nova.utils._get_root_helper() should be public 2015-08-19 04:00:50 +00:00