NetworkManager fails to trigger dispatcher scripts with action dhcp4-change when dhcp lease is renewed
Based on my testing it seems that NetworkManager dispatcher scripts are only triggered with action 'dhcp4-change' when NetworkManager.service is restarted or ethernet cable unplugged and replugged. Unlike with older versions of Networkmanager, action 'dhcp4-change' does not occur anymore when dhcp lease is renewed.
This is the script I'm using to log the actions the dispatcher script receives; /etc/NetworkManager/dispatcher.d/99-test:
#!/bin/bash PATH='/bin:/sbin:/usr/bin:/usr/sbin' echo $(date) 0: $0 IFACE: $1 ACTION: $2 >> /tmp/nm.log
I have tested this with NetworkManager version 1.36.6-0ubuntu2 in Ubuntu 22.04 and version 1.40.4-1 in Debian testing/unstable.
I have also reported the issue in Ubuntu: https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1997553