Files left behind on upgrade from Maverick

Bug #745008 reported by Scott Kitterman
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
isc-dhcp (Ubuntu)
Won't Fix
Medium
Unassigned
samba (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Preparing to replace dhcp3-client 3.1.3-2ubuntu6 (using .../dhcp3-client_4.1.1-P1-15ubuntu5_all.deb) ...^M
Unpacking replacement dhcp3-client ...^M
dpkg: warning: unable to delete old directory '/var/lib/dhcp3': Directory not empty^M
dpkg: warning: unable to delete old directory '/etc/dhcp3/dhclient-enter-hooks.d': Directory not empty^M

I'm not using dhcp on this box, so no idea if functional configuration changes are handled correctly, but the package upgrade should clean up after itself.

Tags: iso-testing
tags: added: iso-testing
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Confirming, I can at least see that samba-common seems to be installing files in /etc/dhcp3/dhclient-enter-hooks.d. Since it's the most likely cause of this upgrade failure, let's start with that.

mtrudel@demeter ~ % ls -l /etc/dhcp3/dhclient-enter-hooks.d
total 4,0K
-rwxr-xr-x 1 root root 1,7K 2011-03-10 15:46 samba
mtrudel@demeter ~ % dpkg -S /etc/dhcp3/dhclient-enter-hooks.d
samba-common: /etc/dhcp3/dhclient-enter-hooks.d

Changed in isc-dhcp (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Changed in isc-dhcp (Ubuntu):
status: Confirmed → In Progress
assignee: nobody → Mathieu Trudel-Lapierre (mathieu-tl)
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

There's some validity in having /var/lib/dhcp3 files still exist: we don't remove the old leases unless the user specifically removes the transitional dhcp3-client packages. That seems to be a decision that was made in Debian, and I think it makes some sense -- later, upgrades from 11.04 should probably remove these files. I'm removing the assignment for now and setting this back to Triaged because it needs to be brought up to the Debian maintainers of isc-dhcp.

Much of the same goes for samba: seems like the enter/exit scripts were created in /etc/dhcp/dhclient-*-scripts.d as symlinks to the same scripts in /etc/dhcp3; and changing this would need to be done in Debian.

Changed in isc-dhcp (Ubuntu):
status: In Progress → Triaged
assignee: Mathieu Trudel-Lapierre (mathieu-tl) → nobody
Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Seems the symlinks in Samba were done on purpose for upgrade compatibility, since samba doesn't depend on the installed DHCP client and can't know which is the correct directory to put the hooks in. At a later point in Debian samba should drop that symlink.

Changed in samba (Ubuntu):
status: New → Invalid
Revision history for this message
Stéphane Graber (stgraber) wrote :

Some packages still ship hooks in both locations so it's not totally surprising that the directory still exists on removal and isn't really a problem.

As for /var/lib, as Mathieu stated earlier, lease files will still be in there so removing these would be wrong. Unfortunately, migrating them is also tricky to do, so it's best to keep them around and let the admin deal with them if wanted.

Changed in isc-dhcp (Ubuntu):
status: Triaged → Won't Fix
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.