NetBSD Problem Report #38055

From Wolfgang.Stukenbrock@nagler-company.com  Mon Feb 18 15:43:49 2008
Return-Path: <Wolfgang.Stukenbrock@nagler-company.com>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 3F9C163B293
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 18 Feb 2008 15:43:49 +0000 (UTC)
Message-Id: <20080218154328.A5FF8B68B0@s011.nagler-company.com>
Date: Mon, 18 Feb 2008 16:43:28 +0100 (CET)
From: Wolfgang.Stukenbrock@nagler-company.com
Reply-To: Wolfgang.Stukenbrock@nagler-company.com
To: gnats-bugs@gnats.NetBSD.org
Subject: gated startup rc-file broken - filesystem not mounted at this time
X-Send-Pr-Version: 3.95

>Number:         38055
>Category:       pkg
>Synopsis:       gated startup rc-file broken - filesystem not mounted at this time
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 18 15:45:00 +0000 2008
>Closed-Date:    
>Last-Modified:  Thu Feb 21 13:00:06 +0000 2008
>Originator:     Wolfgang Stukenbrock
>Release:        NetBSD 4.0 - pkgsrc-2007Q4
>Organization:
Dr. Nagler & Company GmbH

>Environment:


System: NetBSD s011 4.0 NetBSD 4.0 (NSW-S011) #17: Mon Feb 18 12:51:48 CET 2008 wgstuken@s012:/export/NetBSD-4.0/N+C-build/.OBJDIR_i386/export/NetBSD-4.0/src/sys/arch/i386/compile/NSW-S011 i386
Architecture: i386
Machine: i386
>Description:
	In the example startup file (/usr/pkg/share/examples/rc.d/gated) gated is started after network and mountcritlocal
	but before NETWORKING.
	A this time /usr and /usr/pkg are not mounted - and gated is installed as /usr/pkg/sbin/gated.
	During the boot process, the gated startup is ignored without any error indication on the console, due to
	the missing binary in /usr/...
	This leads to a system startup without gated running and the administrator searching for the problem ...
	A second problem is, that gated expects syslogd to be up and running.
	But syslogd startup expects, that that network setup has completed - at least the netbsd rc-files force this.
>How-To-Repeat:
	install gated from pkgsrc-2007Q4 and try to start it during boot process using e.g. the example startup file.
>Fix:
	Not realy known to me.
	For me I've fixed the problem by starting gated after syslogd before SERVERS - but this may break other assumtions in
	other setups.

	Perhaps it would be a good idea to install such essential programs on a path like /etc/pkg/sbin to have them on the
	root filesystem and start newsyslog and syslogd in front of the routing daemons. Syslogd is started prior named in the current
	setup, so syslogd seems to be resistent agains hostname lookup failure and should also be resistend agains problems sending
	messages to remote systems.


>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: tron@narn.netbsd.org
State-Changed-When: Mon, 18 Feb 2008 22:09:55 +0000
State-Changed-Why:
"gated" must be started before networking because all services started after
"NETWORKING" assume that routing works.

The correct fix for your system is to add "critical_filesystems_local=/usr"
to "/etc/rc.conf".


From: Wolfgang Stukenbrock <Wolfgang.Stukenbrock@nagler-company.com>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@NetBSD.org, pkgsrc-bugs@NetBSD.org, gnats-admin@NetBSD.org,
        tron@NetBSD.org, Wolfgang.Stukenbrock@nagler-company.com
Subject: Re: pkg/38055 (gated startup rc-file broken - filesystem not mounted at this time)
Date: Thu, 21 Feb 2008 10:09:52 +0100

 Hi again,

 Sorry, but his approach does not work!
 gated failed to start during boot process.

 With this fix gated is found and the rc-file will try to start it, but 
 it fails.
 It looks like, that gated requires syslogd to be started first.
 I've already figured this out some time ago (on our NetBSD 3.1 setup), 
 but I've tested your suggested fix first.

 I'm not 100% shure what exactly goes wrong in the startup of gated, 
 because gated will start later, even if syslogd has been shutdown again. 
 I've not the time up to now to do further analyses.

 I think this problem-report should be reopend again, because the 
 suggested fix does not solve the problem.
 Either some patches needs to be added to gated, so that it will start 
 prior syslogd during boot, or syslogd needs to be started prio gated - 
 as I wrote in the report.

 In any case, starting gated before syslogd will loose all startup 
 messages (including problems during initialisation of gated).

 W. Stukenbrock

 tron@NetBSD.org wrote:

 > Synopsis: gated startup rc-file broken - filesystem not mounted at this time
 > 
 > State-Changed-From-To: open->closed
 > State-Changed-By: tron@narn.netbsd.org
 > State-Changed-When: Mon, 18 Feb 2008 22:09:55 +0000
 > State-Changed-Why:
 > "gated" must be started before networking because all services started after
 > "NETWORKING" assume that routing works.
 > 
 > The correct fix for your system is to add "critical_filesystems_local=/usr"
 > to "/etc/rc.conf".
 > 
 > 
 > 
 > 


State-Changed-From-To: closed->open
State-Changed-By: tron@narn.netbsd.org
State-Changed-When: Thu, 21 Feb 2008 13:00:06 +0000
State-Changed-Why:
There are more problems than mounting "/usr" in time.


>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.