Bug 55032 - preup script should check for /etc/init.d/isc-dhcp-server.debian.dpkg-dist
preup script should check for /etc/init.d/isc-dhcp-server.debian.dpkg-dist
Status: NEW
Product: UCS
Classification: Unclassified
Component: Update - Release updates
UCS 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS maintainers
UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2022-07-26 13:27 CEST by Dirk Schnick
Modified: 2022-08-26 18:01 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.034
Enterprise Customer affected?: Yes
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2022072621000288
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Schnick univentionstaff 2022-07-26 13:27:45 CEST
On old systems the file could exist and will break the change to systemd. The dhcp will not start after update. Simply remove the file should work, at least the preup script should mention that.
Comment 1 Philipp Hahn univentionstaff 2022-07-28 09:27:52 CEST
Please provide an exact error message, e.g.
- systemctl status
- journalctl
- /var/log/apt/term.log
- ...
as /etc/init.d/isc-dhcp-server.debian.dpkg-dist is caused by our `dpkg-divert` but should not cause any error.
Comment 2 Markus Dählmann 2022-07-28 18:13:03 CEST
The upgrade to UCS 5 relies on /etc/init.d/isc-dhcp-server being reverted to its vendor-supplied state for the DHCP service to work after the upgrade.
In our infrastructure, this works on systems where "/etc/init.d/isc-dhcp-server.debian" exists before upgrading, but not on systems where dpkg only left an "/etc/init.d/isc-dhcp-server.debian.dpkg-dist", leaving us with a non-functional DHCP service because the init script is still the "empty" UCS 4 one.

I see that the postinst script for univention-dhcp has a dedicated function "undo_divert" to deal with such situations, but for some reason it doesn't work for us.

Manually renaming isc-dhcp-server.debian.dpkg-dist to isc-dhcp-server.debian makes sure that DHCP still works after upgrading.