[Bug 950409] [NEW] ifup fails but returns 0

RazorX 950409 at bugs.launchpad.net
Thu Mar 8 23:47:28 UTC 2012


Public bug reported:

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.

** Affects: ifupdown (Ubuntu)
     Importance: Undecided
         Status: New

-- 
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:
  New

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