Bug 425675

Summary: boot slow, apparently blocking on ntp
Product: [openSUSE] openSUSE 11.1 Reporter: Michael Wolf <maw>
Component: NetworkAssignee: Peter Varkoly <varkoly>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P1 - Urgent CC: behlert, varkoly
Version: Factory   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Michael Wolf 2008-09-11 22:17:16 UTC
Booting takes a long time while starting ntp.

If I ssh in, I see the following:

mw@engraver:~ % ps auxww | grep ntp                                                                                                 [17:12]
root      2356  0.0  0.0   2772  1376 ?        S    17:11   0:00 /bin/sh /etc/init.d/ntp start
root      2386  0.0  0.0   2772  1372 ?        S    17:11   0:00 /bin/sh /etc/init.d/ntp ntptimeset
ntp       2400  0.0  0.0   5104  1528 ?        S    17:11   0:00 /usr/sbin/ntpd -g -u ntp:ntp -c /etc/ntp.conf -q


If I strace ntpd, I get:

select(21, [16 17 18 19 20], NULL, NULL, NULL) = ? ERESTARTNOHAND (To be restarted)
--- SIGALRM (Alarm clock) @ 0 (0) ---
sigreturn()   

repeatedly.  (The others block uninterestingly in waitpid.)


If I kill ntp and ntpd, booting continues and finishes quickly.
Comment 1 Michael Wolf 2008-09-11 22:18:06 UTC
(In reply to comment #0 from Michael Wolf)
> Booting takes a long time while starting ntp.

I'm timing it with a stopwatch, and it's taken over 6 minutes so far.


Comment 2 Michael Wolf 2008-09-11 22:18:40 UTC
mw@engraver:~ % rpm -q --changelog ntp | head                                                                                       [17:17]
* Mon Sep 08 2008 varkoly@suse.de
- (bnc#423463) - 2 bugs found in ntpd init script

* Tue Jun 17 2008 varkoly@suse.de
- (bnc#398437) - ntp client has missing dependency to package timezone
- (bnc#397422) - ntp rpm throws an error when installing

* Tue May 27 2008 varkoly@suse.de
- (bnc#393305) – /etc/ntp.conf gets overwritten during an update


mw@engraver:~ % rpm -q ntp
ntp-4.2.4p4-78

Comment 3 Michael Wolf 2008-09-11 22:21:17 UTC
When I kill it, I see:

/etc/init.d/ntp: line 149:  2400 killed [spaces] $NTPD_BIN $NTPD_OPTIONS -c $NTP_CONF -q
Comment 6 Peter Varkoly 2008-09-16 13:39:17 UTC
Paket 4.2.4p5-4 do contains the fix

*** This bug has been marked as a duplicate of bug 407804 ***