nova/nova/tests/unit/virt/libvirt
Francois Palin ab7c968b6f Include all network devices in nova diagnostics
get_instance_diagnostics expected all interfaces
to have a <target> element with a "dev" attribute in
the instance XML. This is not the case for VFIO
interfaces (<interface type="hostdev">).
This caused an IndexError when looping over
the interfaces.

This patch fixes this issue by retrieving interfaces
data directly from the guest XML and adding nics
appropriately to the diagnostics object.

Change-Id: I8ef852d449e9e637d45e4ac92ffc5d1abd8d31c5
Closes-Bug: #1821798
2019-04-15 11:10:08 -04:00
..
storage Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
volume Merge "Added mount fstype based validation of Quobyte mounts" 2019-04-05 17:41:13 +00:00
__init__.py
fake_imagebackend.py Pass disk_info dict to libvirt_info 2018-11-02 13:54:13 +00:00
fake_libvirt_utils.py Move libvirt calculation of machine type to utils.py 2019-03-19 22:28:33 +00:00
fake_os_brick_connector.py Switch to using os-brick 2015-07-27 10:47:22 -07:00
fakelibvirt.py Include all network devices in nova diagnostics 2019-04-15 11:10:08 -04:00
test_blockinfo.py libvirt: fix disk_bus handling for root disk 2018-09-21 17:46:13 +01:00
test_compat.py Workaround for race condition in libvirt 2015-03-14 20:17:41 -03:00
test_config.py Use assertXmlEqual() helper for all XML comparison tests 2019-03-08 11:40:41 +00:00
test_designer.py add mtu to libvirt xml for ethernet and bridge types 2018-06-06 09:39:40 -04:00
test_driver.py Include all network devices in nova diagnostics 2019-04-15 11:10:08 -04:00
test_fakelibvirt.py Use assertXmlEqual() helper for all XML comparison tests 2019-03-08 11:40:41 +00:00
test_firewall.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_guest.py Add missing libvirt exception during device detach 2019-03-07 00:04:48 +00:00
test_host.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_imagebackend.py Merge "Allow utime call to fail on qcow2 image base file" 2019-03-13 00:25:14 +00:00
test_imagecache.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_migration.py Use assertXmlEqual() helper for all XML comparison tests 2019-03-08 11:40:41 +00:00
test_utils.py Move libvirt calculation of machine type to utils.py 2019-03-19 22:28:33 +00:00
test_vif.py Use assertXmlEqual() helper for all XML comparison tests 2019-03-08 11:40:41 +00:00