[Bug 461205] New: ntpdate -q is broken
https://bugzilla.novell.com/show_bug.cgi?id=461205 Summary: ntpdate -q is broken Product: openSUSE 11.1 Version: Final Platform: x86-64 OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: bart.vanassche@gmail.com QAContact: qa@suse.de Found By: Community User Since openSUSE 11.1, ntpdate prints a message that ntpdate should no longer be used and that ntpd should be used instead. This is correct for the functionality of setting the system clock, but not correct for the functionality of querying the system clock. ntpdate -q is a convenient tool for querying the time difference between the local clock and a remote clock. While ntpdate -q worked fine with openSUSE 11.0, it doesn't work anymore in openSUSE 11.1. An example: $ /usr/sbin/ntpdate -q ntp.belnet.be !!!!!!!!!!!!!! WARNING !!!!!!!!!!!!!!!!!! The ntpdate program is deprecated and should not be used any more. To quote the upstream ntp developers: "The functionality ntpdate offered is now provided by the ntpd daemon itself. If you call ntpd with the command line option -q it will retrieve the current time and set it accordingly." Please check the Network Time Protocol (NTP) daemon man page and http://support.ntp.org/bin/view/Dev/DeprecatingNtpdate for further information. You can replace the ntpdate call with "rcntp ntptimeset" to achieve an inital poll of the servers specified in /etc/ntp.conf. The program /usr/sbin/sntp offers comparable functionality to ntpdate. Specifically sntp -P no -r pool.ntp.org is equivalent to ntpdate pool.ntp.org For further details please refer to the man page of sntp. sntp: unable to write PID to /etc/sntp.pid sntp: Permission denied -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=461205 Marcus Meissner <meissner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.provo.novell.com |varkoly@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=461205 User varkoly@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=461205#c1 Peter Varkoly <varkoly@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #1 from Peter Varkoly <varkoly@novell.com> 2008-12-20 14:28:31 MST --- sntp provides what you need. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=461205 User bart.vanassche@gmail.com added comment https://bugzilla.novell.com/show_bug.cgi?id=461205#c2 --- Comment #2 from Bart Van Assche <bart.vanassche@gmail.com> 2008-12-21 08:01:04 MST --- Please keep in mind that the behavior change in ntpdate is an incompatible one, and will break scripts that rely on ntpdate. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=461205 User Ori_Tzoran@bmc.com added comment https://bugzilla.novell.com/show_bug.cgi?id=461205#c3 Ori Tzoran <Ori_Tzoran@bmc.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|RESOLVED |REOPENED CC| |Ori_Tzoran@bmc.com Resolution|WONTFIX | --- Comment #3 from Ori Tzoran <Ori_Tzoran@bmc.com> 2009-03-10 06:35:05 MST --- hello Peter, it would be very nice, and useful, if you could provide a working example of making 'sntp' output the equivalent of 'ntpdate -q hoho.dodo.coco' cause i tried, read 4 times the awful manpage and didn't make it. other than that, the script replacing ntpdate in 11.1 [signed by Novell AG] isn't a suitable substitute for ntpdate. It's in no way the equivalent of openSuSE 11.0 [or prev] ntpdate(1) and the solution given is not at all in the UNIX spirit. 1. the 'deprecated' message goes to stdout. that's an utterly strange behavior. if that were the only effect, it may have been forgiveable. 2. but it also has some code calling sntp.it makes the strange assumption you try to use ntpdate to sync against the host [arg2] and that the switch [arg1, whatever it may be] is simply ignored [shifted]. thanx Ori -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=461205 User varkoly@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=461205#c4 Peter Varkoly <varkoly@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |CLOSED Resolution| |INVALID --- Comment #4 from Peter Varkoly <varkoly@novell.com> 2009-03-11 04:26:06 MST --- 1. 'sntp hoho.dodo.coco' = 'ntpdate -q hoho.dodo.coco' 2. My target with ntpdate-script was to get the attention of the users that there is no ntpdate programm any more. That succeeded to me :-) 3. I'm the maintainer not the developer of this packege and it was not my decision to drop ntpdate :-( -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
I'm the maintainer ... not my decision to drop ntpdate True, as maintainer, you are the distro's delegate for watching this package. As such, you're in position to say "we cannot yet drop ntpdate because the functionality of sntp isn't satisfactory". I guess that by now you say "hey, but it is..."; i say no, hope you have
https://bugzilla.novell.com/show_bug.cgi?id=461205 User Ori_Tzoran@bmc.com added comment https://bugzilla.novell.com/show_bug.cgi?id=461205#c5 Ori Tzoran <Ori_Tzoran@bmc.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |REOPENED Platform|x86-64 |All Resolution|INVALID | --- Comment #5 from Ori Tzoran <Ori_Tzoran@bmc.com> 2009-03-12 03:46:53 MST --- hello Peter, i apologize in advance for insisting. pls refer to sntp vs ntpdate output on the bottom. patience to listen. Timekeeping is a fundamental service in production environments and NTP is its natural provider. But NTP, as a project, set of utilities and doc collection is still beyond the reach of many, simply because it's doc is rotten [see bug 483897]. Here's another example from sntp manpage for the -q option: <i>indicates that it should query a daemon save file being maintained by it.</i> i read and reread this phrase. is the term "save file" explained somewhere? no. let alone the repeated 'it'. Even worse, the explanation of sntp's output isn't clear at all. Look at the paragraph starting with "The default is to write the estimated...". Example output '+ 4.567 +/- 0.089 secs' ...". Nowhere does it explain what's the ACTUAL offset! what are those 2 figures? One might guess that offset follows the '+' [e.g. 4.567] and the figure after '+/-' is deviation? [0.089]. But if you look at the outputs below, you'll see that the "offset" on my systems is smaller than this supposed deviation. ntpdate, ntpd and ntpq expressed offsets and delays in msec. sntp breaks from this. why? Last, but not least. i had a problem with timkeeping on vmware. ntpdate was the main tool used to investigate and monitor this issue [that's the reason it was my first finding after installing 11.1]. compare outputs below for the target 'thi-dc-01'; it works flawlessly with ntpdate, sntp fails with a strange and unexpected output. This is unacceptable for a utility you use in a script, where the output is redirected for further processing. = Output = == 11.0 ntpdate == [10:54:06]otzoran@thilnx027[~] $ cat /etc/SuSE-release openSUSE 11.0 (X86-64) VERSION = 11.0 [10:54:15]otzoran@thilnx027[~] $ ntpdate -q 0.vmware.pool.ntp.org server 212.235.102.46, stratum 2, offset -0.000636, delay 0.03609 12 Mar 10:54:26 ntpdate[31739]: adjust time server 212.235.102.46 offset -0.000636 sec [10:54:26]otzoran@thilnx027[~] $ ntpdate -q thi-dc-01 server 137.72.217.10, stratum 3, offset -0.044199, delay 0.04146 12 Mar 10:54:37 ntpdate[31743]: adjust time server 137.72.217.10 offset -0.044199 sec == 11.1 sntp == [10:57:45]otzoran@thi-esx-0360[~] $ cat /etc/SuSE-release openSUSE 11.1 (i586) VERSION = 11.1 [10:57:53]otzoran@thi-esx-0360[~] $ /usr/sbin/sntp 0.vmware.pool.ntp.org 2009 Mar 12 10:58:03.000361 - 0.003831 +/- 0.063270 secs [10:58:03]otzoran@thi-esx-0360[~] $ /usr/sbin/sntp thi-dc-01 sntp: unable to format current local time sntp: Success -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com