From amdmi3@amdmi3.ru  Fri Mar 12 16:35:15 2010
Return-Path: <amdmi3@amdmi3.ru>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 780D0106567B
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 12 Mar 2010 16:35:15 +0000 (UTC)
	(envelope-from amdmi3@amdmi3.ru)
Received: from smtp.timeweb.ru (smtp.timeweb.ru [92.53.116.15])
	by mx1.freebsd.org (Postfix) with ESMTP id 33E4E8FC2A
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 12 Mar 2010 16:35:14 +0000 (UTC)
Received: from [213.148.20.85] (helo=hive.panopticon)
	by smtp.timeweb.ru with esmtpsa (TLSv1:CAMELLIA256-SHA:256)
	(Exim 4.71)
	(envelope-from <amdmi3@amdmi3.ru>)
	id 1Nq7pR-0003vR-DQ
	for FreeBSD-gnats-submit@freebsd.org; Fri, 12 Mar 2010 19:35:13 +0300
Received: from hades.panopticon (hades.panopticon [192.168.0.32])
	by hive.panopticon (Postfix) with ESMTP id CD132B860
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 12 Mar 2010 19:35:12 +0300 (MSK)
Received: by hades.panopticon (Postfix, from userid 1000)
	id C8FC0B829; Fri, 12 Mar 2010 19:35:12 +0300 (MSK)
Message-Id: <20100312163512.C8FC0B829@hades.panopticon>
Date: Fri, 12 Mar 2010 19:35:12 +0300 (MSK)
From: Dmitry Marakasov <amdmi3@FreeBSD.org>
Reply-To: Dmitry Marakasov <amdmi3@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [rc.d] async dhclient breaks stuff for too many people, synchronous_dhclient should be enabled by default
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         144700
>Category:       conf
>Synopsis:       [rc.d] async dhclient breaks stuff for too many people, synchronous_dhclient should be enabled by default
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-net
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 12 16:40:01 UTC 2010
>Closed-Date:    
>Last-Modified:  Fri Mar 12 18:47:57 UTC 2010
>Originator:     Dmitry Marakasov
>Release:        FreeBSD 8.0-RELEASE i386
>Organization:
>Environment:
System: FreeBSD hades.panopticon 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Tue Nov 24 22:31:59 MSK 2009 root@hades.panopticon:/async/obj/usr/src/sys/HADES i386


>Description:
Recently I've seen just too many cases when the default way dhclient
is ran breaks stuff for people (samba, ntpd, other services don't start
with lots of errors, because resolving or routes are not set up), so,
though there exists related conf/133987, I though this should be
submitted again with critical status.

As far as I remember, the reason we don't have synchronous_dhclient="YES"
by default (which will fix things for all these people) is for the sake
of mobile users who don't always have interfaces up on boottime.

However I don't believe we have more mobile than stationary users, so to
benefit most I think we should at have synchronous_dhclient="YES" by
default. In addition, this setting is much easier to debug - as dhclient
popping up on boot when it's not desired, leads to obvious conclusion
that it should be turned off, while current setting leads to many
services failing randomly, without obvious relation to DHCP - for example,
ntpd is unable to resolve any server addresses and ends up without peers,
doing nothing. Unless you look into logs, you won't even know it's not
working.

>How-To-Repeat:
Setup services that need networking (resolving, most commonly) at startup.
Run them on DHCP-enabled system, watch them fail because by the time
they're run, networking is not set up yet.
>Fix:
First thing, we definitely need to have synchronous_dhclient="YES" by default.

Additional changes may be useful for mobile users, for example, something
like this:

http://www.mail-archive.com/svn-src-all@freebsd.org/msg08127.html

Finally, we may think of some solution that delays service startups
until networking is up. Not sure if that can really be useful though.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Fri Mar 12 18:45:39 UTC 2010 
Responsible-Changed-Why:  
Although this is for an rc setting, it probably really needs to be 
decided by the net@ readers. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=144700 
>Unformatted:
