NetworkManager does not dispatch "dhcp4-change" actions

Asked by butcherbirdie

Until now we have used a NetworkManager-dispatcher script to trigger changes upon dhcp4-change:s. However it seems that on Ubuntu 22.04 NetworkManager (1.36.6-0ubuntu2) does not dispatch the action to the NetworkManager-dispatcher. Our script in dispatcher.d is looking for actions related to "dhcp4-change".

Currently the only way to trigger dhcp4-change on Ubuntu 22.04 is to restart NetworkManager which causes the following actions to take place:
connectivity-change, hostname, dhcp4-change, up, connectivity-change

On 20.04 NetworkManager (1.22.10-1ubuntu2.3) restart initiates the following actions:
hostname, connectivity-change, up, connectivity-change

According to the syslog on Ubuntu 22.04 dhcp4 leases are accepted but no message of the dispatch of the action is recorded. On Ubuntu 20.04 the dispatch is recorded as follows:
Nov 22 07:12:34 hostname NetworkManager[1243143]: <debug> [1669093954.3561] dispatcher: (19) (enp3s0) dispatching action 'dhcp4-change'

By monitoring dbus org.freedesktop.nm_dispatcher there are no actions with string "dhcp4-change" unless NetworkManager is restarted.

The problematic Ubuntu 22.04 details:
kernel: 5.15.0-53-generic
network-manager: 1.36.6-0ubuntu2

Question information

Revision history for this message
butcherbirdie (butcherbirdie) said (last edit ):
#1

Can you help with this problem?

Provide an answer of your own, or ask butcherbirdie for more information if necessary.

To post a message you must log in.