nova/nova/tests/functional/libvirt
Eric Fried 7e48b227d0 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 <bhagyashri.shewale@nttdata.com>
Closes-Bug: #1771728
Change-Id: Iea283322124cb35fc0bc6d25f35548621e8c8c2f
2018-06-12 18:19:38 +05:30
..
__init__.py tests: introduce a NUMAServersTest class 2015-04-16 11:43:53 -04:00
test_numa_servers.py libvirt: Bump MIN_{LIBVIRT,QEMU}_VERSION for "Rocky" 2018-04-23 17:02:27 +02:00
test_pci_sriov_servers.py libvirt: Bump MIN_{LIBVIRT,QEMU}_VERSION for "Rocky" 2018-04-23 17:02:27 +02:00
test_rt_servers.py libvirt: Bump MIN_{LIBVIRT,QEMU}_VERSION for "Rocky" 2018-04-23 17:02:27 +02:00
test_shared_resource_provider.py libvirt: Don't report DISK_GB if sharing 2018-06-12 18:19:38 +05:30