ifupdown locking up when bringing down bridge devices

From: Justin Searle at 015 (JWSearle_at_itt-tech.edu)
Date: 12/31/04

  • Next message: Miroslaw Kwasniak: "Re: modem for potato"
    To: "'debian-user@lists.debian.org'" <debian-user@lists.debian.org>
    Date: Fri, 31 Dec 2004 03:30:01 -0500
    
    

    (Sorry for the first subject-less post. Fat-fingered it)

    The networking init script is hanging and reporting the following error when
    bringing down br0 (bridge device via bridge-utils, for those who don't
    know):

    unregister_netdevice: waiting for br0 to become free. Usage count = 1

    This is occuring when "brctl delbr br0" is ran from the
    /etc/network/if-post-down.d/bridge script. However, this only occurs if run
    by ifupdown framework, and only while using 2.6.9 kernel. And when they
    break, it seems to be something about bringing the interface full down
    ("ifdown br0" as opposed to "ifconfig br0 down"). I have tried disabling
    the bridge scripts and just have ifupdown bring down the br0 interface, but
    brctl would still hang when bringing down br0.

    The only way I cat get it to work is by running "ifconfig br0 down" and
    "brctl delbr br0" by hand before using "/etc/init.d/networking stop" or
    "ifdown -a". This successfully brings down the bridge. I can then do a
    "/etc/init.d/networking stop" to bring down everything else.

    I have verified this on two different machines, running different hardware.
    Both work fine with 2.6.8 kernel, but break on the 2.6.9 kernel. So, is
    this a bug for the kernel-source-2.6.9, bridge-utils, or ifupdown? The
    versions I am using are all current sarge and sid packages.

    My original br0 entry in /etc/network/interfaces that crashes:

        iface br0 inet static
            address 192.168.1.200
            netmask 255.255.255.0
            broadcast 192.168.1.255
            gateway 192.168.1.1
            bridge_ports eth1 eth2

    My current automated workaround is to add those two lines mentioned above to
    the "stop" and "restart" sections of the /etc/init.d/networking script just
    about the "ifdown -a" lines. And to change my br0 entry to:

        iface br0 inet static
            address 192.168.1.200
            netmask 255.255.255.0
            broadcast 192.168.1.255
            gateway 192.168.1.1
            bridge_ports eth1 eth2
            down ifconfig eth1 down
            down ifconfig eth2 down

    These last two entries are needed since the if-post-down.d/bridge script
    doesn't get ran when there are no active bridge interfaces.

    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Miroslaw Kwasniak: "Re: modem for potato"

    Relevant Pages