ifupdown integration broken

Bug #223759 reported by Soren Hansen
10
Affects Status Importance Assigned to Milestone
ifenslave-2.6 (Ubuntu)
Fix Released
Medium
Soren Hansen
Hardy
Fix Released
Undecided
Soren Hansen
Intrepid
Fix Released
Medium
Soren Hansen

Bug Description

Binary package hint: ifenslave-2.6

ifupdown integration is broken. /etc/network/{pre-up,post-down}/ifenslave-2.6 looks for ifstate in /etc/network/run, but it's been in /var/run/network for ages.

Revision history for this message
Soren Hansen (soren) wrote :
Changed in ifenslave-2.6:
importance: Undecided → Medium
Revision history for this message
Soren Hansen (soren) wrote :

To verify this bug, add this to interfaces:

iface bond0 inet manual
   slaves eth0

You'll see somthing like:
grep: /etc/network/run/ifstate: No such file or directory

After applying the fix, the slaves should be added to the bonding device. (check with "ifenslave-2.6 bond0")

Revision history for this message
Martin Pitt (pitti) wrote :

Subscribed motu-sru. Accepted into hardy-proposed, please test.

Changed in ifenslave-2.6:
assignee: nobody → soren
milestone: none → intrepid-alpha-1
status: New → In Progress
assignee: nobody → soren
status: New → Fix Committed
Revision history for this message
Soren Hansen (soren) wrote :

ifenslave-2.6 is not in universe.. I can't unsubscribe motu-sru, though :(

Revision history for this message
Martin Pitt (pitti) wrote : Re: [Bug 223759] Re: ifupdown integration broken

Soren Hansen [2008-04-29 12:00 -0000]:
> ifenslave-2.6 is not in universe.. I can't unsubscribe motu-sru, though

Oh, oops, I should have checked that. It's the first time I hear about
that package :/

Revision history for this message
Jesper Krogh (jesper) wrote :

I can confirm both bug and fix.

This is vital, it breaks networking on any server running with bonded network interfaces. .. worked flawless in hardy-1

Another change that seems to be releated.

Symbolik names in /etc/modprobe.d/options doesnt work any more:
May 1 22:02:33 hest kernel: [ 175.644153] bonding: Error: Invalid bonding mode "802.3ad"

options bond0 mode=4 miimon=100
# Apparently 802.3ad doesnt work any more (worked in hardy-1)
# options bond0 mode=802.3ad miimon=100

Jesper

Revision history for this message
Martin Pitt (pitti) wrote :

Jesper, does that mean you tried the packages in hardy-proposed, and they fix the bug for you?

Revision history for this message
Jesper Krogh (jesper) wrote :

No. I integrated the changes from the diff manually on my system. (They were very trivial).

Jesper

Revision history for this message
Martin Pitt (pitti) wrote :

Ah, I just saw that there are binary components in the package. Jesper, would you mind actually trying the package in hardy-proposed (just to be on the safe side)? Thank you!

Revision history for this message
Jesper Krogh (jesper) wrote :

I've now tried it from hardy-proposed, and can confirm that it works excellent.

Jesper

Revision history for this message
Martin Pitt (pitti) wrote :

Copied to hardy-updates. Thanks for the testing!

Changed in ifenslave-2.6:
status: Fix Committed → Fix Released
Revision history for this message
Soren Hansen (soren) wrote :

Also fixed in Intrepid now.

Changed in ifenslave-2.6:
status: In Progress → Fix Released
Revision history for this message
Marcin Kowalczyk (qrczakmk) wrote :

/etc/network/if-up.d/mountnfs from intrepid's initscripts still refers to /etc/network/run/ifstate.

Revision history for this message
Kyle M Weller (kylew) wrote :

root@pc:~# /etc/init.d/networking restart
 * Reconfiguring network interfaces... grep: /etc/network/run/ifstate: No such file or directory
[: 164: 0: unexpected operator
grep: /etc/network/run/ifstate: No such file or directory
[: 164: 0: unexpected operator
                                                                         [ OK ]

Revision history for this message
Paul Hoell (hoellp) wrote :

I'm on intrepid kde4 64bit up-to-date and I get this error when bringing wirless up.

$ sudo ifup wlan0
...
grep: /etc/network/run/ifstate: No such file or directory
[: 164: 0: unexpected operator
grep: /etc/network/run/ifstate: No such file or directory
[: 164: 0: unexpected operator
grep: /etc/network/run/ifstate: No such file or directory
[: 164: 0: unexpected operator

Thanks for your attention

Revision history for this message
Beojan (beojan2) wrote :

The simple fix would be to symlink /etc/network/run to /var/run/network with

sudo ln -s /var/run/network /etc/network/run

Revision history for this message
Soren Hansen (soren) wrote :

On Thu, Aug 28, 2008 at 10:54:09AM -0000, Paul Hoell wrote:
> I'm on intrepid kde4 64bit up-to-date and I get this error when bringing
> wirless up.
>
> $ sudo ifup wlan0
> ...
> grep: /etc/network/run/ifstate: No such file or directory
> [: 164: 0: unexpected operator
> grep: /etc/network/run/ifstate: No such file or directory
> [: 164: 0: unexpected operator
> grep: /etc/network/run/ifstate: No such file or directory
> [: 164: 0: unexpected operator
>
> Thanks for your attention

The error you're seeing is most likely caused by the mountnfs script in
the initscripts package for which I'll upload a fix in a few minutes.
Let me know if the problem persists.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.