[Bug 1849156] Re: systemd-timesyncd.service broken on upgrade to 19.10 if ntp was installed
Christian Ehrhardt
1849156 at bugs.launchpad.net
Mon Apr 6 05:23:04 UTC 2020
Debian MP is merged at the end of last Week.
It is in 245.4-2 in debian/unstable since Saturday.
It is not yet in 245.2-1ubuntu3 which is the current focal-proposed.
I was working on bug 1870144 and considering to modify timesyncd there,
but seeing this change coming I'll (on the chrony side) only fix the
tests but leave this upload to systemd.
@Rbalint - please let me know if you expect this to not land in time for 20.04.
Because then I need to have chrony stopping systemd-timesyncd on install to avoid both are running concurrently.
--
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/1849156
Title:
systemd-timesyncd.service broken on upgrade to 19.10 if ntp was
installed
Status in ntp package in Ubuntu:
Confirmed
Status in systemd package in Ubuntu:
In Progress
Status in ntp source package in Eoan:
Confirmed
Status in systemd source package in Eoan:
Confirmed
Status in ntp source package in Focal:
Confirmed
Status in systemd source package in Focal:
In Progress
Bug description:
Ubuntu 19.10's systemd package introduced /lib/systemd/system/systemd-
timesyncd.service.d/disable-with-time-daemon.conf. This prevents
systemd-timesyncd.service from starting if the ntp package has been
installed. However, ntp.service has a Conflicts directive for
systemd-timesyncd.service. If both services are enabled, neither will
start on boot. This breaks upgrades from < 19.10 to 19.10 for systems
that have both ntp and systemd installed.
Possible workarounds:
- Uninstall ntp
- Disable systemd-timesyncd.service
% lsb_release -rd
Description: Ubuntu 19.10
Release: 19.10
% apt-cache policy systemd
systemd:
Installed: 242-7ubuntu3
Candidate: 242-7ubuntu3
Version table:
*** 242-7ubuntu3 500
500 http://us-east-1.ec2.archive.ubuntu.com/ubuntu eoan/main amd64 Packages
100 /var/lib/dpkg/status
% apt-cache policy ntp
ntp:
Installed: 1:4.2.8p12+dfsg-3ubuntu2
Candidate: 1:4.2.8p12+dfsg-3ubuntu2
Version table:
*** 1:4.2.8p12+dfsg-3ubuntu2 500
500 http://us-east-1.ec2.archive.ubuntu.com/ubuntu eoan/universe amd64 Packages
100 /var/lib/dpkg/status
% dpkg -S /lib/systemd/system/systemd-timesyncd.service.d/disable-with-time-daemon.conf
systemd: /lib/systemd/system/systemd-timesyncd.service.d/disable-with-time-daemon.conf
% sudo systemctl status ntp
● ntp.service - Network Time Service
Loaded: loaded (/lib/systemd/system/ntp.service; enabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man:ntpd(8)
% sudo systemctl status systemd-timesyncd.service
● systemd-timesyncd.service - Network Time Synchronization
Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled)
Drop-In: /lib/systemd/system/systemd-timesyncd.service.d
└─disable-with-time-daemon.conf
Active: inactive (dead)
Condition: start condition failed at Mon 2019-10-21 12:05:38 EDT; 29s ago
Docs: man:systemd-timesyncd.service(8)
Oct 21 12:05:38 ubuntu systemd[1]: Condition check resulted in Network
Time Synchronization being skipped.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ntp/+bug/1849156/+subscriptions
More information about the foundations-bugs
mailing list