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): Queens -> Pike backport is clean, conflicts in
nova/tests/unit/virt/libvirt/test_driver.py in Queens due to trusted
VFs not being present.
Change-Id: I24e5ff1b446f2ac41d589c026ce8ee8adad4bcbc
Closes-bug: 1743458
Closes-bug: 1694183
(cherry picked from commit abd01a757b8a83d714a6ab8b5085e7cc1b4a2c5c)
(cherry picked from commit e57f66a26daf858d1348c8406108a33a323b7b2e)
Reviewed: https:/ /review. openstack. org/587249 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=5ddcda02a85 00ef88ee22b2cab f6d23527ad8de8
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit 5ddcda02a8500ef 88ee22b2cabf6d2 3527ad8de8
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): Queens -> Pike backport is clean, conflicts in tests/unit/ virt/libvirt/ test_driver. py in Queens due to trusted
nova/
VFs not being present.
Change-Id: I24e5ff1b446f2a c41d589c026ce8e e8adad4bcbc 714a6ab8b5085e7 cc1b4a2c5c) d1348c8406108a3 3a323b7b2e)
Closes-bug: 1743458
Closes-bug: 1694183
(cherry picked from commit abd01a757b8a83d
(cherry picked from commit e57f66a26daf858