ifdown thinks interface is not up

Bug #1189521 reported by Scott Moser
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
walinuxagent (Ubuntu)
New
Undecided
Unassigned

Bug Description

on 13.04 image on azure
$ cat /etc/cloud/build.info
build_name: server
serial: 20130601
$ lsb_release -c
Codename: raring

A couple things wrong/weird:
 * ifdown says the interface isn't configured (but it clearly is)
 * something ran 'start networking' rather than letting the networking come up on its own as a result of configuration in /etc/network/interfaces and network-interface.conf
 * dhclient is dead (seems to not like the lease response?)
 * static-networking-up has (probably) not been emitted as it would be emitted based on eth0 coming up correctly (through /etc/network/if-up.d/upstart)

I'm moderately surprised that there is not other fallout of this. It seems to work, but I'm sure something is broken by the odd state.

$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:15:5d:43:c5:1e
          inet addr:10.215.48.61 Bcast:10.215.49.255 Mask:255.255.254.0
          inet6 addr: fe80::215:5dff:fe43:c51e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:16218 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14676 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4162337 (4.1 MB) TX bytes:4972499 (4.9 MB)

$ sudo ifdown eth0
ifdown: interface eth0 not configured

$ grep "^[^#]" /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp

$ ps axw | grep dhc
49213 pts/2 S+ 0:00 grep dhc

$ for f in /var/log/upstart/network*; do echo === $f ===; ls -l $f; sudo cat $f; done

=== /var/log/upstart/networking.log ===
-rw-r----- 1 root root 511 Jun 10 12:33 /var/log/upstart/networking.log
Internet Systems Consortium DHCP Client 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:15:5d:43:c5:1e
Sending on LPF/eth0/00:15:5d:43:c5:1e
Sending on Socket/fallback
DHCPREQUEST of 10.215.48.61 on eth0 to 255.255.255.255 port 67 (xid=0x6c80cecf)
DHCPACK of 10.215.48.61 from 10.215.48.1
RTNETLINK answers: File exists
Unable to set up timer: out of range
Failed to bring up eth0.
=== /var/log/upstart/network-interface-eth0.log ===
-rw-r----- 1 root root 600 Jun 10 12:31 /var/log/upstart/network-interface-eth0.log
Internet Systems Consortium DHCP Client 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:15:5d:43:c5:1e
Sending on LPF/eth0/00:15:5d:43:c5:1e
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3 (xid=0x51736cc1)
DHCPREQUEST of 10.215.48.61 on eth0 to 255.255.255.255 port 67 (xid=0x51736cc1)
DHCPOFFER of 10.215.48.61 from 10.215.48.1
DHCPACK of 10.215.48.61 from 10.215.48.1
Unable to set up timer: out of range
Failed to bring up eth0.

$ sudo cat /var/lib/dhcp/dhclient.eth0.leases
lease {
  interface "eth0";
  fixed-address 10.215.48.61;
  server-name "RD008CFA013E12";
  option subnet-mask 255.255.254.0;
  option dhcp-lease-time 4294967295;
  option routers 10.215.48.1;
  option dhcp-message-type 5;
  option dhcp-server-identifier 10.119.83.82;
  option domain-name-servers 10.215.48.110;
  option dhcp-renewal-time 4294967295;
  option unknown-245 a:d7:30:6e;
  option dhcp-rebinding-time 4294967295;
  option domain-name "fc18422087cf4e36b4a0e0b20d2d580a.sm3.1804365435.useast.internal.cloudapp.net";
  renew 2 2013/06/11 12:31:18;
  rebind 2 2013/06/11 12:31:18;
  expire 2 2013/06/11 12:31:18;
}
lease {
  interface "eth0";
  fixed-address 10.215.48.61;
  server-name "RD008CFA013E12";
  option subnet-mask 255.255.254.0;
  option routers 10.215.48.1;
  option dhcp-lease-time 4294967295;
  option dhcp-message-type 5;
  option domain-name-servers 10.215.48.110;
  option dhcp-server-identifier 10.119.83.82;
  option dhcp-renewal-time 4294967295;
  option dhcp-rebinding-time 4294967295;
  option unknown-245 a:d7:30:6e;
  option domain-name "fc18422087cf4e36b4a0e0b20d2d580a.sm3.1804365435.useast.internal.cloudapp.net";
  renew 4 2149/07/17 19:01:42;
  rebind 4 2149/07/17 19:01:42;
  expire 4 2149/07/17 19:01:42;
}

$ sudo dhclient -d eth0
Internet Systems Consortium DHCP Client 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:15:5d:43:c5:1e
Sending on LPF/eth0/00:15:5d:43:c5:1e
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3 (xid=0x68b2909d)
DHCPREQUEST of 10.215.48.61 on eth0 to 255.255.255.255 port 67 (xid=0x68b2909d)
DHCPOFFER of 10.215.48.61 from 10.215.48.1
DHCPACK of 10.215.48.61 from 10.215.48.1
RTNETLINK answers: File exists
Unable to set up timer: out of range
$ echo $?
1

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: walinuxagent 1.3.2-0ubuntu1
ProcVersionSignature: Ubuntu 3.8.0-23.34-generic 3.8.11
Uname: Linux 3.8.0-23-generic x86_64
ApportVersion: 2.9.2-0ubuntu8
Architecture: amd64
Date: Mon Jun 10 15:12:05 2013
MarkForUpload: True
ProcEnviron:
 TERM=screen
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: walinuxagent
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Scott Moser (smoser) wrote :
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.