NetBSD Problem Report #44270

From Wolfgang.Stukenbrock@nagler-company.com  Thu Dec 23 17:50:41 2010
Return-Path: <Wolfgang.Stukenbrock@nagler-company.com>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id D744163B86D
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 23 Dec 2010 17:50:40 +0000 (UTC)
Message-Id: <20101223175030.185EE1E80CE@test-s0.nagler-company.com>
Date: Thu, 23 Dec 2010 18:50:30 +0100 (CET)
From: Wolfgang.Stukenbrock@nagler-company.com
Reply-To: Wolfgang.Stukenbrock@nagler-company.com
To: gnats-bugs@gnats.NetBSD.org
Subject: startup order for ntpdate and named is broken in 5.1
X-Send-Pr-Version: 3.95

>Number:         44270
>Category:       misc
>Synopsis:       startup order for ntpdate and named is broken in 5.1
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 23 17:55:00 +0000 2010
>Last-Modified:  Tue Feb 15 20:55:05 +0000 2011
>Originator:     Dr. Wolfgang Stukenbrock
>Release:        NetBSD 5.1
>Organization:
Dr. Nagler & Company GmbH
>Environment:


System: NetBSD test-s0 4.0 NetBSD 4.0 (NSW-WS) #0: Tue Aug 17 17:28:09 CEST 2010 wgstuken@test-s0:/usr/src/sys/arch/amd64/compile/NSW-WS amd64
Architecture: x86_64
Machine: amd64
>Description:
	Due to some changes in the startup order of the rc-files
	ntpdate will be started prior named and will fail to solve
	names from ntp.conf.
>How-To-Repeat:
	insert an external symbolic server name into ntp.conf and you
	will see that ntpdate is not able to solve it.
>Fix:
	I'm not realy shure how to fix it.
	The problem is the dependeny in "kdc" on "ntpdate".
	Only "racoon" depends on "kdc" and nothing depends on "racoon" at the
	moment and "racoon" also coms in front of "SERVERS".
	But at the moment only "named" depend on the "SERVERS" target.
	Now I do not know if named will ever realy depend on "kdc" or "racoon".
	Of cause "named" may depend on some other things that come in front of
	"SERVERS".
	I suggest that replacing the BEFORE: "SERVERS" in "kdc" and "racoon" 
	with BEFORE: "rpcbind" will solve the problem - but I do not use kdc
	and/or racoon at the moment ....
	Perhaps another virtual target should be added in front of "rpcbind"
	- that is the only thing that depends on "named" ...

>Audit-Trail:
From: Wolfgang.Stukenbrock@nagler-company.com
To: gnats-bugs@NetBSD.org, gnats-admin@NetBSD.org
Cc: 
Subject: Re: misc/44270: startup order for ntpdate and named is broken in
	5.1
Date: Fri, 24 Dec 2010 09:13:01 +0100

 Hi again,

 I've forgotten to add the main change required to get named started in  
 front of ntpdate to this report - sorry

 here it is:

 add "named" to the REQUIRED set in /etc/rc.d/ntpdate
 add "ntpd" to the BEFORE set (new) in /etc/rc.d/ntpdate

 The first on forces named to be started in front of ntpdate.
 The second one is just for security.
 At the moment, there is no dependency that ntpdate is started in before
 ntpd is started, but there should be one - either in /etc/rc.d/ntpdate
 as mentioned here, of as REQUIRE in /etc/rc.d/ntpd.

 Best regards

 W. Stukenbrock

 Zitat von gnats-admin@NetBSD.org:

 > Thank you very much for your problem report.
 > It has the internal identification `misc/44270'.
 > The individual assigned to look at your
 > report is: misc-bug-people.
 >
 >> Category:       misc
 >> Responsible:    misc-bug-people
 >> Synopsis:       startup order for ntpdate and named is broken in 5.1
 >> Arrival-Date:   Thu Dec 23 17:55:00 +0000 2010
 >
 >



From: Bernd Ernesti <netbsd@lists.veego.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: misc/44270: startup order for ntpdate and named is broken in 5.1
Date: Mon, 14 Feb 2011 20:18:20 +0100

 Isn't ntpdate about to disapear which only leaves ntpd?

 Bernd

From: Wolfgang Stukenbrock <Wolfgang.Stukenbrock@nagler-company.com>
To: gnats-bugs@NetBSD.org
Cc: misc-bug-people@NetBSD.org, gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org,
        Wolfgang.Stukenbrock@nagler-company.com
Subject: Re: misc/44270: startup order for ntpdate and named is broken in 5.1
Date: Tue, 15 Feb 2011 09:32:00 +0100

 Hi,

 I don't think so, because ntpd requires the local time setting of the 
 system near by the time from the time-references servers. Otherwise it 
 simply refuses to work.
 So it is required - at least in the current version of ntpd - to set the 
 time to a value near by at least on time-reference server prior starting 
 ntpd.
 This is done by ntpdate and ntpdate "normaly" extracts the set of 
 relevant servers from ntp.conf.
 For external servers it is no good idea to use ip-addresses there, so 
 named is required prior starting ntpdate.

 As long as the ntpd in the ntpd-version off the NetBSD-distribution does 
 not do the work of ntpdate during startup by itself, ntpdate is required.
 And at least in the case of a broadcast or multicast client I see a 
 problem for ntpd to do it without additional information, that currently 
 cannot be extracted from the ntp.conf file.

 Best regards

 W. Stukenbrock

 Bernd Ernesti wrote:

 > The following reply was made to PR misc/44270; it has been noted by GNATS.
 > 
 > From: Bernd Ernesti <netbsd@lists.veego.de>
 > To: gnats-bugs@NetBSD.org
 > Cc: 
 > Subject: Re: misc/44270: startup order for ntpdate and named is broken in 5.1
 > Date: Mon, 14 Feb 2011 20:18:20 +0100
 > 
 >  Isn't ntpdate about to disapear which only leaves ntpd?
 >  
 >  Bernd
 >  
 > 


 -- 


 Dr. Nagler & Company GmbH
 Hauptstraße 9
 92253 Schnaittenbach

 Tel. +49 9622/71 97-42
 Fax +49 9622/71 97-50

 Wolfgang.Stukenbrock@nagler-company.com
 http://www.nagler-company.com


 Hauptsitz: Schnaittenbach
 Handelregister: Amberg HRB
 Gerichtsstand: Amberg
 Steuernummer: 201/118/51825
 USt.-ID-Nummer: DE 273143997
 Geschäftsführer: Dr. Martin Nagler, Dr. Dr. Karl-Kuno Kunze


From: Matthew Mondor <mm_lists@pulsar-zone.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: misc/44270: startup order for ntpdate and named is broken in
 5.1
Date: Tue, 15 Feb 2011 15:53:17 -0500

 On Mon, 14 Feb 2011 19:20:04 +0000 (UTC)
 Bernd Ernesti <netbsd@lists.veego.de> wrote:

 >  Isn't ntpdate about to disapear which only leaves ntpd?

 =46rom my experience, ntpdate also has been very useful on systems where
 running ntpd is not wanted but a local ntp server already exists on the
 network...
 --=20
 Matt

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.