network-manager fails to trigger dispatcher scripts with action dhcp4-change when dhcp lease is renewed

Bug #1997553 reported by Sami Niemimäki
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fix Released
network-manager (Ubuntu)

Bug Description

We rely on network-manager dispatcher scripts on our desktop and laptop computers. The dispatcher scripts are used to update DNS records with nsupdate when the dhcp lease is renewed.

With jammy this is not working anymore. It seems that dispatcher scripts are run only when the interface comes up (with action 'up') and with the initial dhcp lease (with action 'dhcp4-change'), but when the lease is renewed, the dispatcher scripts are not run with any action. The only action the dispatcher scripts are run regularly with is 'connectivity-change', which seems to occur twice in a row every few hours.

I have made a simple script to log how the dispatcher scripts are run:

echo $(date) 0: $0 IFACE: $1 ACTION: $2 >> /tmp/nm.log

This script proves that action 'dhcp4-change' only occurs when I manually restart NetworkManager.service or unplug and replug the ethernet cable.

network-manager version: 1.36.6-0ubuntu2

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in network-manager (Ubuntu):
status: New → Confirmed
description: updated
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, could you report it upstream on ?

Revision history for this message
Sami Niemimäki (niemimsa) wrote :

OK. I'll report this upstream.

Revision history for this message
Sebastien Bacher (seb128) wrote :
Changed in network-manager (Ubuntu):
importance: Undecided → Low
status: Confirmed → Triaged
Changed in network-manager:
status: Unknown → New
Changed in network-manager:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.