ntp-keygen documentation lists options that ntp-keygen does not support

Bug #913857 reported by Max Brustkern
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ntp (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I'm running precise amd64, but the problem appears to exist on oneiric i386 and amd64 as well. Natty and older versions support a -p option in ntp-keygen, i.e.
ntp-keygen -p test
Oneiric and precise do not support this, but the man page has not been updated, and the referenced documentation at /usr/share/doc/ntp-doc/html/keygen.html (in the ntp-doc package) mentions the -p option as well.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: ntp 1:4.2.6.p3+dfsg-1ubuntu2
ProcVersionSignature: Ubuntu 3.2.0-8.14-generic 3.2.0
Uname: Linux 3.2.0-8-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 1.90-0ubuntu1
Architecture: amd64
Date: Mon Jan 9 10:54:45 2012
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
NtpStatus: ntpq: read: Connection refused
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: ntp
UpgradeStatus: Upgraded to precise on 2012-01-09 (0 days ago)

Revision history for this message
Max Brustkern (nuclearbob) wrote :
tags: added: manpage
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ntp (Ubuntu):
status: New → Confirmed
tags: removed: apparmor
Revision history for this message
Alec Warner (antarus) wrote :

man ntp-wait also lists the '-f' flag, which is not a real flag (same source package I believe.) Let me know if you want a separate bug for it.
antarus@host$ man ntp-wait
NTPQ(8) NTPQ(8)

NAME
       ntp-wait - wait for NTP server to synchronize

SYNOPSIS
       ntp-wait [ -f ] [ -n tries ] [ -s sleep ] [ -v ]

DESCRIPTION
       ntp-wait waits until the locally running ntpd is in state 4 (synchronized). This could be useful at boot time, to delay the boot
       sequence until after "ntpd -g" has set the time.

OPTIONS
       -f Force hard failure if state is unknown.
< I omitted the rest ..>

antarus@host$ ntp-wait -f -n 100 -s 3 -v
Unknown option: f
Waiting for ntpd to synchronize... OK!

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

I know it's a long time, but I'm cleaning up old NTP bugs atm.

-p works fine (?again?).
The default is the retval of gethostname, so if already things are set and you specify other it wont work.
But I had success with ntp-keygen -p $(hostname)

That said the option is there.

For ntp-wait the force is also gone from the manpage.

Setting bug to fix released to reflect that.

Changed in ntp (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.