RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 903480 - Error messages produced in libvirtd.log when destroy the domain which has network filter
Summary: Error messages produced in libvirtd.log when destroy the domain which has net...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.4
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: rc
: ---
Assignee: John Ferlan
QA Contact: Virtualization Bugs
URL:
Whiteboard:
: 1098645 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-24 05:42 UTC by yanbing du
Modified: 2018-12-01 15:22 UTC (History)
9 users (show)

Fixed In Version: libvirt-0.10.2-34.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-10-14 04:15:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:1374 0 normal SHIPPED_LIVE libvirt bug fix and enhancement update 2014-10-14 08:11:54 UTC

Description yanbing du 2013-01-24 05:42:14 UTC
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:

Comment 1 Yaniv Kaul 2013-02-10 09:54:55 UTC
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

Comment 2 John Ferlan 2013-05-31 00:36:47 UTC
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.

Comment 3 John Ferlan 2013-05-31 12:44:01 UTC
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

Comment 4 John Ferlan 2013-05-31 15:33:53 UTC
The patch was accepted and pushed.

http://libvirt.org/git/?p=libvirt.git;a=commit;h=64919d978e4cc910a4475f77c0f04b866051935d

Comment 16 Hu Jianwei 2014-05-04 06:26:28 UTC
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.

Comment 17 John Ferlan 2014-05-27 18:29:42 UTC
*** Bug 1098645 has been marked as a duplicate of this bug. ***

Comment 19 errata-xmlrpc 2014-10-14 04:15:01 UTC
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


Note You need to log in before you can comment on or make changes to this bug.