Bug 1279760 - Gnome System Settings does not sync date/time with ntpd (only chrony)
Summary: Gnome System Settings does not sync date/time with ntpd (only chrony)
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: timedatex
Version: 23
Hardware: Unspecified
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Miroslav Lichvar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-11-10 08:55 UTC by Antonin
Modified: 2015-11-10 12:56 UTC (History)
8 users (show)

Fixed In Version: timedatex-0.4-1.fc24
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-10 12:56:42 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Antonin 2015-11-10 08:55:25 UTC
Description of problem:

I have Fedora Workstation 23 with ntp package installed.
Fedora in base installation also include chrony package.
So I have 2 ntp packages.

I am not able to set preferred ntp client (chronyd vs. ntpd).
When I do "timedatectl set-ntp true"
or turn on NTP sync via
Gnome System Settings/Date and Time/Synchronize date and time over the network,
it is always used chronyd.

I can change the order by renumbering files in /lib/systemd/ntp-units.d :
50-chronyd.list
60-ntpd.list

But /lib/systemd directory should not be used for user configuration.
User configuration files are placed to /etc/systemd .
With this rule I am not able to set ntpd as preferred NTP client.


Steps to Reproduce:

1. dnf install ntp
2. timedatectl set-ntp false
3. timedatectl set-ntp true
4. systemctl status chronyd
5. systemctl status ntpd


Actual results:

chronyd.service is enabled and running
ntpd.service is disabled and stopped


Expected results:

chronyd.service is disabled and stopped
ntpd.service is enabled and running

Comment 1 Michal Sekletar 2015-11-10 09:12:23 UTC
In Fedora we don't use systemd-timedated for controlling NTP setting. There is an drop-in replacement called timedatex which still supports configuring alternative NTP implementations. Reassigning.

Comment 2 Miroslav Lichvar 2015-11-10 10:17:27 UTC
timedatex reads the unit names also from /etc/systemd/ntp-units.d. Unfortunately, duplicating an entry to increase the priority of a service doesn't work with the current code. The service will be started, but then it will be stopped immediately as the other entry of the service with lower priority is disabled.

I'll look into that.

As a workaround you can uninstall the chrony package.

Comment 3 Antonin 2015-11-10 10:45:54 UTC
After my Fedora Workstation 23 installation there is a lot of dependencies for chrony package.
Removing is not possible.

Comment 4 Miroslav Lichvar 2015-11-10 10:59:15 UTC
Hm, which packages depend on chrony? "repoquery --whatrequires chrony" on F23 prints an empty list for me.

Comment 5 Antonin 2015-11-10 11:32:46 UTC
Now I am away from my pc. But I remember after "dnf remove chrony" there was a long list to remove - about 25 items, include anaconda-core, some python's, etc...

Comment 6 Miroslav Lichvar 2015-11-10 12:56:42 UTC
Anaconda, initial-setup and revisor can be probably removed if you don't want to create Fedora images, etc.

Anyway, the issue with timedatex disabling ntpd when it's listed multiple times in the ntp-units.d directories should be now fixed in timedatex-0.4. You can copy /lib/systemd/ntp-units.d/60-ntpd.list to /etc/systemd/ntp-units.d/30-ntpd.list for instance.


Note You need to log in before you can comment on or make changes to this bug.