dhclient invoked with wrong leases path, because dhclient3 exists as symlink

Bug #840947 reported by Daniel Hahler
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
ifupdown (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I am getting the following error in syslog:
  dhclient: can't create /var/lib/dhcp3/dhclient.eth0.leases: No such file or directory

ifupdown (invoked by ifup) appears to use a wrong leases path:
  dhclient3 -e IF_METRIC=100 -pf /var/run/dhclient.eth0.pid -lf /var/lib/dhcp3/dhclient.eth0.leases eth0

From looking at the ifupdown package, it appears to come from ifupdown.nw:
  up
      [[ifconfig %iface% hw %hwaddress%]]
      dhclient3 [[-e IF_METRIC=%metric%]] -pf /var/run/dhclient.%iface%.pid -lf /var/lib/dhcp3/dhclient.%iface%.leases %iface% \
          if (execable("/sbin/dhclient3"))
      dhclient [[-e IF_METRIC=%metric%]] -v -pf /var/run/dhclient.%iface%.pid -lf /var/lib/dhcp/dhclient.%iface%.leases %iface% \
          elsif (execable("/sbin/dhclient"))

% ll /sbin/dhclient*
-rwxr-xr-x 1 root root 495K 2011-08-11 17:50 /sbin/dhclient*
lrwxrwxrwx 1 root root 8 2011-08-15 19:11 /sbin/dhclient3 -> dhclient*

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: ifupdown 0.6.10ubuntu4
ProcVersionSignature: Ubuntu 3.0.0-10.16-generic-pae 3.0.4
Uname: Linux 3.0.0-10-generic-pae i686
Architecture: i386
Date: Sun Sep 4 14:07:10 2011
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/usr/bin/zsh
SourcePackage: ifupdown
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Daniel Hahler (blueyed) wrote :
Changed in ifupdown (Ubuntu):
status: New → Confirmed
Revision history for this message
Kenyon Ralph (kralph) wrote :

Seems to me that the solution is to remove the /sbin/dhclient3 -> /sbin/dhclient symlink. This is what I have done to fix this bug on my natty system. I see no reason to have a dhclient3 symlink when you're not actually running version 3. So perhaps this bug should be reassigned to the isc-dhcp-client package, but then it would be a duplicate of Bug #768171.

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.