Interface detach fails for VFHostUser vif
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Maria Luisa Arches | ||
Queens |
Fix Committed
|
Medium
|
Maria Luisa Arches | ||
Rocky |
Fix Committed
|
Medium
|
Matt Riedemann |
Bug Description
Description
===========
Nova skips removing VHostUser from libvirt, thinking that it
already deleted the interface
Error happened here:
https:/
Interface was not present because target_dev does not match between libvirt and cfg
https:/
target_dev did not match, because nova does not fill value for target_dev
https:/
Steps to reproduce
==================
1. Launch VM with 2 vnics with type vhostuser
$ openstack port list --server test-vm
+------
| ID | Name | MAC Address | Fixed IP Addresses | Status |
+------
| 7dc38cc5-
| ac02bb45-
+------
2. Detach one port from the VM:
$ nova detach-interface test-vm ac02bb45-
$ openstack port list --server test-vm
+------
| ID | Name | MAC Address | Fixed IP Addresses | Status |
+------
| 7dc38cc5-
+------
3. Check VM interface. Interface is still visible in the VM
[root@test-vm ~]# ip a
1: lo: <LOOPBACK,
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ens3: <NO-CARRIER,
link/ether fa:16:3e:54:de:9b brd ff:ff:ff:ff:ff:ff
3: ens4: <BROADCAST,
link/ether fa:16:3e:25:a0:c4 brd ff:ff:ff:ff:ff:ff
inet 10.10.12.10/24 brd 10.10.12.255 scope global dynamic ens4
valid_lft 85986sec preferred_lft 85986sec
inet6 fe80::e7df:
valid_lft forever preferred_lft forever
Expected result
===============
Interface ens3 should be removed
Environment
===========
Libvirt+KVM
$ /usr/libexec/
QEMU emulator version 2.10.0
$ virsh --version
3.9.0
Neutron+OVS DPDK
Openstack Queens openstack-
summary: |
- Interface detach fails for VFHosUser vif + Interface detach fails for VFHostUser vif |
tags: | added: dpdk libvirt |
Changed in nova: | |
assignee: | Maria Luisa Arches (arches) → sean mooney (sean-k-mooney) |
Changed in nova: | |
assignee: | sean mooney (sean-k-mooney) → Maria Luisa Arches (arches) |
Changed in nova: | |
assignee: | Maria Luisa Arches (arches) → Matt Riedemann (mriedem) |
Changed in nova: | |
assignee: | Matt Riedemann (mriedem) → Maria Luisa Arches (arches) |
ill try an reproduce this tommorow.
if you want to address this yourself feel free to reassign.
otherwise ill try and resolve this in the next week or two.