Bug 397460

Summary: YAST2 NTP takes long on "restarting server"
Product: [openSUSE] openSUSE 11.0 Reporter: Nikolay Borisov <dsk>
Component: YaST2Assignee: Martin Vidner <mvidner>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: mvidner, varkoly
Version: RC 1   
Target Milestone: ---   
Hardware: x86   
OS: openSUSE 11.0   
Whiteboard:
Found By: Outsourced Testing Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: y2logs after the hang
here's the ntp log file

Description Nikolay Borisov 2008-06-05 12:38:28 UTC
Created attachment 220434 [details]
y2logs after the hang

When I chose which time server should NTP use and clicked Finish, Yast2 hanged on "restarting server". And after 4-5 minutes the windows closed and the machine wasn't synchronised. Attached y2logs.
Comment 1 Lukas Ocilka 2008-06-05 12:45:29 UTC
2008-06-05 11:37:13
  <1> linux-6ay1(26431) [YCP] Service.ycp:279 Running service initscript ntp restart
2008-06-05 11:40:27
  <1> linux-6ay1(26431) [YCP] clients/ntp-client.ycp:50 NtpClient module finished

So, either a changed time, or it takes quite long to synchronize (isn't 3 minutes rather a time-out?)


Read the log this way:
    `grep \(26431\) y2log | less`
Comment 2 Lukas Ocilka 2008-06-05 12:50:04 UTC
Plus this:
2008-06-05 11:37:07 <1> linux-6ay1(26431)
    [YCP] Service.ycp:279 Running service initscript ntp stop

'Testing reachability of server bg.pool.ntp.org' between

2008-06-05 11:37:07 <1> linux-6ay1(26431)
    [YCP] Service.ycp:279 Running service initscript ntp start
2008-06-05 11:37:13 <1> linux-6ay1(26431)
    [YCP] Service.ycp:279 Running service initscript ntp restart

Maybe those start + restart commands are somehow blocking each other?
Comment 3 Lukas Ocilka 2008-06-05 12:50:40 UTC
Nikolay, please, attach /var/log/ntp file if possible.
Comment 4 Nikolay Borisov 2008-06-05 13:22:28 UTC
Created attachment 220445 [details]
here's the ntp log file

Now I repeated the same procedure - this time yast2 didn't hang but ntp wasn't able to synchronise my machine.
Comment 5 Peter Varkoly 2008-06-05 13:57:41 UTC
The ntp log file say me, that no ntp server was configured.
Now I've tested RC2 and it works fine for me.
Comment 6 Lukas Ocilka 2008-06-05 14:00:52 UTC
Martin, ntp-client is yours, isn't it?

Peter says no ntp server was configured but I saw 'server bg.pool.ntp.org' in logs...
Comment 7 Martin Vidner 2008-06-06 10:06:57 UTC
I tried 3 times with bg.pool.ntp.org, to test all 3 servers returned by the DNS, and it has always worked within 10 seconds.

Please try to reproduce the problem, and while it is hanging, run as root:
# pstree -aplu `pgrep -f y2base | head -n1` > tree.log
# strace -ostrace.log -p `pgrep -f ntpd`     #(ctrl-c if it takes too long)
and attach the output.

comment 5: yes, at that time no server was in ntp.conf, yast was pre-testing it by /usr/sbin/ntpdate -q
Comment 8 Nikolay Borisov 2008-06-13 12:54:30 UTC
I couldn't reproduce the issue. I guess it's been a one-timer.