[Bug 1873031] Re: 245.4-2ubuntu1 has broken dhcp based NTP updates
Launchpad Bug Tracker
1873031 at bugs.launchpad.net
Thu Apr 16 11:31:17 UTC 2020
This bug was fixed in the package chrony - 3.5-6ubuntu5
---------------
chrony (3.5-6ubuntu5) focal; urgency=medium
* d/t/control: harden time-sources-from-dhcp-servers test for systemd change
(LP: #1873031)
chrony (3.5-6ubuntu4) focal; urgency=medium
* debian/postrm:
- Stop starting systemd-timesyncd in postrm. This is no longer relevant
since systemd-timesyncd is a standalone package declaring
Conflicts/Replaces/Provides: time-daemon. (Closes 955773, LP: #1872183)
-- Christian Ehrhardt <christian.ehrhardt at canonical.com> Wed, 15 Apr
2020 18:23:10 +0200
** Changed in: chrony (Ubuntu)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1873031
Title:
245.4-2ubuntu1 has broken dhcp based NTP updates
Status in chrony package in Ubuntu:
Fix Released
Status in systemd package in Ubuntu:
New
Bug description:
systemd has broken this by the split of timesyncd.
On a system that installed chrony (or other NTP servers) you'll have:
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=================-==============-============-===============================================================
ii chrony 3.5-6ubuntu3 amd64 Versatile implementation of the Network Time Protocol
rc systemd-timesyncd 245.4-4ubuntu1 amd64 minimalistic service to synchronize local time with NTP servers
That left this behind:
/etc/dhcp/dhclient-exit-hooks.d/timesyncd
And if you now run a dhcp based time server push it will fail very
badly.
P.S. This is triggered by the chrony autopkgtests but not an issue in chrony yet it is in systemd.
But due to that one can use [1] as easy reproducer, I wonder how systemd slipped by this issue in autopkgtest?
It contains:
systemctl try-restart systemd-timesyncd.service || true
Which in the setup the system now has will trigger:
sudo dhclient dummy0
Failed to try-restart systemd-timesyncd.service: Unit systemd-timesyncd.service is masked.
P.S. I'll harden the chrony test to not stumble over this but it
should be revisited for systemd to provide a better fix than causing
this message every time (maybe pre-check if it is enabled and
unmasked)?
[1]: https://git.launchpad.net/ubuntu/+source/chrony/tree/debian/tests
/time-sources-from-dhcp-servers?h=ubuntu/focal-devel
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/chrony/+bug/1873031/+subscriptions
More information about the foundations-bugs
mailing list