Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1055167: Network interface lost IP when lease expired after switching from isc-dhcp-client

12 views
Skip to first unread message

Larsen

unread,
Nov 1, 2023, 10:10:06 AM11/1/23
to
Package: udhcpc
Version: 1:1.35.0-4+b3

After switching from isc-dhcp-client to udhcpc (apt purge isc-dhcp-client
udhcpc+), when the DHCP lease expired, the network interface didn't get a
new IP, pushing the server offline (luckily I had a remote console to fix
the problem). The package was installed via Puppet and I didn't notice
that this doesn't run needrestart (or at least doesn't restart services
with our configuration). I now use the workaround to "needrestart -r a"
after installing the package with Puppet.

IMHO needrestart shouldn't be needed, but instead the package should take
care of such a situation.


Lars

Geert Stappers

unread,
Nov 1, 2023, 6:00:05 PM11/1/23
to
On Wed, Nov 01, 2023 at 02:44:13PM +0100, Larsen wrote:
> ... but instead the package should take care of such a situation.

Please add logging of the install ( "apt" ) stop of isc-dhcp-client (
either journalctl or /var/log/ ) and start of udhcpc ( journalctl or log
)


Groeten
Geert Stappers
--
Silence is hard to parse

Larsen

unread,
Nov 6, 2023, 10:10:06 AM11/6/23
to
On Wed, 01 Nov 2023 22:46:56 +0100, Geert Stappers <stap...@stappers.nl>
wrote:

> Please add logging of the install ( "apt" ) stop of isc-dhcp-client (
> either journalctl or /var/log/ ) and start of udhcpc ( journalctl or log


Afaik, isc-dhcp-client and udhcpc are no services, so they cannot be
started/stopped. Also, I didn't find anything useful in /var/log (grepped
the whole directory).
This is all I get (disabled automatic run of needrestart by apt for this
test):


# apt purge isc-dhcp-client udhcpc+
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
isc-dhcp-client*
The following NEW packages will be installed:
udhcpc
0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
Need to get 6,284 B of archives.
After this operation, 2,903 kB disk space will be freed.
Do you want to continue? [Y/n] y
Get:1 https://ftp-stud.hs-esslingen.de/debian bookworm/main amd64 udhcpc
amd64 1:1.35.0-4+b3 [6,284 B]
Fetched 6,284 B in 0s (23.7 kB/s)
(Reading database ... 140514 files and directories currently installed.)
Removing isc-dhcp-client (4.4.3-P1-2) ...
Selecting previously unselected package udhcpc:amd64.
(Reading database ... 140500 files and directories currently installed.)
Preparing to unpack .../udhcpc_1%3a1.35.0-4+b3_amd64.deb ...
Unpacking udhcpc:amd64 (1:1.35.0-4+b3) ...
Setting up udhcpc:amd64 (1:1.35.0-4+b3) ...
Processing triggers for man-db (2.11.2-2) ...
(Reading database ... 140507 files and directories currently installed.)
Purging configuration files for isc-dhcp-client (4.4.3-P1-2) ...


# needrestart -r l
Scanning processes...
Scanning candidates...

Services to be restarted:
systemctl restart if...@eth0.service

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.


Best regards,
Lars
0 new messages