Bug 1057236
| Summary: | "-u ntp:ntp" in ntpd.service file breaks ipa-client-install | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Marius Vollmer <mvollmer> |
| Component: | freeipa | Assignee: | Rob Crittenden <rcritten> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 20 | CC: | abokovoy, mkosek, mlichvar, pertusus, pviktori, rcritten, ssorce |
| 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: | 2014-01-23 18:02:18 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: | |||
There was a patch in ntp allowing two -u option and it was recently removed https://bugzilla.redhat.com/show_bug.cgi?id=639101#c13 This looks similar to bug #1049322. (In reply to Miroslav Lichvar from comment #1) > There was a patch in ntp allowing two -u option and it was recently removed > > https://bugzilla.redhat.com/show_bug.cgi?id=639101#c13 > > This looks similar to bug #1049322. Yes, exactly the same. Sorry for the noise. *** This bug has been marked as a duplicate of bug 1049322 *** |
Description of problem: Running ipa-client-install creates a /etc/sysconfig/ntpd file that causes "systemctl start ntpd.service" to fail. Both /etc/sysconfig/ntpd and ntpd.service add a "-u" option to the ntpd invocation, but the daemon tolerates only one. This could be fixed in either FreeIPA or ntp, but I have a hunch that a change in ntp broke this, so I start here. Version-Release number of selected component (if applicable): ntp-4.2.6p5-18.fc20.x86_64 freeipa-client-3.3.3-2.fc20.x86_64 How reproducible: Always Steps to Reproduce: [ I don't think you need to actually do this. See below. ] 0. Setup FreeIPA 1. Join a client to it with realmd. Actual results: Realmd runs /usr/sbin/ipa-client-install --domain cockpit.lan --realm COCKPIT.LAN --mkhomedir --enable-dns-updates --unattended --force-join --principal admin -W --force-ntpd This in turn modifies /etc/sysconfig/ntpd like this: # Drop root to id 'ntp:ntp' by default. OPTIONS="-x -u ntp:ntp -p /var/run/ntpd.pid" # Set to 'yes' to sync hw clock after successful ntpdate SYNC_HWCLOCK=yes # Additional options for ntpdate NTPDATE_OPTIONS="" and then executes "systemctl restart ntpd.service". This results in: ntpd error: only one user option allowed ntpd - NTP daemon program - Ver. 4.2.6p5 Usage: ntpd [ -<flag> [<val>] | --<name>[{=| }<val>] ]... Try 'ntpd --help' for more information. exit 1 because ntpd.service has this in it: EnvironmentFile=-/etc/sysconfig/ntpd ExecStart=/usr/sbin/ntpd -u ntp:ntp $OPTIONS Thus, the final ntpd command line is /usr/sbin/ntpd -u ntp:ntp -x -u ntp:ntp -p /var/run/ntpd.pid And ntpd fails as shown.