nova/nova/virt/libvirt
Sean Mooney 97a806b790 Libvirt: gracefully handle non-nic VFs
As part of adding support for bandwidth based scheduling
I038867c4094d79ae4a20615ab9c9f9e38fcc2e0a introduced
automatic discovery of parent netdev names for PCIe
virtual functions.

Nova's PCI passthrough support was originally developed for
Intel QAT devices and other generic PCI devices. Later support
for Neutron based SR-IOV NIC was added.

The PCI-SIG SR-IOV specification while most often used by NIC
vendors to virtualise a NIC in hardware was designed for devices
of any PCIe class. Support for Intel's QAT device and other
accelerators like AMD's SRIOV based vGPU have therefore been
regressed by the introduction of the new parent_ifname lookup code.

This change simply catches the exception that would be raised
when pci_utils.get_ifname_by_pci_address is called on generic
VFs allowing a graceful fallback to the previous behaviour.

Change-Id: Ib3811f828246311d90b0e3ba71c162c03fb8fe5a
Closes-Bug: #1821938
(cherry picked from commit e7ae6c65cd)
2019-04-03 21:08:37 +00:00
..
storage Fix string interpolations in logging calls 2019-01-29 15:06:39 +09:00
volume Merge "Extend volume for libvirt network volumes (RBD)" 2019-03-07 00:52:10 +00:00
__init__.py Remove vi modelines 2014-02-03 14:19:44 +00:00
blockinfo.py Add configuration of maximum disk devices to attach 2019-01-30 15:47:10 +00:00
compat.py Remove translation of log messages 2017-06-13 11:20:28 +07:00
config.py Parse <emulator> elements from virConnectGetCapabilities() 2019-03-05 10:07:21 +00:00
designer.py add mtu to libvirt xml for ethernet and bridge types 2018-06-06 09:39:40 -04:00
driver.py Libvirt: gracefully handle non-nic VFs 2019-04-03 21:08:37 +00:00
firewall.py Add missing ws seperator between words 2018-11-26 23:42:18 +00:00
guest.py Add missing libvirt exception during device detach 2019-03-07 00:04:48 +00:00
host.py Transform libvirt.error notification 2018-09-18 07:06:09 +00:00
imagebackend.py Allow utime call to fail on qcow2 image base file 2019-03-12 10:40:45 -04:00
imagecache.py Move the dac_admin privsep code to a new location. 2017-09-18 23:14:11 +10:00
instancejobtracker.py Remove translation of log messages 2017-06-13 11:20:28 +07:00
migration.py libvirt: remove live_migration_progress_timeout config 2018-12-14 14:50:38 -05:00
utils.py Move libvirt calculation of machine type to utils.py 2019-03-19 22:28:33 +00:00
vif.py Move set_vf_interface_vlan to be with its only caller. 2019-03-05 22:18:08 +00:00