ifdown thinks interface is not up
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
walinuxagent (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
on 13.04 image on azure
$ cat /etc/cloud/
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/
* dhclient is dead (seems to not like the lease response?)
* static-
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:
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
RX bytes:4162337 (4.1 MB) TX bytes:4972499 (4.9 MB)
$ sudo ifdown eth0
ifdown: interface eth0 not configured
$ grep "^[^#]" /etc/network/
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/
=== /var/log/
-rw-r----- 1 root root 511 Jun 10 12:33 /var/log/
Internet Systems Consortium DHCP Client 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https:/
Listening on LPF/eth0/
Sending on LPF/eth0/
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/
-rw-r----- 1 root root 600 Jun 10 12:31 /var/log/
Internet Systems Consortium DHCP Client 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https:/
Listening on LPF/eth0/
Sending on LPF/eth0/
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/
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-
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 "fc18422087cf4e
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-
option dhcp-renewal-time 4294967295;
option dhcp-rebinding-time 4294967295;
option unknown-245 a:d7:30:6e;
option domain-name "fc18422087cf4e
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:/
Listening on LPF/eth0/
Sending on LPF/eth0/
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
ProcVersionSign
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)