Bug 903480
| Summary: | Error messages produced in libvirtd.log when destroy the domain which has network filter | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | yanbing du <ydu> |
| Component: | libvirt | Assignee: | John Ferlan <jferlan> |
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | low | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.4 | CC: | cwei, dyuan, honzhang, jferlan, jhunsaker, jiahu, mzhan, rbalakri, yaliu |
| Target Milestone: | rc | Keywords: | Upstream |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | libvirt-0.10.2-34.el6 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-10-14 04:15:01 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Also seen in libvirt-0.10.2-18.el6.x86_64, similar scenario (under OpenStack): 2013-02-10 09:44:23.302+0000: 1761: error : virNWFilterDHCPSnoopEnd:2131 : internal error ifname "vnet0" not in key map 2013-02-10 09:44:23.324+0000: 1761: error : virNetDevGetIndex:653 : Unable to get index for interface vnet0: No such device Message: 2013-02-10 09:44:23.302+0000: 1761: error : virNWFilterDHCPSnoopEnd:2131 : internal error ifname "vnet0" not in key map was removed by upstream commit id 'b9c4bd0c071' https://www.redhat.com/archives/libvir-list/2013-April/msg00953.html Message: 2013-02-10 09:44:23.324+0000: 1761: error : virNetDevGetIndex:653 : Unable to get index for interface vnet0: No such device is a result of virNWFilterTerminateLearnReq() being run after virNWFilterDeregisterLearnReq() when learnIPAddressThread() terminates. This is a bit more tricky to solve and realistically is only seen when the specific log_filter is set in libvirtd.conf. By the time TerminateLearnReq runs the Deregister code has already removed the device, so that's why the message is displayed, which realistically is OK. The thread termination and driver cleanup are separated enough that in order to avoid the message another parameter would need to be added to virNetDevGetIndex to decide whether or not to message. Not sure it's worth the effort. Well sometimes sleep makes one think of a way to resolve issues. I've posted a patch for review on libvir-list: https://www.redhat.com/archives/libvir-list/2013-May/msg02025.html The patch was accepted and pushed. http://libvirt.org/git/?p=libvirt.git;a=commit;h=64919d978e4cc910a4475f77c0f04b866051935d I can reproduce it on -32 version, but can not reproduce it on -34 version.
[root@ibm-x3650m4-03 ~]# rpm -q libvirt
libvirt-0.10.2-32.el6.x86_64
[root@ibm-x3650m4-03 ~]# grep "error" /var/log/libvirt/libvirtd.log
2014-05-04 06:23:58.300+0000: 11765: error : virNWFilterDHCPSnoopEnd:2131 : internal error ifname "vnet0" not in key map
2014-05-04 06:23:58.337+0000: 11765: error : virNetDevGetIndex:653 : Unable to get index for interface vnet0: No such device
Version:
libvirt-0.10.2-34.el6.x86_64
qemu-kvm-rhev-0.12.1.2-2.425.el6.x86_64
kernel-2.6.32-459.el6.x86_64
[root@ibm-x3650m4-03 ~]# virsh dumpxml r6 | grep interface -A5
<interface type='network'>
<mac address='52:54:00:92:64:32'/>
<source network='default'/>
<filterref filter='clean-traffic'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>
...
[root@ibm-x3650m4-03 ~]# virsh start r6
Domain r6 started
[root@ibm-x3650m4-03 ~]# virsh destroy r6
Domain r6 destroyed
[root@ibm-x3650m4-03 ~]# grep "error" /var/log/libvirt/libvirtd.log
[root@ibm-x3650m4-03 ~]# < no line outputs.
We can get expected results, so change to Verified.
*** Bug 1098645 has been marked as a duplicate of this bug. *** Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2014-1374.html |
Description of problem: When destroy a domain which added a network filter, there are two error messages produced in libvirtd.log. Version-Release number of selected component (if applicable): libvirt-0.10.2-16.el6.x86_64 How reproducible: 100% Steps to Reproduce: 1. Define and start a guest with network filter added ... <interface type='network'> <mac address='52:54:00:8e:d2:28'/> <source network='default'/> <model type='virtio'/> <filterref filter='clean-traffic'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </interface> ... 2. Destroy the domain, and check the libvirtd log #virsh destroy $domain # tail -f /var/log/libvirt/libvirtd.log 2013-01-23 07:41:25.150+0000: 2341: error : virNWFilterDHCPSnoopEnd:2131 : internal error ifname "vnet0" not in key map 2013-01-23 07:41:25.168+0000: 2341: error : virNetDevGetIndex:653 : Unable to get index for interface vnet0: No such device Actual results: as steps Expected results: fix it Additional info: