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.
NOTE(artom): Conflicts in nova/tests/unit/virt/libvirt/test_driver.py
due to trusted VFs not being present in Queens.
Reviewed: https:/ /review. openstack. org/581399 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=e57f66a26da f858d1348c84061 08a33a323b7b2e
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit e57f66a26daf858 d1348c8406108a3 3a323b7b2e
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_
NOTE(artom): Conflicts in nova/tests/ unit/virt/ libvirt/ test_driver. py
due to trusted VFs not being present in Queens.
Change-Id: I24e5ff1b446f2a c41d589c026ce8e e8adad4bcbc 714a6ab8b5085e7 cc1b4a2c5c)
Closes-bug: 1743458
Closes-bug: 1694183
(cherry picked from commit abd01a757b8a83d