[Bug 1578663] Update Released
martin.pitt at ubuntu.com
Mon May 23 06:58:55 UTC 2016
The verification of the Stable Release Update for systemd has completed
successfully and the package has now been released to -updates.
Subsequently, the Ubuntu Stable Release Updates Team is being
unsubscribed and will not receive messages about this bug report. In
the event that you encounter a regression using the package from
-updates please report a new bug using ubuntu-bug and tag the bug report
regression-update so we can easily find any regressions.
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
create DHCP exit hook for setting NTP servers through dhclient
Status in systemd package in Ubuntu:
Status in systemd source package in Xenial:
Status in systemd source package in Yakkety:
Similar to /etc/dhcp/dhclient-exit-hooks.d/ntpdate, we should ship a
DHCP exit hook for timesyncd to update the timesyncd configuration in
/run/systemd/timesyncd.conf.d/01-dhclient.conf to set the picked up
NTP servers, and restart timesyncd.
Rationale: This is a regression compared to trusty where we used ntpdate; /etc/dhcp/dhclient-exit-hooks.d/ntpdate ran ntpdate on the new NTP servers. This causes timesyncd to always try and talk to the disto configured server (ntp.ubuntu.com) which might be disallowed by firewall rules or other networking policy. Thus machines in such an environment never get a correct time sync even when they get a local NTP server advertised over DHCP (unless they use systemd-networkd, which is not done by default in Xenial).
- Set up a DHCP server that includes NTP information. For example, you can set LXC_DHCP_CONFILE=/etc/lxc/dnsmasq.conf in /etc/default/lxc-net, and create /etc/lxc/dnsmasq.conf with "dhcp-option=option:ntp-server,220.127.116.11", restart lxc-net, and then run QEMU on lxcbr0 instead of the builtin network.
- In the client machine, disconnect and reconnect the network (e. g. "sudo ifdown ens3; sudo ifup ens3").
- Check in "systemctl status systemd-timesyncd" that timesyncd tries to sync with the given NTP server (for the bogus 18.104.22.168 it will fail, but the point is that it did try).
Regression potential: A broken dhclient-exit-hooks.d has the potential
to break subsequent hooks. dhclient-scripts runs the hooks without
"set -e", but syntax errors can still cause damage. Thus it should be
verified that later hooks (e. g. /etc/dhcp/dhclient-exit-hooks.d
/zzz_avahi-autoipd) still run. Beyond that there is little potential
for regression as
To manage notifications about this bug go to:
More information about the foundations-bugs