Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • NetworkManager NetworkManager
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 233
    • Issues 233
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 24
    • Merge requests 24
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Admin message

Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.

  • NetworkManagerNetworkManager
  • NetworkManagerNetworkManager
  • Issues
  • #1147

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

Edited Nov 28, 2022 by niemimak
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking