Missing /var/lib/dhcp3 directory

Bug #910108 reported by Cosmin L
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
isc-dhcp (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

In a clean Ubuntu 11.10 server install, dhclient3 is run with a configuration parameter that instructs it to write lease files in the "/var/lib/dhcp3". That directory is missing in the install, thus no lease file is written.

# ps ax | grep dhclient3 | grep -v grep
  665 ? Ss 0:00 dhclient3 -e IF_METRIC=100 -pf /var/run/dhclient.eth0.pid -lf /var/lib/dhcp3/dhclient.eth0.leases -1 eth0

# ls -l /var/lib/ | grep dhcp
drwxr-xr-x 2 root root 4096 2011-12-30 16:24 dhcp

(no dhcp3 dir!)

# ls -l /var/lib/dhcp/
total 0
-rw-r--r-- 1 root root 0 2011-12-30 16:24 dhclient.leases

# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.10
DISTRIB_CODENAME=oneiric
DISTRIB_DESCRIPTION="Ubuntu 11.10"

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

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

Changed in isc-dhcp (Ubuntu):
status: New → Confirmed
Revision history for this message
Clark Wierda (cbwierda) wrote :

Creating the /var/lib/dhcp3 directory does fix the problem, but this needs to be fixed in the install.

What should the correct result be?
1) Create /var/lib/dhcp3
2) Change the target in the start script

Revision history for this message
Clark Wierda (cbwierda) wrote :

I hit this error with a from scratch install of Kubuntu 11.10 using the AMD64 Alternate Install CD.

Revision history for this message
Cosmin L (lcosmin) wrote :

I believe the Debian package uses /var/lib/dhcp ; maybe it should be the same in Ubuntu.

Revision history for this message
Clark Wierda (cbwierda) wrote :

You are correct and that is the answer.

I found a duplicate for this issue (Bug #900234 ).

The root cause is in the call from ifupdown and has been addressed there. I hope it makes it into Precise.

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.