Package: ifupdown
Version: 0.7.5
Severity: important

Dear Maintainer,

ifupdown runs dhclient with the '-1' option, presumably to block during
startup scripts. In the event that configuration is successful, dhclient
will daemonize and exit successfully, and ifupdown marks the interface
configured. However, dhclient will exit if at any point in the future
renewing the lease fails, and an administrator will have to manually
ifup the affected interface (actually ifdown first, since ifupdown will
still think the interface is up). I believe this is a regression since
squeeze, and it looks like #694541 is caused by the same change.

Steps to reproduce:

/etc/network/interfaces:
    iface eth0 inet dhcp

1. While the dhcp server is reachable, 'ifup eth0'. The interface will
be configured successfully, and dhclient will run in the background
2. Make the dhcp server unreachable (eg. remove cable or otherwise bring
the NIC link down on the client, unless you have ifplugd or something
else like it running)
3. Wait until the active lease expires
4. Observe that dhclient exits, removing addresses from the interface,
and that ifupdown thinks the interface is still up

I believe ifupdown assumes that the dhcp client will not exit, but the
-1 command line option causes it to exit on any errors. There was a
discussion about a very similar problem in bug #253472 (apparently
related to a different dhcp client, or at least a different version).

As noted in #694541, the change was apparently made to fix #420784, but
this is a rather nasty side effect.

-- System Information:
Debian Release: 7.0
  APT prefers testing
  APT policy: (100, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages ifupdown depends on:
ii  dpkg         1.16.9
ii  initscripts  2.88dsf-34
ii  iproute      20120521-3
ii  libc6        2.13-37
ii  lsb-base     4.1+Debian8

ifupdown recommends no packages.

Versions of packages ifupdown suggests:
ii  isc-dhcp-client [dhcp-client]  4.2.2.dfsg.1-5+deb70u2
ii  net-tools                      1.60-24.2
pn  ppp                            <none>
pn  rdnssd                         <none>

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to