Bug 826752
Summary: | virsh iface-list produces an error when "options ipv6 disable = 1" is in an /etc/modprobe.d file | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Kevin Clevenger <kcleveng> |
Component: | augeas | Assignee: | Dominic Cleal <dcleal> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.2 | CC: | acathrow, bfan, cwei, dallan, dcleal, dyuan, hbrock, leiwang, mzhan, prc, rjones, ydu |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | augeas-1.0.0-4.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-11-21 04:50:39 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: | |||
Bug Depends On: | 817753 | ||
Bug Blocks: |
Description
Kevin Clevenger
2012-05-30 22:13:47 UTC
I just tried this on my RHEL6.3 system with options ipv6 disable=1 in /etc/modprobe.d/local.conf, and "virsh iface-list" worked without any error. Is there possibly something ipv6-specific in your ifcfg files? Please do the following: 1) install the "netcf" package and run "ncftool -d list, and attach the output (hopefully it will fail and contain a more detailed error message). 2) attach a tarball containing the files /etc/sysconfig/network-scripts/ifcfg-* and route-* Also configured: echo net.ipv6.conf.all.disable_ipv6 = 1 >> /etc/sysctl.conf ncftool -d list eth0 eth1 eth2 lo Adding "options ipv6 disable = 1" to /etc/modprobe.d/local.conf (no reboot) ncftool -d list warning: augeas initialization had errors please file a bug with the following lines in the bug report: /augeas/files/etc/modprobe.d/local.conf/error = "parse_failed" /augeas/files/etc/modprobe.d/local.conf/error/pos = "24" /augeas/files/etc/modprobe.d/local.conf/error/line = "2" /augeas/files/etc/modprobe.d/local.conf/error/char = "0" /augeas/files/etc/modprobe.d/local.conf/error/lens = "/usr/share/augeas/lenses/dist/modprobe.aug:49.10-.32:" /augeas/files/etc/modprobe.d/local.conf/error/message = "Iterated lens matched less than it should" error: unspecified error error: errors in loading some config files Ah, got it - it was the spaces in "disable = 1", remove the spaces (options ipv6 disable=1 instead of options ipv6 disable = 1) and both virsh and ncftool work correctly. I wonder if modprobe.aug should be so severe. David? Fixed upstream in commit b56b837c This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate, in the next release of Red Hat Enterprise Linux. Can reproduce with augeas-0.9.0-4.el6.x86_64 # echo net.ipv6.conf.all.disable_ipv6 = 1 >> /etc/sysctl.conf # virsh Welcome to virsh, the virtualization interactive terminal. Type: 'help' for help with commands 'quit' to quit virsh # iface-list error: Failed to reconnect to the hypervisor error: no valid connection error: internal error Unable to locate libvirtd daemon in /usr/sbin (to override, set $LIBVIRTD_PATH to the name of the libvirtd binary) (In reply to bfan from comment #11) > Can reproduce with augeas-0.9.0-4.el6.x86_64 > > # echo net.ipv6.conf.all.disable_ipv6 = 1 >> /etc/sysctl.conf > # virsh > Welcome to virsh, the virtualization interactive terminal. > > Type: 'help' for help with commands > 'quit' to quit > > virsh # iface-list > error: Failed to reconnect to the hypervisor > error: no valid connection > error: internal error Unable to locate libvirtd daemon in /usr/sbin (to > override, set $LIBVIRTD_PATH to the name of the libvirtd binary) Sorry for putting uncorrect logs. The correct is augeas-libs-0.9.0-4.el6.x86_64 libvirt-0.10.2-23.el6.x86_64 netcf-libs-0.1.9-4.el6.x86_64 # cat /etc/modprobe.d/local.conf options ipv6 disable = 1 # virsh Welcome to virsh, the virtualization interactive terminal. Type: 'help' for help with commands 'quit' to quit virsh # iface-list error: Failed to list interfaces error: internal error failed to get number of host interfaces: unspecified error - errors in loading some config files Verified with augeas-1.0.0-5.el6.x86_64 # cat /etc/modprobe.d/local.conf options ipv6 disable = 1 # virsh Welcome to virsh, the virtualization interactive terminal. Type: 'help' for help with commands 'quit' to quit virsh # iface-list Name State MAC Address -------------------------------------------- eth0 active 00:9c:02:9b:21:08 lo active 00:00:00:00:00:00 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/RHSA-2013-1537.html |