Comment 4 for bug 1771728

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

Reviewed: https://review.openstack.org/560459
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=7e48b227d0622b268f74d1a559aca4cd3784f7cf
Submitter: Zuul
Branch: master

commit 7e48b227d0622b268f74d1a559aca4cd3784f7cf
Author: Eric Fried <email address hidden>
Date: Wed Apr 11 09:47:49 2018 -0500

    libvirt: Don't report DISK_GB if sharing

    For libvirt, if the operator wishes to use shared storage, they must
    manually configure the sharing resource provider in placement and
    associate it via aggregate with the compute node. However, the libvirt
    driver was still reporting the (same) DISK_GB inventory in the compute
    node provider.

    With this patch, we check the provider tree to see if a sharing provider
    of DISK_GB is present. If so, we don't report that inventory - because
    it's already accounted for by the sharing provider.

    Co-Authored-By: Bhagyashri Shewale <email address hidden>
    Closes-Bug: #1771728
    Change-Id: Iea283322124cb35fc0bc6d25f35548621e8c8c2f