Bug 961047

Summary: chronyd.service should not pull in chrony-wait.service via Wants=. This adds a 20s delay to the boot!
Product: [Fedora] Fedora Reporter: Lennart Poettering <lpoetter>
Component: chronyAssignee: Miroslav Lichvar <mlichvar>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: bugzilla, ignatenko, mlichvar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: chrony-1.27-3.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-15 17:28:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 963210    

Description Lennart Poettering 2013-05-08 15:43:23 UTC
Currently chronyd.service pulls in chronyd.service via Wants=. That's a pretty bad idea, since on my machine this delays boot-up for 20s! (Try "systemd-analyze blame" and "systemd-analyze critical-chain" to check). This is not OK, especially since almost nobody needs this at all... cronie certainly doesn't, since its even granularity is 1min anyway, so the hw RTC should be totally enough to schedule time events shortly after boot.

Shipping chrony-wait.service is certainly a good idea, but it should not be enabled by default. (In fact, currently by usage of Wants= it cannot even turned off by the admin except via masking) So, please remove the "Wants=chrony-wait.service" line from chronyd.service. (Also, while you are at it, please drop the After=syslog.target, too. syslog.target is redundant these days, syslog is available anyway for all normal services).

Please make sure to include both chronyd.service and chrony-wait.service in the systemd macro lines in the rpm spec, so that both are enabled based on the preset logic. Since "chronyd.service" is listed in the fedora preset file it will be enabled on all new installations this way. And since "chrony-wait.service" is not listed there, it won't. However, if an admin decides that he wants to enable chrony-wait.service globally on all his systems he can drop-in a additional preset file that also enables "chrony-wait.service".

Comment 1 Miroslav Lichvar 2013-05-09 10:14:58 UTC
The Wants dependency is now removed in chrony-1.27-3.fc19. Thanks for the report.

Comment 2 Fedora Update System 2013-05-09 10:28:12 UTC
chrony-1.27-3.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/chrony-1.27-3.fc19

Comment 3 Lennart Poettering 2013-05-09 12:51:35 UTC
Thank you for the quick response!

Comment 4 Fedora Update System 2013-05-09 17:54:50 UTC
Package chrony-1.27-3.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing chrony-1.27-3.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-7744/chrony-1.27-3.fc19
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-05-15 17:28:15 UTC
chrony-1.27-3.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Chris Murphy 2013-05-16 23:04:13 UTC
*** Bug 963976 has been marked as a duplicate of this bug. ***