nova/nova/tests/unit/pci
Sean Mooney efc27ff84c Lookup nic feature by PCI address
In some environments the libvirt nodedev list can become out of sync
with the current MAC address assigned to a netdev, As a result the
nodedev lookup can fail. This results in an uncaught libvirt exception
which breaks the update_available_resource function resultingin an
incorrect resource view in the database.

e.g. libvirt.libvirtError: Node device not found:
no node device with matching name 'net_enp7s0f3v1_ea_60_77_1f_21_50'

This change removes the dependency on the nodedev name when looking up
nic feature flags.

Change-Id: Ibf8dca4bd57b3bddb39955b53cc03564506f5754
Closes-Bug: #1883671
2020-08-04 22:25:02 +00:00
..
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
fakes.py Fix mock.patch usage in unit tests 2018-09-13 02:54:07 +00:00
test_devspec.py Merge "pci: Validate behavior of empty devname" 2017-09-21 13:57:54 +00:00
test_manager.py Separate methods to free claimed and allocated devs 2019-03-07 10:21:41 +02:00
test_request.py support pci numa affinity policies in flavor and image 2019-12-11 14:39:12 +00:00
test_stats.py objects: Introduce 'pcpuset' field for InstanceNUMACell 2020-07-14 00:38:34 +08:00
test_utils.py Lookup nic feature by PCI address 2020-08-04 22:25:02 +00:00
test_whitelist.py Enhance PCI passthrough whitelist to support regex 2016-12-11 00:53:14 +02:00