nova/nova/virt
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
..
disk Remove utils.execute() from virt.disk.api. 2018-12-12 09:38:20 +11:00
hyperv Merge "Share snapshot image membership with instance owner" 2019-03-12 18:43:12 +00:00
image libvirt: virtuozzo instance resize support 2016-06-28 22:13:49 +03:00
ironic pass endpoint interface to Ironic client 2019-03-12 19:08:38 +00:00
libvirt Libvirt: gracefully handle non-nic VFs 2019-04-03 21:08:37 +00:00
powervm Merge "Share snapshot image membership with instance owner" 2019-03-12 18:43:12 +00:00
vmwareapi Merge "Share snapshot image membership with instance owner" 2019-03-12 18:43:12 +00:00
xenapi Merge "ironic: check fresh data when sync_power_state doesn't line up" 2019-03-02 02:36:41 +00:00
zvm Merge "Share snapshot image membership with instance owner" 2019-03-12 18:43:12 +00:00
__init__.py Declare nova.virt namespace 2016-04-28 15:01:44 +00:00
arch.py Added ability to configure default architecture for ImagePropertiesFilter 2018-05-14 16:55:13 -04:00
block_device.py Add compute version 36 to support ``volume_type`` 2018-10-11 16:00:48 -04:00
configdrive.py Convert configdrive to use processutils. 2018-05-02 21:42:05 +10:00
driver.py Merge "Extend volume for libvirt network volumes (RBD)" 2019-03-07 00:52:10 +00:00
event.py Port binding based on events during live migration 2018-07-19 09:09:55 -04:00
fake.py Merge "Extend volume for libvirt network volumes (RBD)" 2019-03-07 00:52:10 +00:00
firewall.py Merge "Remove translation of log messages" 2017-06-20 21:16:49 +00:00
hardware.py Merge "Improve existing flavor and image metadata validation" 2019-03-05 08:57:41 +00:00
imagecache.py Rename ImageCacheManager._list_base_images to _scan_base_images 2016-05-26 14:45:42 +01:00
images.py Improve libvirt image and snapshot handling 2019-03-05 12:18:34 -06:00
interfaces.template
netutils.py libvirt: add vf_trusted field for network metadata 2018-05-30 15:11:59 -04:00
osinfo.py Remove translation of log messages 2017-06-13 11:20:28 +07:00
storage_users.py Remove translation of log messages 2017-06-13 11:20:28 +07:00
virtapi.py Remove unused provider firewall rules functionality in nova 2016-02-01 15:50:04 +01:00