FS#10616 - [initscripts] cannot create bridge with bonded interface using rc.conf (with fix)

Attached to Project: Arch Linux
Opened by Jonathan Liu (net147) - Monday, 09 June 2008, 02:22 GMT
Last edited by Roman Kyrylych (Romashka) - Monday, 10 August 2009, 12:00 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Aaron Griffin (phrakture)
Thomas Bächler (brain0)
Dan McGee (toofishes)
Architecture All
Severity Low
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No


There are problems creating a bridge with bonded interfaces using rc.conf.
In the /etc/rc.d/network script, the bridge is created before the bonded interface.
This results in an error and as a result, the bonded interface is not added to the bridge.

I also noticed when the network is stopped, the interfaces added to the bonded interfaces are not removed.

A patch is attached that corrects this issue.

Additional info:
* Package: initscripts-2008.05-1

Steps to reproduce:
---------- /etc/rc.conf
eth0="eth0 promisc"
eth1="eth1 promisc"
bond_bond0="eth0 eth1"
bond0="bond0 promisc"
INTERFACES=(eth0 eth1 bond0 br0)
br0="br0 netmask"

reboot computer (which will run /etc/rc.d/network start)
This task depends upon

Closed by  Roman Kyrylych (Romashka)
Monday, 10 August 2009, 12:00 GMT
Reason for closing:  Implemented
Comment by Gerardo Exequiel Pozzi (djgera) - Tuesday, 14 July 2009, 08:24 GMT
Also adding to Dan McGee that is the maintainer of "ifenslave" pkg and is related with this task.
Comment by Dan McGee (toofishes) - Monday, 03 August 2009, 03:07 GMT
This seems pretty sane to me and only deals with the bond stuff, so shouldn't be of much risk to anyone else. Thomas, do you want to push this in?
Comment by Aaron Griffin (phrakture) - Monday, 03 August 2009, 19:41 GMT