Comment 8 for bug 1883671

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.opendev.org/739131
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=efc27ff84c3f38fbcbf75b0dc230963c58d093e4
Submitter: Zuul
Branch: master

commit efc27ff84c3f38fbcbf75b0dc230963c58d093e4
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
    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