[Bug 479341] New: /etc/init.d/ntp ntptimeset wait time is not long enough
https://bugzilla.novell.com/show_bug.cgi?id=479341 Summary: /etc/init.d/ntp ntptimeset wait time is not long enough Classification: openSUSE 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: dave.hansen.lange@gmail.com QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b2) Gecko/20081208 SUSE/3.1b2-3.7 Firefox/3.1b2 If I run /etc/init.d/ntp ntptimeset it waits for 10 seconds before deciding that a server could not be reached. However it usually takes my system 10-15 seconds to complete the process. My solution is simply to increase the time in the script. Line 219 becomes: for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do Reproducible: Always Steps to Reproduce: 1./etc/init.d/ntp ntptimeset Actual Results: . . . . . . . . . no server reached Expected Results: . . . . . . . . . . ntpd: time set -6.292356s To aid in further debugging, the following is what I get if I run the same command with some extra debugging output: linux-6d2n:~ # ntpd -g -u ntp:ntp -c /etc/ntp.conf -qd ntpd 4.2.4p5@1.1541-o Mon Jan 19 15:17:30 UTC 2009 (1) addto_syslog: precision = 1.000 usec addto_syslog: ntp_io: estimated max descriptors: 1024, initial socket boundary: 16 addto_syslog: Listening on interface #0 wildcard, 0.0.0.0#123 Disabled addto_syslog: Listening on interface #1 wildcard, ::#123 Disabled addto_syslog: Listening on interface #2 lo, ::1#123 Enabled addto_syslog: Listening on interface #3 eth0, fe80::216:17ff:fe1c:47d6#123 Enabled addto_syslog: Listening on interface #4 lo, 127.0.0.1#123 Enabled addto_syslog: Listening on interface #5 lo, 127.0.0.2#123 Enabled addto_syslog: Listening on interface #6 eth0, 192.168.0.198#123 Enabled local_clock: time 0 offset 0.000000 freq 0.000 state 0 addto_syslog: kernel time sync status 0040 peer_crypto_clear: at 0 next 0 assoc ID 57445 key_expire: at 0 peer_clear: at 0 next 1 assoc ID 57445 refid INIT newpeer: 127.0.0.1->127.127.1.0 mode 3 vers 4 poll 6 10 flags 0x1221 0x1 ttl 0 key 00000000 addto_syslog: frequency initialized -50.951 PPM from /var/lib/ntp/drift/ntp.drift peer_crypto_clear: at 0 next 0 assoc ID 57446 key_expire: at 0 peer_clear: at 0 next 2 assoc ID 57446 refid INIT newpeer: 192.168.0.198->202.130.120.114 mode 3 vers 4 poll 6 10 flags 0x201 0x1 ttl 0 key 00000000 peer_crypto_clear: at 0 next 0 assoc ID 57447 key_expire: at 0 peer_clear: at 0 next 3 assoc ID 57447 refid INIT newpeer: 192.168.0.198->219.117.196.43 mode 3 vers 4 poll 6 10 flags 0x201 0x1 ttl 0 key 00000000 local_clock: time 0 offset 0.000000 freq -50.951 state 1 report_event: system event 'event_restart' (0x01) status 'sync_alarm, sync_unspec, 1 event, event_unspec' (0xc010) refclock_transmit: at 1 127.127.1.0 refclock_receive: at 1 127.127.1.0 peer LOCAL(0) event 'event_reach' (0x84) status 'unreach, conf, 1 event, event_reach' (0x8014) refclock_sample: n 1 offset 0.000000 disp 0.010000 jitter 0.000001 clock_filter: n 1 off 0.000000 del 0.000000 dsp 7.937500 jit 0.000001, age 0 auth_agekeys: at 1 keys 1 expired 0 timer: refresh ts 0 timer: interface update transmit: at 2 192.168.0.198->202.130.120.114 mode 3 receive: at 2 192.168.0.198<-202.130.120.114 mode 4 code 1 auth 0 peer 202.130.120.114 event 'event_reach' (0x84) status 'unreach, conf, 1 event, event_reach' (0x8014) clock_filter: n 1 off -0.000456 del 0.022638 dsp 7.937501 jit 0.000001, age 0 transmit: at 3 192.168.0.198->219.117.196.43 mode 3 receive: at 3 192.168.0.198<-219.117.196.43 mode 4 code 1 auth 0 peer 219.117.196.43 event 'event_reach' (0x84) status 'unreach, conf, 1 event, event_reach' (0x8014) clock_filter: n 1 off 0.003655 del 0.090269 dsp 7.937503 jit 0.000001, age 0 transmit: at 4 192.168.0.198->202.130.120.114 mode 3 receive: at 4 192.168.0.198<-202.130.120.114 mode 4 code 1 auth 0 clock_filter: n 2 off -0.000701 del 0.022794 dsp 3.937509 jit 0.000244, age 0 transmit: at 5 192.168.0.198->219.117.196.43 mode 3 receive: at 5 192.168.0.198<-219.117.196.43 mode 4 code 1 auth 0 clock_filter: n 2 off 0.003829 del 0.091821 dsp 3.937512 jit 0.000174, age 0 transmit: at 6 192.168.0.198->202.130.120.114 mode 3 receive: at 6 192.168.0.198<-202.130.120.114 mode 4 code 1 auth 0 clock_filter: n 3 off -0.001069 del 0.022379 dsp 1.937517 jit 0.000506, age 0 transmit: at 7 192.168.0.198->219.117.196.43 mode 3 receive: at 7 192.168.0.198<-219.117.196.43 mode 4 code 1 auth 0 clock_filter: n 3 off 0.004149 del 0.091690 dsp 1.937520 jit 0.000417, age 0 transmit: at 8 192.168.0.198->202.130.120.114 mode 3 receive: at 8 192.168.0.198<-202.130.120.114 mode 4 code 1 auth 0 clock_filter: n 4 off -0.001107 del 0.022036 dsp 0.937523 jit 0.000444, age 0 transmit: at 9 192.168.0.198->219.117.196.43 mode 3 receive: at 9 192.168.0.198<-219.117.196.43 mode 4 code 1 auth 0 clock_filter: n 4 off 0.003945 del 0.091277 dsp 0.937526 jit 0.000215, age 0 transmit: at 10 192.168.0.198->202.130.120.114 mode 3 receive: at 10 192.168.0.198<-202.130.120.114 mode 4 code 1 auth 0 clock_filter: n 5 off -0.000099 del 0.023618 dsp 0.437527 jit 0.000782, age 0 report_event: system event 'event_peer/strat_chg' (0x04) status 'sync_alarm, sync_ntp, 2 events, event_restart' (0xc621) addto_syslog: synchronized to 202.130.120.114, stratum 2 clock_update: at 10 assoc 3 local_clock: assocID 57446 offset -0.000099132 freq -50.951 state 1 addto_syslog: time slew -0.000099 s ntpd: time slew -0.000099s linux-6d2n:~ # -- 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=479341 Cyril Hrubis <chrubis@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |varkoly@novell.com |ovo.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=479341 Peter Varkoly <varkoly@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- 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=479341 User varkoly@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=479341#c1 Peter Varkoly <varkoly@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Resolution| |FIXED --- Comment #1 from Peter Varkoly <varkoly@novell.com> 2009-03-31 04:04:19 MDT --- fixed for STABLE -- 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