libvirt: make _get_instance_disk_info conservative
We want to make sure we never try to get the size of an attached volume
when doing _get_instance_disk_info (as this can cause issues when
gathering available resources).
libvirt's get_available_resources will call upon it to determine the
available disk size on the compute node, but do so without providing
information about block devices. This makes _get_instance_disk_info make
incorrect guesses as to which device is a volume
This patch makes the _get_instance_disk_info be more conservative about
it's guesses when it can not reasonably determine if a device is a
volume or not.
Reviewed: https:/ /review. openstack. org/174836 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=833357301bc 80a27422f7bf081 fae2d3da730a24
Committed: https:/
Submitter: Jenkins
Branch: master
commit 833357301bc80a2 7422f7bf081fae2 d3da730a24
Author: Nikola Dipanov <email address hidden>
Date: Fri Apr 17 12:49:13 2015 +0100
libvirt: make _get_instance_ disk_info conservative
We want to make sure we never try to get the size of an attached volume disk_info (as this can cause issues when
when doing _get_instance_
gathering available resources).
libvirt's get_available_ resources will call upon it to determine the disk_info make
available disk size on the compute node, but do so without providing
information about block devices. This makes _get_instance_
incorrect guesses as to which device is a volume
This patch makes the _get_instance_ disk_info be more conservative about
it's guesses when it can not reasonably determine if a device is a
volume or not.
Change-Id: Ifb20655c32896b 640672917e3840a dd81b136780
Partial-bug: #1445021
Partial-Bug: #1371677