[Bug 950409] Re: ifup fails but returns 0

RazorX 950409 at bugs.launchpad.net
Fri Mar 9 00:34:16 UTC 2012


Okay... Well, I think it should be noted that this causes Xen to not
properly setup the bridge.  So out of the box Xen will be broken when
going to bridge route.  I guess I'll bring it up with the Xen project
and see if maybe they want to do things a bit differently.

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

Title:
  ifup fails but returns 0

Status in “ifupdown” package in Ubuntu:
  Won't Fix

Bug description:
  This is from the packaged xen script 'network-bridge'.

  do_ifup() {
      #if [ $1 != "${netdev}" ] || ! ifup $1 ; then
          if [ -n "$addr_pfx" ] ; then
              # use the info from get_ip_info()
              ip addr flush $1
              ip addr add ${addr_pfx} dev $1
          fi
          ip link set dev $1 up
          [ -n "$gateway" ] && ip route add default via ${gateway}
      #fi
  }

  I needed to comment out the encasing 'if' because ifup exits 0 even
  though it fails.  It throws a RETLINK error due to an ip existing on
  the interface, but $? = 0.  This causes the rest to fail and the
  bridge is not properly established.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/950409/+subscriptions




More information about the foundations-bugs mailing list