|Summary:||Bonding fails due to errors in network-functions.|
|Product:||[Fedora] Fedora||Reporter:||J.H. Prins <jhp>|
|Component:||kernel||Assignee:||Kernel Maintainer List <kernel-maint>|
|Status:||CLOSED WONTFIX||QA Contact:||Brian Brock <bbrock>|
|Fixed In Version:||Doc Type:||Bug Fix|
|Doc Text:||Story Points:||---|
|Last Closed:||2008-05-06 19:07:24 UTC||Type:||---|
|oVirt Team:||---||RHEL 7.3 requirements from Atomic Host:|
Description J.H. Prins 2007-01-29 20:43:32 UTC
Description of problem: When you configure a type 4 network bond with 2 e1000 network interfaces and use DHCP to supply the bond with an IP address the bond fails to come up due to errors in the check_link_down function in network-functions. The check_link_down function is called from the ifup-eth script during initialisation of the bond. This function in turn calls the mii-tool and the ethtool to check the MII status of the configured bond. Both mii-tool and ethtool fail to correctly return the status of the bond. mii-tool returns that the bond is down while /proc/net/bonding/bond0 tells the bond is up. ethtool completly fails to identify the bond and tells it can't return any data. Version-Release number of selected component (if applicable): initscripts-8.31.6-1 How reproducible: Create a bond with 2 e1000 interfaces and configure it to use dhcp. The bond will fail to come online. Steps to Reproduce: 1. Install FC5 with latest updates. 2. Configure bond with the following config files: ifcfg-bond0: DEVICE=bond0 BOOTPROTO=dhcp ONBOOT=yes TYPE=Bonding ifcfg-eth0: DEVICE=eth0 USERCTL=no ONBOOT=yes MASTER=bond0 SLAVE=yes BOOTPROTO=none ifcfg-eth1: DEVICE=eth1 USERCTL=no ONBOOT=yes MASTER=bond0 SLAVE=yes BOOTPROTO=none modprobe.conf: alias bond0 bonding options bond0 mode=4 miimon=100 lacp_rate=fast 3. Configure a LACP dynamic link agregation pair on the connected switch. 4. Try to bring the network online. Actual results: Bond0 will be brought down and there will be no enslaved interfaces. Expected results: Bond0 should come online with an actual IP address and eth0 and eth1 should be enslaved to bond0 Additional info:
Comment 1 J.H. Prins 2007-01-29 20:43:33 UTC
Created attachment 146865 [details] Diff file for network-functions in /etc/sysconfig/network-scripts to solve the problem.
Comment 2 Bill Nottingham 2007-01-29 20:47:40 UTC
Rather than reporting MII status completely separately through another interface, bonding devices should support the same interfaces.
Comment 3 J.H. Prins 2007-01-29 20:53:06 UTC
True. But mii-tool is deprecated as far as I know and ethtool misidentifies bonding interfaces completly. The only sollution at the moment is use the interface for bonding interfaces that is available to check the MII status. This is /proc/net/bonding/<bond>
Comment 4 Marc Maurer 2007-01-29 21:32:08 UTC
commit fae0ef93df6f6b3ebf9209d4be7112f97405814c to 22.214.171.124 might be what is needed: commit fae0ef93df6f6b3ebf9209d4be7112f97405814c Author: Andy Gospodarek <firstname.lastname@example.org> Date: Tue Nov 21 11:46:44 2006 -0500 [PATCH] bonding: incorrect bonding state reported via ioctl This is a small fix-up to finish out the work done by Jay Vosburgh to add carrier-state support for bonding devices. The output in /proc/net/bonding/bondX was correct, but when collecting the same info via an iotcl it could still be incorrect. Signed-off-by: Andy Gospodarek <email@example.com> Cc: Jeff Garzik <firstname.lastname@example.org> Cc: Stephen Hemminger <email@example.com> Signed-off-by: Andrew Morton <firstname.lastname@example.org> Signed-off-by: Jeff Garzik <email@example.com> Signed-off-by: Chris Wright <firstname.lastname@example.org>
Comment 5 J.H. Prins 2007-02-01 11:27:15 UTC
It seems indeed that this patch is the one we need. We have build a RPM with a 2.6.19-2 kernel for FC5, which includes this patch and what we see is that mii-tool properly identifies the link as being up. The speed etc are incorrect but that doesn't matter. Ethtool still doesn't give any proper information. [root@cl146 network-scripts]# mii-tool bond0 bond0: 10 Mbit, half duplex, link ok [root@cl146 network-scripts]# ethtool bond0 Settings for bond0: No data available
Comment 6 Bug Zapper 2008-04-04 05:47:24 UTC
Fedora apologizes that these issues have not been resolved yet. We're sorry it's taken so long for your bug to be properly triaged and acted on. We appreciate the time you took to report this issue and want to make sure no important bugs slip through the cracks. If you're currently running a version of Fedora Core between 1 and 6, please note that Fedora no longer maintains these releases. We strongly encourage you to upgrade to a current Fedora release. In order to refocus our efforts as a project we are flagging all of the open bugs for releases which are no longer maintained and closing them. http://fedoraproject.org/wiki/LifeCycle/EOL If this bug is still open against Fedora Core 1 through 6, thirty days from now, it will be closed 'WONTFIX'. If you can reporduce this bug in the latest Fedora version, please change to the respective version. If you are unable to do this, please add a comment to this bug requesting the change. Thanks for your help, and we apologize again that we haven't handled these issues to this point. The process we are following is outlined here: http://fedoraproject.org/wiki/BugZappers/F9CleanUp We will be following the process here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping to ensure this doesn't happen again. And if you'd like to join the bug triage team to help make things better, check out http://fedoraproject.org/wiki/BugZappers
Comment 7 Bug Zapper 2008-05-06 19:07:23 UTC
This bug is open for a Fedora version that is no longer maintained and will not be fixed by Fedora. Therefore we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen thus bug against that version. Thank you for reporting this bug and we are sorry it could not be fixed.