From owner-freebsd-stable@FreeBSD.ORG Thu Jul 9 03:41:47 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3CB6A1065744 for ; Thu, 9 Jul 2009 03:41:47 +0000 (UTC) (envelope-from john.marshall@riverwillow.com.au) Received: from mail1.riverwillow.net.au (mail1.riverwillow.net.au [203.58.93.36]) by mx1.freebsd.org (Postfix) with ESMTP id B15798FC2D for ; Thu, 9 Jul 2009 03:41:46 +0000 (UTC) (envelope-from john.marshall@riverwillow.com.au) Received: from rwpc12.mby.riverwillow.net.au (rwpc12.mby.riverwillow.net.au [172.25.24.168]) (authenticated bits=0) by mail1.riverwillow.net.au (8.14.3/8.14.3) with ESMTP id n692BKpF011699 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 9 Jul 2009 12:11:20 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=riverwillow.com.au; s=m1001; t=1247105480; bh=zYNwprcqLNGTAzBNQwjNdSgkJ0Ia5+JkbaClIPTG1cw=; h=Date:From:To:Subject:Message-ID:Mime-Version:Content-Type; b=ysiun+15GphKO+52Sjy49Wio30JqTkKSbfF7HzrJqzkRTjDm92B4arIN/2YXqroEJ G9jcMEcYGRqqeQ9US13hUSQedNfPv99xfR8xfJW+JT783Br7KxYZ+mDXBtgOB/kpQ/ 2ikQScraR+8Yq/zu7jjfMhtHV4w4HA49OZgjkP+k= Received: from rwpc12.mby.riverwillow.net.au (localhost [127.0.0.1]) by rwpc12.mby.riverwillow.net.au (8.14.3/8.14.3) with ESMTP id n692BJLq026926 for ; Thu, 9 Jul 2009 12:11:20 +1000 (AEST) (envelope-from john.marshall@riverwillow.com.au) Received: (from john@localhost) by rwpc12.mby.riverwillow.net.au (8.14.3/8.14.3/Submit) id n692BJHv026925 for freebsd-stable@freebsd.org; Thu, 9 Jul 2009 12:11:19 +1000 (AEST) (envelope-from john) Date: Thu, 9 Jul 2009 12:11:19 +1000 From: John Marshall To: freebsd-stable@freebsd.org Message-ID: <20090709021119.GA26896@rwpc12.mby.riverwillow.net.au> Mail-Followup-To: freebsd-stable@freebsd.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HlL+5n6rz5pIUxbD" Content-Disposition: inline User-Agent: Mutt/1.4.2.3i OpenPGP: id=A29A84A2; url=http://pki.riverwillow.net.au/pgp/johnmarshall.asc Subject: 8.0-BETA1 Source Upgrade breaks NTP configuration X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jul 2009 03:41:47 -0000 --HlL+5n6rz5pIUxbD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Yesterday I source-upgraded a 7.2-RELEASE-p2 test i386 server to 8.0-BETA1. I have just discovered that it broke that server's NTP service. PROBLEM 1 - Existing /etc/ntp.conf overwritten For source upgrades I run "mergemaster -iCPU" and it has served me well until now. Mergemaster appeared to run "as normal" for this upgrade, prompting me for decisions on how to deal with the handful of usual files. It didn't tell me that it had decided to overwrite my existing /etc/ntp.conf with the new default version from the source tree! (OK, perhaps it told me in the big, long list at the end but it didn't prompt me to supersede my existing file). Looking at the mergemaster(8) man page, I can't see how the options I use would have resulted in my existing /etc/ntp.conf being overwritten with the version from the source tree - but obviously there is a woops factor there, either with me or mergemaster. Digging deeper, it looks like it may be due to the fact that this is a new supplied file and an entry for /etc/ntp.conf didn't exist in /var/db/mergemaster.mtree from the previous (7.2-RELEASE) run. How should this be handled? PROBLEM 2 - Default ntp.conf uses LOCAL clock So, having had the FreeBSD upgrade magically re-configure my NTP server (no, I wasn't prompted to overwrite ntp.conf), I find that my NTP server is now synchronizing with it's own (potentially wrong) local system clock! Our firewall is configured to allow NTP traffic between our internal NTP servers and specific upstream NTP servers. The default configuration file specifies different servers which we don't use, so this NTP server couldn't "see" them. The new default configuration file includes "127.127.1.0" as a configured server. Because we could see no "real" NTP servers, we synchronized with our local system clock. That means that we think we are synchronized to a reliable upstream source. Rather than losing synch and discovering the problem, we think we are synchronized to a reliable source and we and our clients drift away from reality in blissful ignorance. Surely this violates POLA! Could we *please* at least comment out the LOCAL server config in the supplied ntp.conf? Personally I would rather see it removed. It is one thing to tell people where the gun is if they want to shoot themselves in the foot; it's another thing to load it and fire it for them. I think it is good to have a default ntp.conf to help new users get started. I think it is a bad thing to include potentially dangerous elements in that configuration which could cause grief to a novice NTP administrator. If the default configuration provides scope for such surprises, they will (rightly) blame FreeBSD. --=20 John Marshall --HlL+5n6rz5pIUxbD Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEYEARECAAYFAkpVUccACgkQw/tAaKKahKKekACgrFW0bHE61nBAonhkxrJo+S/q M9IAnje/jr/xYFFbD0LYJK/W53vN3gqN =64Sy -----END PGP SIGNATURE----- --HlL+5n6rz5pIUxbD--