[Bug 1015199] Re: ifup does not work as documented with bonding interfaces

Riccardo Murri riccardo.murri at gmail.com
Tue Nov 27 15:09:12 UTC 2012


On Tue, Nov 27, 2012 at 3:41 PM, Stéphane Graber <stgraber at stgraber.org> wrote:
> It's not a bug. "ifup bond0" will configure the bond and wait until the
> first slave joins to return, so it'll indeed "hang" but that's the
> wanted behaviour.

Errr.... this is not what the documentation says
(/usr/share/doc/ifenslave-2.6/README.Debian.gz):

"""
Using ifup on a master interface will call ifup for all slaves that are
flagged with allow-bondX. (bondX being replaced by the master interface
name).
"""

Instead, as you say the master interface just "hangs" and the slaves
are never ifup'ed.  So, either the documentation is incorrect, or ifup
does not work as documented.


> If you need to reconfigure your bond, you need to call "ifdown" on all
> bond members, then on the bond interface, change your config and then do
> "ifup" on all the bond members and then on the bond interface.

Again, this is not what the documentation says
(/usr/share/doc/ifenslave-2.6/README.Debian.gz):

"""
Using ifdown on a master interface will cause all slaves to be freed and
disabled. The master is also cleaned-up to ensure reliable results if the
master is brought up later.
"""

I'm not asking for `ifup` to be changed, but the docs should be
consistent :-)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ifenslave-2.6 in Ubuntu.
https://bugs.launchpad.net/bugs/1015199

Title:
  ifup does not work as documented with bonding interfaces

Status in “ifenslave-2.6” package in Ubuntu:
  Invalid

Bug description:
  The file /usr/share/doc/ifenslave-2.6/README.Debian.gz states:

  "Using ifup on a master interface will call ifup for all slaves that are
  flagged with allow-bondX. (bondX being replaced by the master interface
  name). This will allow for extra setup for special slave interfaces."

  However I'm using this /etc/network/interfaces file:

  # The bound interface 
  auto eth3
  allow-bond0 eth3
  iface eth3 inet manual
    bond-master bond0
    bond-primary eth3 eth4 eth5

  auto eth4
  allow-bond0 eth4
  iface eth4 inet manual
    bond-master bond0
    bond-primary eth3 eth4 eth5

  auto eth5
  allow-bond0 eth5
  iface eth5 inet manual
    bond-master bond0
    bond-primary eth3 eth4 eth5

  auto bond0 
  iface bond0 inet static
    address 10.1.1.125
    network 10.1.0.0
    netmask 255.255.0.0
    broadcast 10.1.255.255
    bond-mode balance-rr
    bond-slaves eth3 eth4 eth5
    bond-miimon 100
    bond-downdelay 200
    bond-updelay 200

  and issuing the 'ifup bond0' command I get:

  root@:~# ifup bond0
  Waiting for a slave to join bond0 (will timeout after 60s)
  No slave joined bond0, continuing anyway
  ssh stop/waiting
  ssh start/running, process 9610

  As you can see no slave interface has been started.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifenslave-2.6/+bug/1015199/+subscriptions




More information about the foundations-bugs mailing list