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.
Reviewed: https:/ /review. opendev. org/739131 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=efc27ff84c3 f38fbcbf75b0dc2 30963c58d093e4
Committed: https:/
Submitter: Zuul
Branch: master
commit efc27ff84c3f38f bcbf75b0dc23096 3c58d093e4
Author: Sean Mooney <email address hidden>
Date: Fri Jul 3 15:58:02 2020 +0000
Lookup nic feature by PCI address
In some environments the libvirt nodedev list can become out of sync available_ resource function resultingin an
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_
incorrect resource view in the database.
e.g. libvirt. libvirtError: Node device not found: _ea_60_ 77_1f_21_ 50'
no node device with matching name 'net_enp7s0f3v1
This change removes the dependency on the nodedev name when looking up
nic feature flags.
Change-Id: Ibf8dca4bd57b3b ddb39955b53cc03 564506f5754
Closes-Bug: #1883671