dhclient: can't create /var/lib/dhcp3/dhclient.eth0.leases in syslog again on Precise

Bug #900234 reported by Neil Wilson
38
This bug affects 9 people
Affects Status Importance Assigned to Milestone
ifupdown (Ubuntu)
Fix Released
High
Stéphane Graber
isc-dhcp (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Getting errors similar to the following in the syslog on Precise:

Dec 5 10:47:44 srv-jygxu dhclient: DHCPREQUEST of 10.251.70.10 on eth0 to 10.251.70.9 port 67
Dec 5 10:47:44 srv-jygxu dhclient: DHCPACK of 10.251.70.10 from 10.251.70.9
Dec 5 10:47:44 srv-jygxu dhclient: can't create /var/lib/dhcp3/dhclient.eth0.leases: No such file or directory
Dec 5 10:47:44 srv-jygxu dhclient: bound to 10.251.70.10 -- renewal in 1299 seconds.

This was apparently fixed on natty but appears to have regressed in Precise and Oneiric.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: ifupdown 0.7~alpha5.1ubuntu5
ProcVersionSignature: Ubuntu 3.2.0-2.6-virtual 3.2.0-rc3
Uname: Linux 3.2.0-2-virtual i686
ApportVersion: 1.90-0ubuntu1
Architecture: i386
Date: Mon Dec 5 10:59:50 2011
ProcEnviron:
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: ifupdown
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Neil Wilson (neil-aldur) wrote :
Revision history for this message
Neil Wilson (neil-aldur) wrote :

The error is triggered due to the presence of the file '/sbin/dhclient3' and the lack of the directory '/var/lib/dhcp3'.

So either we need to get rid of /sbin/dhclient3 or link /var/lib/dhcp3' to '/var/lib/dhcp'.

Did this every get decided?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ifupdown (Ubuntu):
status: New → Confirmed
Changed in isc-dhcp (Ubuntu):
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (4.2 KiB)

This bug was fixed in the package ifupdown - 0.7~beta2ubuntu1

---------------
ifupdown (0.7~beta2ubuntu1) precise; urgency=low

  * Resynchronise with Debian experimental. Remaining changes
    (LP: #905660, LP: #850566, LP: #611877, LP: #678425):
    - ifupdown.nw: Use 100 as default route metric unless an explicit metric
      parameter is set in /etc/network/interface.
    - Add iniparser3.0b sources (dictionary.c, dictionary.h, iniparser.c,
      iniparser.h), to let ifupdown avoid auto-up/down of interfaces if
      network-manager's ifupdown plugin is in managed=true mode.
    - Add a new query interface, 'ifquery', that can be used by upstart
      hooks to ask for the list of possible interfaces that they might need
      to bring up.
    - debian/ifupdown.network-interface.upstart: Replace the init scripts
      with a per-interface Upstart job.
    - debian/ifupdown.networking.upstart: Add a "networking" job that
      partially replaces the networking init script from netbase.
    - debian/control: Bump build-dependency on debhelper for Upstart-aware
      dh_installinit.
    - debian/rules: Due to debhelper always adding /etc/init.d symlinks, we
      must manually remove /etc/init.d/networking for as long as netbase
      still provides it.
    - Add if-up and if-down scripts to emit Upstart events when interfaces
      come up and go down.
    - debian/ifupdown.network-interface-security.upstart: Ensure apport is
      started before interfaces are brought up by either ifupdown or
      network-manager.
    - debian/postinst: If the loopback interface is missing from the config
      in /etc/network/interfaces, add it on upgrade.
    - debian/ifupdown.preinst: Since files in /etc were not conffiles in
      lucid, and /etc/network/if-up.d/upstart and
      /etc/init/network-interface.conf changed between lucid final and
      maverick, add extra handling to avoid spurious conffile prompts.
    - invoke dhclient3 with '-1', meaning it should exit failure if it does
      not receive a response in 60 seconds. (LP: #838968)
    - contrib/ifstate-check: Use /run/ntework/ifstate instead of
      /etc/network/run/ifstate
    - ifup.8: Update man page to indicate that Ubuntu uses /run
      and that it's always writable as it's a temporary filesystem
  * ifupdown.nw: When calling dhclient3, also use /var/lib/dhcp as
    dhclient3 is now a symlink to dhclient and /var/lib/dhcp3 no longer
    exists. (LP: #900234)
  * Mark ifupdown as Multi-Arch foreign
  * Replace remaining references to /var/run/network by /run/network
    (LP: #885506)

ifupdown (0.7~beta2) experimental; urgency=low

  * Put interfaces down in the reverse order than they were
    brought up (Closes: #477650).
  * Fix postinst issues with loopback interface naming
    (Closes: #572396, #545250).
  * Remove old .dpkg-old symlink (Closes: #639612).
  * Document some details on processing /etc/network/if-*.d directories.
  * Terminate ifup if it's still running when doing ifdown.
  * Finally migrate to /run/network.
  * Use FHS names for wvdial pid files (Closes: #255222).
  * Stop on run-parts failure (Closes: #547587).
  * Execute scripts before interface options on *...

Read more...

Changed in ifupdown (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Arnaud FLORENT (aflorent) wrote :

there is still a problem when using ifdown with version 0.7~beta2ubuntu1

as dhclient3 is now a symlink to dhclient
it is called with /var/lib/dhcp3 path for the lease file

cf ifupdown.nw

down
    dhclient3 -r -pf /var/run/dhclient.%iface%.pid -lf /var/lib/dhcp3/dhclient.%iface%.leases %iface% \
        if (execable("/sbin/dhclient3"))
    dhclient -v -r -pf /var/run/dhclient.%iface%.pid -lf /var/lib/dhcp/dhclient.%iface%.leases %iface% \
        elsif (execable("/sbin/dhclient"))

Revision history for this message
Stéphane Graber (stgraber) wrote :

Oops, I thought I caught them all, apparently not.

I fixed that in my local copy and it'll be part of the next upload.

Thanks for spotting it.

Changed in ifupdown (Ubuntu):
status: Fix Released → Triaged
importance: Undecided → High
assignee: nobody → Stéphane Graber (stgraber)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ifupdown - 0.7~beta2ubuntu2

---------------
ifupdown (0.7~beta2ubuntu2) precise; urgency=low

  * Make sure we always call dhclient(3) with /var/lib/dhcp instead of
    /var/lib/dhcp3 (needed as dhclient3 is now a symlink to dhclient).
    (LP: #900234)
  * Fix typo in previous changelog entry (LP: #916263)
  * Automatically convert network-interface-security.conf to a conffile
    (LP: #917185)
 -- Stephane Graber <email address hidden> Mon, 16 Jan 2012 17:54:26 -0500

Changed in ifupdown (Ubuntu):
status: Triaged → Fix Released
Changed in isc-dhcp (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.