[Bug 840947] [NEW] dhclient invoked with wrong leases path, because dhclient3 exists as symlink

Daniel Hahler launchpad at thequod.de
Sun Sep 4 12:15:12 UTC 2011


Public bug reported:

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)

** Affects: ifupdown (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386 natty running-unity

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ifupdown in Ubuntu.
https://bugs.launchpad.net/bugs/840947

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

Status in “ifupdown” package in Ubuntu:
  New

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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/840947/+subscriptions




More information about the foundations-bugs mailing list