Previously, device role tagging metadata would only be built for
LibvirtConfigGuestInterface and LibvirtConfigGuestDisk. This didn't
account for passed through PFs, which can also be tagged and appear as
<hostdev> in the libvirt XML. This caused device role tagging to not
work for PFs. This patch adds support for <hostdev> devices to
_build_device_metadata.
Reviewed: https:/ /review. openstack. org/533805 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=abd01a757b8 a83d714a6ab8b50 85e7cc1b4a2c5c
Committed: https:/
Submitter: Zuul
Branch: master
commit abd01a757b8a83d 714a6ab8b5085e7 cc1b4a2c5c
Author: Artom Lifshitz <email address hidden>
Date: Mon Jan 15 15:52:11 2018 -0500
Consider hostdev devices when building metadata
Previously, device role tagging metadata would only be built for igGuestInterfac e and LibvirtConfigGu estDisk. This didn't device_ metadata.
LibvirtConf
account for passed through PFs, which can also be tagged and appear as
<hostdev> in the libvirt XML. This caused device role tagging to not
work for PFs. This patch adds support for <hostdev> devices to
_build_
Change-Id: I24e5ff1b446f2a c41d589c026ce8e e8adad4bcbc
Closes-bug: 1743458
Closes-bug: 1694183