Bug 698933 - Libvirt floods /var/log/messages with errors
Summary: Libvirt floods /var/log/messages with errors
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: netcf
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Laine Stump
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-22 10:33 UTC by Paul Ezvan
Modified: 2016-04-26 17:34 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-02 16:49:54 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 746960 0 unspecified CLOSED interfaceNumOfDefinedInterfaces:229 : internal error failed to get number of defined interfaces on host 2021-02-22 00:41:40 UTC

Internal Links: 746960

Description Paul Ezvan 2011-04-22 10:33:12 UTC
Description of problem:

Libvirt is flooding /var/log/messages with errors :

Apr 22 12:26:56 gens libvirtd: 12:26:56.030: 26221: error : interfaceNumOfDefinedInterfaces:229 : erreur interne failed to get number of defined interfaces on host (netcf: unspecified error - errors in loading some config files)

Version-Release number of selected component (if applicable):

libvirt-0.8.8-4.fc15

How reproducible:

Each time libvirtd is started

Comment 1 Stephan Dühr 2011-08-23 07:47:03 UTC
I have this problem with
libvirt-0.8.8-7.fc15.x86_64
netcf-libs-0.1.7-2.fc15.x86_64

The syslog flooding begins when I start virt-manager

looks like opensuse 11.4 had the same problem:
https://bugzilla.novell.com/show_bug.cgi?id=689282

Comment 2 Stephan Dühr 2011-08-23 08:02:40 UTC
I tried this:

[root@t420 ~]# NETCF_DEBUG=true /usr/sbin/libvirtd
warning: augeas initialization had errors
please file a bug with the following lines in the bug report:
/augeas/error
/augeas/error/pathx = "garbage at end of path expression"
/augeas/error/pathx/pos = "/augeas/files/etc/sysconfig/network-scripts/ifcfg-maxspot_|=|(FREE)"
/augeas/load/Modprobe/error = "/augeas/files/etc/sysconfig/network-scripts/ifcfg-maxspot_|=|(FREE)"
/augeas/load/Sysfs/error = "/augeas/files/etc/sysconfig/network-scripts/ifcfg-maxspot_|=|(FREE)"
09:57:31.150: 4665: info : libvirt version: 0.8.8, package: 7.fc15 (Fedora Project, 2011-07-06-15:17:26, x86-17.phx2.fedoraproject.org)
09:57:31.150: 4665: error : interfaceNumOfInterfaces:187 : internal error failed to get number of interfaces on host (netcf: unspecified error - errors in loading some config files)

I was a bit impatient and removed the maxspot connection from NetworkMananger. This fixed it for me.

Comment 3 Fedora Admin XMLRPC Client 2011-09-22 17:52:05 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 4 Fedora Admin XMLRPC Client 2011-09-22 17:55:04 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 5 Adam Stokes 2011-09-23 21:20:34 UTC
(In reply to comment #2)
> I tried this:
> 
> [root@t420 ~]# NETCF_DEBUG=true /usr/sbin/libvirtd
> warning: augeas initialization had errors
> please file a bug with the following lines in the bug report:
> /augeas/error
> /augeas/error/pathx = "garbage at end of path expression"
> /augeas/error/pathx/pos =
> "/augeas/files/etc/sysconfig/network-scripts/ifcfg-maxspot_|=|(FREE)"
> /augeas/load/Modprobe/error =
> "/augeas/files/etc/sysconfig/network-scripts/ifcfg-maxspot_|=|(FREE)"
> /augeas/load/Sysfs/error =
> "/augeas/files/etc/sysconfig/network-scripts/ifcfg-maxspot_|=|(FREE)"
> 09:57:31.150: 4665: info : libvirt version: 0.8.8, package: 7.fc15 (Fedora
> Project, 2011-07-06-15:17:26, x86-17.phx2.fedoraproject.org)
> 09:57:31.150: 4665: error : interfaceNumOfInterfaces:187 : internal error
> failed to get number of interfaces on host (netcf: unspecified error - errors
> in loading some config files)
> 
> I was a bit impatient and removed the maxspot connection from NetworkMananger.
> This fixed it for me.

Fixed for me too on one of my connection instances. Though I think this should go to the augeas team rather than virt team.

Thanks

Comment 6 Laine Stump 2011-10-18 20:47:51 UTC
In these cases it would be useful to attach the contents of the offending ifcfg file to the bug (and initially assign it to netcf; if necessary I can reassign it to augeas).

BTW, there was previously a threading bug in augeas that caused the same netcf error (error in loading some config files) which was fixed in augeas 0.8.1 by this upstream commit:

commit 39ad6cd46357961dda67a1c9eda65229a25858ae
Author: David Lutterkort <lutter>
Date:   Tue Mar 22 17:18:44 2011 -0700

    Eliminate global variable 'comment_depth' in lexer

Since augeas is now at 0.9.0 in Fedora 15, those cases should be long gone.

Comment 7 Christoph Wickert 2012-06-10 11:24:22 UTC
As I wrote in bug 746960 there are no more problems with libvirt, but netcf-0.1.9-2.fc17 (or augeas-0.10.0-3.fc17) still complain:

$ ncftool -d list
warning: augeas initialization had errors
please file a bug with the following lines in the bug report:
/augeas/error
/augeas/error/pathx = "garbage at end of path expression"
/augeas/error/pathx/pos = "/augeas/files/etc/sysconfig/network-scripts/ifcfg-Test|=|!"
/augeas/load/Modprobe/error = "/augeas/files/etc/sysconfig/network-scripts/ifcfg-Test|=|!"
/augeas/load/Sysfs/error = "/augeas/files/etc/sysconfig/network-scripts/ifcfg-Test|=|!"
error: unspecified error
error: errors in loading some config files

It is not the content of the file but it's name that is causing problems. Rename the file to ifcfg-Test and everything is fine. Should we reassign this to augeas then?

Comment 8 Cole Robinson 2012-06-17 15:03:00 UTC
Laine, is this Comment #7 a netcf or augeas lens issue?

Comment 9 Laine Stump 2012-06-17 16:55:16 UTC
I believe it could only be solved by augeas. netcf only supplies a list of globs to match; it is augeas that determines the names of individual files and opens/reads them.

Comment 10 Trever Adams 2012-06-26 11:20:29 UTC
I am seeing this. If a comment (# whatever) shows up anywhere but the beginning of a line I see this.

Comment 11 Cole Robinson 2013-07-02 16:49:54 UTC
On F19 I don't see this, even if there's an embedded comment in an ifcfg file. If anyone can still reproduce, please reopen and attach an offending ifcfg.


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