Commit 0cd4ef2
Balazs Gibizer
Parse alias from domain hostdev
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.
Closes-Bug: #1942345
Related-Bug: #1882521
[1] https://review.opendev.org/q/topic:bug/1882521
Change-Id: I30d30a772475cb82d0fd088f14a54a35646bd1dc
(cherry picked from commit b67b928)1 parent e39bbdc commit 0cd4ef2
File tree
3 files changed
+33
-3
lines changed- nova
- tests/unit/virt/libvirt
- virt/libvirt
3 files changed
+33
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1604 | 1604 | | |
1605 | 1605 | | |
1606 | 1606 | | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
| 1613 | + | |
| 1614 | + | |
| 1615 | + | |
| 1616 | + | |
| 1617 | + | |
| 1618 | + | |
| 1619 | + | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
1607 | 1625 | | |
1608 | 1626 | | |
1609 | 1627 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23433 | 23433 | | |
23434 | 23434 | | |
23435 | 23435 | | |
23436 | | - | |
23437 | | - | |
| 23436 | + | |
| 23437 | + | |
| 23438 | + | |
| 23439 | + | |
| 23440 | + | |
| 23441 | + | |
| 23442 | + | |
| 23443 | + | |
| 23444 | + | |
| 23445 | + | |
23438 | 23446 | | |
23439 | 23447 | | |
23440 | 23448 | | |
23441 | 23449 | | |
23442 | 23450 | | |
23443 | 23451 | | |
23444 | | - | |
| 23452 | + | |
23445 | 23453 | | |
23446 | 23454 | | |
23447 | 23455 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2204 | 2204 | | |
2205 | 2205 | | |
2206 | 2206 | | |
| 2207 | + | |
| 2208 | + | |
2207 | 2209 | | |
2208 | 2210 | | |
2209 | 2211 | | |
| |||
2243 | 2245 | | |
2244 | 2246 | | |
2245 | 2247 | | |
| 2248 | + | |
| 2249 | + | |
2246 | 2250 | | |
2247 | 2251 | | |
2248 | 2252 | | |
| |||
0 commit comments