Bug 331724

Summary: initial ntpdate found no servers, because the network isn't ready
Product: [openSUSE] openSUSE 10.3 Reporter: Forgotten User DHIkF8sU1p <forgotten_DHIkF8sU1p>
Component: NetworkAssignee: Michael Skibbe <mskibbe>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None CC: funtasyspace, mario_bz
Version: Final   
Target Milestone: ---   
Hardware: 64bit   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: boot.msg and messages

Description Forgotten User DHIkF8sU1p 2007-10-08 06:41:21 UTC
ntpdate try to get the initial time before the network-connection is ready,
but found no servers


Oct  7 17:35:36 eddie ifup:     lo        
Oct  7 17:35:36 eddie ifup:     lo        
Oct  7 17:35:37 eddie ifup: IP address: 127.0.0.1/8  
Oct  7 17:35:37 eddie ifup:  
Oct  7 17:35:39 eddie ntpdate[2895]: can't find host de.pool.ntp.org
Oct  7 17:35:39 eddie ntpdate[2895]: no servers can be used, exiting
Oct  7 17:35:39 eddie ifup:     eth0      device: nVidia Corporation MCP61 Ethernet (rev a2)
Oct  7 17:35:40 eddie ifup-dhcp:     eth0      (DHCP) 
Oct  7 17:35:40 eddie ifup-dhcp: . 
Oct  7 17:35:40 eddie kernel: NET: Registered protocol family 17
Oct  7 17:35:41 eddie ifup-dhcp: . 
Oct  7 17:35:41 eddie modify_resolvconf: Service dhcpcd modified /etc/resolv.conf. See info block in this file
Oct  7 17:35:41 eddie ifup:     eth0      device: nVidia Corporation MCP61 Ethernet (rev a2)
Oct  7 17:35:42 eddie ifup-dhcp: IP/Netmask: 192.168.0.13
Oct  7 17:35:42 eddie ifup-dhcp:  / 255.255.255.0
Oct  7 17:35:42 eddie ifup-dhcp:  
Oct  7 17:35:43 eddie ntpdate[3142]: step time server 77.37.6.59 offset -0.055338 sec
Comment 1 Michael Skibbe 2007-10-08 08:25:05 UTC
do you use networkmanager?
Comment 2 Forgotten User DHIkF8sU1p 2007-10-08 11:07:42 UTC
No, i'm using the 'historical' if-up-method, but network is configured to start at boottime.

IMHO it is only a timing-problem, the MCP61-Chipset needs more time to come up then my older b44-chipset. b44 ~ 2 secs, mcp61 up to 5 secs. 


Comment 3 Jörg Hermsdorf 2007-10-08 11:21:21 UTC
I don't think this is specific to a certain chipset. I experience this sometimes too on my ThinkPad T60p and my workstation, which has a ASUS K8V deluxe mainboard. Just tell me if you need more info on my hardware and I'll post it.
Comment 4 Mario Guzman 2007-10-08 21:37:52 UTC
10.3 GA will not start NTP when network manager is enabled. Problem long standing from previous releases. This is not a chipset problem as I am using built-in chip on ASUS MB P5W64 Professional chip is 88E8052 using sky2 driver. 

In boot.msg:
Try to get initial date and time via NTP from 0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.orgError : Temporary failure in name resolution
Error : Temporary failure in name resolution
Error : Temporary failure in name resolution
failed

In messages.log:
Oct  8 09:16:44 linux ntpdate[3138]: can't find host 0.pool.ntp.org
Oct  8 09:16:44 linux ntpdate[3138]: can't find host 1.pool.ntp.org
Oct  8 09:16:44 linux ntpdate[3138]: can't find host 2.pool.ntp.org
Oct  8 09:16:44 linux ntpdate[3138]: no servers can be used, exiting
Comment 5 Mario Guzman 2007-10-08 21:40:14 UTC
Created attachment 176911 [details]
boot.msg and messages

Here are the full logs
Comment 6 Mario Guzman 2007-10-08 21:44:22 UTC
This could be related to 254420.
Comment 7 Michael Skibbe 2007-10-09 07:58:54 UTC
(In reply to comment #6 from Mario Guzman)
> This could be related to 254420.

if i remember right it's only a networkmanger problem and you do not use nm
Comment 8 Mario Guzman 2007-10-09 15:30:49 UTC
Yes I DO use NM but this test was without it. I wanted to see if the same messages occurred and they do.
Comment 9 Michael Skibbe 2007-10-11 09:58:41 UTC
@mario:
is it possible that your problem is Bug #256291 (setting initial time and date via ntp and mounting of nfs shares with network manager fails)?

@Bernd:
please provide your logfiles and output of ntpdc -c pe
Comment 10 Forgotten User DHIkF8sU1p 2007-10-11 12:01:36 UTC

bernd@eddie:~> ntpdc -c pe
     remote           local      st poll reach  delay   offset    disp
=======================================================================
*213.239.214.170 192.168.0.13     2  512  377 0.02554  0.007964 0.11461

part of /var/log/ntp:
11 Oct 09:47:18 ntpd[3606]: Deleting interface #2 lo, ::1#123, interface stats: received=0, sent=0, dropped=0, active_time=1 secs
11 Oct 09:47:18 ntpd[3606]: Deleting interface #3 eth0, fe80::21b:fcff:fe37:c02d#123, interface stats: received=0, sent=0, dropped=0, active_time=1 secs
11 Oct 09:50:32 ntpd[3606]: synchronized to 213.239.214.170, stratum 2
11 Oct 09:50:32 ntpd[3606]: kernel time sync status change 0001

part of /var/log/messages:

Oct 11 09:47:03 eddie ifup:     lo        
Oct 11 09:47:03 eddie ifup:     lo        
Oct 11 09:47:03 eddie ifup: IP address: 127.0.0.1/8  
Oct 11 09:47:03 eddie ifup:  
Oct 11 09:47:03 eddie ntpdate[2807]: can't find host de.pool.ntp.org
Oct 11 09:47:03 eddie ntpdate[2807]: no servers can be used, exiting
Oct 11 09:47:04 eddie ifup:     eth0      device: nVidia Corporation MCP61 Ethernet (rev a2)
Oct 11 09:47:06 eddie ifup-dhcp:     eth0      (DHCP) 
Oct 11 09:47:06 eddie ifup-dhcp: . 
Oct 11 09:47:06 eddie kernel: NET: Registered protocol family 17
Oct 11 09:47:07 eddie ifup-dhcp: . 
Oct 11 09:47:07 eddie modify_resolvconf: Service dhcpcd modified /etc/resolv.conf. See info block in this file
Oct 11 09:47:08 eddie ifup:     eth0      device: nVidia Corporation MCP61 Ethernet (rev a2)
Oct 11 09:47:08 eddie ifup-dhcp: IP/Netmask: 192.168.0.13
Oct 11 09:47:08 eddie ifup-dhcp:  / 255.255.255.0
Oct 11 09:47:08 eddie ifup-dhcp:  
Oct 11 09:47:09 eddie ntpdate[3067]: step time server 134.34.3.19 offset 0.003564 sec
Oct 11 09:47:10 eddie kernel: ip6_tables: (C) 2000-2006 Netfilter Core Team
Oct 11 09:47:10 eddie SuSEfirewall2: Warning: ip6tables does not support state matching. Extended IPv6 support disabled.
Oct 11 09:47:11 eddie kernel: ip_tables: (C) 2000-2006 Netfilter Core Team
Oct 11 09:47:11 eddie syslog-ng[2401]: SIGHUP received, restarting syslog-ng
Oct 11 09:47:11 eddie SuSEfirewall2: SuSEfirewall2 not active
Oct 11 09:47:12 eddie syslog-ng[2401]: new configuration initialized
Comment 11 Michael Skibbe 2007-10-11 12:14:15 UTC
i can see that xntp cannot resolve the server names but it can reach the server now? did you restart xntp?
Comment 12 Forgotten User DHIkF8sU1p 2007-10-11 12:30:38 UTC
No, after the network is up, ntpd works fine.

For me it looks 
Comment 13 Forgotten User DHIkF8sU1p 2007-10-11 12:36:16 UTC
No, after the network is up, ntpd works fine.
Comment 14 Michael Skibbe 2007-10-11 12:55:57 UTC
ahhh. you mean that there is only an error message at bootuptime?
Comment 15 Forgotten User DHIkF8sU1p 2007-10-11 13:08:14 UTC
Yes, please take a look at comment2.

Comment 16 Michael Skibbe 2007-10-11 15:03:04 UTC
this error message at boot time isn't problematic. the service is afaik restarted later so it works after booting up the machine.
Comment 17 Mark Gordon 2007-10-26 22:00:50 UTC
Apparently it's a bit more of a problem than it appears.

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