Bug 837486

Summary: ntpdate.service needs After=nss-lookup.target
Product: [Fedora] Fedora Reporter: Jordan Russell <jr-redhatbugs2>
Component: ntpAssignee: Miroslav Lichvar <mlichvar>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: mlichvar, pertusus
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-07 20:09:00 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:

Description Jordan Russell 2012-07-04 05:24:18 UTC
Description of problem:
Currently, ntpdate.service is started before named.service during boot. When named is set up as the local DNS resolver, this causes ntpdate's first attempt to always fail with "can't find server" errors logged.

To ensure that named starts first, ntpdate.service needs:
After=nss-lookup.target

I suspect ntpd.service should include the same change (and it's missing After=network.target, too).

Version-Release number of selected component (if applicable):
ntp-4.2.6p4-1.fc16

Comment 1 Miroslav Lichvar 2012-08-07 20:09:00 UTC
Should be fixed in ntp-4.2.6p5-5.fc18. Thanks.

The ntpd service doesn't always need network or DNS (e.g. with a reference clock) and it's better to start it early so the clock frequency offset is set from the drift file.