Comment 30 for bug 1371677

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/174836
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=833357301bc80a27422f7bf081fae2d3da730a24
Submitter: Jenkins
Branch: master

commit 833357301bc80a27422f7bf081fae2d3da730a24
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
    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.

    Change-Id: Ifb20655c32896b640672917e3840add81b136780
    Partial-bug: #1445021
    Partial-Bug: #1371677