ddclient installations breaks dhclient hooks
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ddclient (Debian) |
Fix Released
|
Unknown
|
|||
ddclient (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
It seems that this is a variation of this same bug:
https:/
Deployed a new Ubuntu 16.04 LTS image on Microsoft Azure:
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
NAME="Ubuntu"
VERSION="16.04.1 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.1 LTS"
VERSION_ID="16.04"
HOME_URL="http://
SUPPORT_URL="http://
BUG_REPORT_URL="http://
VERSION_
UBUNTU_
Kernel:
4.4.0-62-generic
Installed ddclient:
3.8.2-2ubuntu2
After ddclient is installed and running, you can see its exit-hook script under /etc/dhcp/
#!/bin/sh
# /etc/dhcp/
[ -x /usr/sbin/ddclient ] || exit 0
[ -f /etc/default/
. /etc/default/
[ $run_dhclient = "true" ] || exit 0
case $reason in
BOUND | RENEW | REBIND)
;;
*)
;;
esac
If you reboot , the VM won't come back again with issues getting route/gateway info from DHCP server.
It seems like, changing the script to the one below, fixes the issue:
#!/bin/sh
# /etc/dhcp/
[ -x /usr/sbin/ddclient ] || return
[ -f /etc/default/
. /etc/default/
[ $run_dhclient = "true" ] || return
case $reason in
BOUND | RENEW | REBIND)
;;
*)
;;
esac
Somehow the reported version on Debian to have a fix is 3.8.2-2 (which is the same) but maybe the patch didn't get through?
Thank you!
Changed in ddclient (Ubuntu): | |
status: | Confirmed → Fix Released |
summary: |
- ddclient installations brakes dhclient hooks + ddclient installations breaks dhclient hooks |
Changed in ddclient (Debian): | |
status: | Unknown → Fix Released |
I've seen the same problem on my system. Calling exit from a dhclient hook causes dhclient to stop processing the other hooks in the directory.