In I16e7df6932bb7dff243706ee49338ba6b3782085 we missed that
LibvirtConfigGuestHostdevPCI is not a child class of
LibvirtConfigGuestInterface and therefore we missed parsing out the
alias field from the domain xml for hostdevs. The new libvirt driver
device detach logic[1] uses the alias as the identifier towards libvirt
so now hostdevs cannot be detached. This patch parses out the alias
field to fix the issue.
Reviewed: https:/ /review. opendev. org/c/openstack /nova/+ /807767 /opendev. org/openstack/ nova/commit/ 0cd4ef2dcd482e6 ac2f86a345e0874 970cce0bdd
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/wallaby
commit 0cd4ef2dcd482e6 ac2f86a345e0874 970cce0bdd
Author: Balazs Gibizer <email address hidden>
Date: Wed Sep 1 17:32:56 2021 +0200
Parse alias from domain hostdev
In I16e7df6932bb7d ff243706ee49338 ba6b3782085 we missed that igGuestHostdevP CI is not a child class of igGuestInterfac e and therefore we missed parsing out the
LibvirtConf
LibvirtConf
alias field from the domain xml for hostdevs. The new libvirt driver
device detach logic[1] uses the alias as the identifier towards libvirt
so now hostdevs cannot be detached. This patch parses out the alias
field to fix the issue.
Closes-Bug: #1942345
Related-Bug: #1882521
[1] https:/ /review. opendev. org/q/topic: bug/1882521
Change-Id: I30d30a772475cb 82d0fd088f14a54 a35646bd1dc 6101778ab50f281 ecd689d283)
(cherry picked from commit b67b928c381511f