From owner-freebsd-questions@freebsd.org Fri May 13 14:45:01 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B25F8B3AD3B for ; Fri, 13 May 2016 14:45:01 +0000 (UTC) (envelope-from trond@fagskolen.gjovik.no) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 98D73169C for ; Fri, 13 May 2016 14:45:01 +0000 (UTC) (envelope-from trond@fagskolen.gjovik.no) Received: by mailman.ysv.freebsd.org (Postfix) id 981CEB3AD3A; Fri, 13 May 2016 14:45:01 +0000 (UTC) Delivered-To: questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 957C2B3AD39 for ; Fri, 13 May 2016 14:45:01 +0000 (UTC) (envelope-from trond@fagskolen.gjovik.no) Received: from smtp.fagskolen.gjovik.no (smtp.fagskolen.gjovik.no [IPv6:2001:700:1100:1:200:ff:fe00:b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.fagskolen.gjovik.no", Issuer "Fagskolen i Gj??vik" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 32DB2169B for ; Fri, 13 May 2016 14:45:01 +0000 (UTC) (envelope-from trond@fagskolen.gjovik.no) Received: from mail.fig.ol.no (localhost [127.0.0.1]) by mail.fig.ol.no (8.15.2/8.15.2) with ESMTPS id u4DEigLI084615 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 13 May 2016 16:44:42 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) Received: from localhost (trond@localhost) by mail.fig.ol.no (8.15.2/8.15.2/Submit) with ESMTP id u4DEigVl084612; Fri, 13 May 2016 16:44:42 +0200 (CEST) (envelope-from trond@fagskolen.gjovik.no) X-Authentication-Warning: mail.fig.ol.no: trond owned process doing -bs Date: Fri, 13 May 2016 16:44:42 +0200 (CEST) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= Sender: Trond.Endrestol@fagskolen.gjovik.no To: Ernie Luzar cc: questions@freebsd.org Subject: Re: 10.3 base ntpd leap-seconds. list file expires 2016-06-01 In-Reply-To: <5735DD5E.2020405@gmail.com> Message-ID: References: <5734FBDF.700@gmail.com> <20160513110143.GA99635@bali> <5735DD5E.2020405@gmail.com> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) Organization: Fagskolen Innlandet OpenPGP: url=http://fig.ol.no/~trond/trond.key MIME-Version: 1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED, AWL, LOTS_OF_MONEY autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail.fig.ol.no Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2016 14:45:01 -0000 On Fri, 13 May 2016 09:57-0400, Ernie Luzar wrote: > Trond Endrestøl wrote: > > On Fri, 13 May 2016 13:01+0200, Andre Albsmeier wrote: > > > > > On Fri, 13-May-2016 at 08:05:21 +0200, Trond Endrestøl wrote: > > > > On Thu, 12 May 2016 17:55-0400, Ernie Luzar wrote: > > > > > > > > > New install of 10.3 from .iso file. > > > > > On every boot of system get ntpd message saying > > > > > /var/db/ntpd.leap-seconds.list file expires 2016-06-01. > > > > > > > > > > I'm running the base version of ntpd, the one that > > > > > is included as part of the base system. > > > > > > > > > > This file should have been updated before 10.3 release was > > > > > published to the public. > > > > > > > > > > Where do I get the updated ntpd.leap-seconds.list file contents > > > > > to write to my /var/db/ntpd.leap-seconds.list file? > > > > Add these lines to /etc/periodic.conf: > > > > > > > > daily_ntpd_leapfile_enable="YES" > > > > daily_ntpd_avoid_congestion="YES" > > > Hmm, I did this on 9.3 a while ago.. The new file (fetched from > > > https://www.ietf.org/timezones/data/leap-seconds.list) has version > > > > > > #$ 3629404800 > > > > > > and as expiry date: > > > > > > #@ 3691872000 > > > > > > The old file (the copy of /etc/ntp/leap-seconds in > > > /var/db/ntpd.leap-seconds.list) > > > has as version: > > > > > > #$ 3660508800 > > > > > > and as expiry date: > > > > > > #@ 3673728000 > > > > > > So the new file expires after the old file (which is good) but > > > its version is lower than the version of the old file. Since > > > /etc/rc.d/ntpd compares the versions it finally sticks with the > > > old file... > > > > > > -Andre > > > > Would it make more sense to use > > https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list from the Earth > > orientation Center of the IERS? > > > > That file has currently the following characteristics: > > > > #$ 3661632000 > > # File expires on 28 December 2016 > > #@ 3691872000 > > > > https://www.ietf.org/timezones/data/leap-seconds.list > Just checked this file and it expires on 28 December 2016. > > service ntpd fetch downloads the same file as the base system has to begin > with. > > I manually edited /var/db/ntpd.leap-seconds.list with the values from > www.ietf.org/timezones/data/leap-seconds.list and did a > service ntpd restart and the expire message did not show. Given that the IERS is the true source of this file, I believe it makes sense to set the following in /etc/rc.conf: ntp_leapfile_sources="https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list https://www.ietf.org/timezones/data/leap-seconds.list" Please disagree if you want to. -- +-------------------------------+------------------------------------+ | Vennlig hilsen, | Best regards, | | Trond Endrestøl, | Trond Endrestøl, | | IT-ansvarlig, | System administrator, | | Fagskolen Innlandet, | Gjøvik Technical College, Norway, | | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | +-------------------------------+------------------------------------+ From owner-freebsd-questions@freebsd.org Fri May 13 15:15:52 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 917E2B393F1 for ; Fri, 13 May 2016 15:15:52 +0000 (UTC) (envelope-from Andre.Albsmeier@siemens.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 7C15F1760 for ; Fri, 13 May 2016 15:15:52 +0000 (UTC) (envelope-from Andre.Albsmeier@siemens.com) Received: by mailman.ysv.freebsd.org (Postfix) id 77B98B393EC; Fri, 13 May 2016 15:15:52 +0000 (UTC) Delivered-To: questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7760BB393EA for ; Fri, 13 May 2016 15:15:52 +0000 (UTC) (envelope-from Andre.Albsmeier@siemens.com) Received: from goliath.siemens.de (goliath.siemens.de [192.35.17.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "goliath.siemens.de", Issuer "savelogs.saacon.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 0BD36175B for ; Fri, 13 May 2016 15:15:50 +0000 (UTC) (envelope-from Andre.Albsmeier@siemens.com) Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by goliath.siemens.de (8.15.2/8.15.2) with ESMTPS id u4DFFDuo009537 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 13 May 2016 17:15:13 +0200 Received: from curry.mchp.siemens.de (curry.mchp.siemens.de [139.25.40.130]) by mail1.siemens.de (8.15.2/8.15.2) with ESMTP id u4DFFDqm026299; Fri, 13 May 2016 17:15:13 +0200 Received: (from user@localhost) by curry.mchp.siemens.de (8.15.2/8.15.2) id u4DFFDPo030908; Date: Fri, 13 May 2016 17:15:13 +0200 From: Andre Albsmeier To: Ernie Luzar Cc: Trond =?iso-8859-1?Q?Endrest=F8l?= , Andre Albsmeier , questions@freebsd.org Subject: Re: 10.3 base ntpd leap-seconds. list file expires 2016-06-01 Message-ID: <20160513151513.GA2145@bali> References: <5734FBDF.700@gmail.com> <20160513110143.GA99635@bali> <5735DD5E.2020405@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5735DD5E.2020405@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2016 15:15:52 -0000 On Fri, 13-May-2016 at 09:57:50 -0400, Ernie Luzar wrote: > Trond Endrestøl wrote: > > On Fri, 13 May 2016 13:01+0200, Andre Albsmeier wrote: > > > >> On Fri, 13-May-2016 at 08:05:21 +0200, Trond Endrestøl wrote: > >>> On Thu, 12 May 2016 17:55-0400, Ernie Luzar wrote: > >>> > >>>> New install of 10.3 from .iso file. > >>>> On every boot of system get ntpd message saying > >>>> /var/db/ntpd.leap-seconds.list file expires 2016-06-01. > >>>> > >>>> I'm running the base version of ntpd, the one that > >>>> is included as part of the base system. > >>>> > >>>> This file should have been updated before 10.3 release was > >>>> published to the public. > >>>> > >>>> Where do I get the updated ntpd.leap-seconds.list file contents > >>>> to write to my /var/db/ntpd.leap-seconds.list file? > >>> Add these lines to /etc/periodic.conf: > >>> > >>> daily_ntpd_leapfile_enable="YES" > >>> daily_ntpd_avoid_congestion="YES" > >> Hmm, I did this on 9.3 a while ago.. The new file (fetched from > >> https://www.ietf.org/timezones/data/leap-seconds.list) has version > >> > >> #$ 3629404800 > >> > >> and as expiry date: > >> > >> #@ 3691872000 > >> > >> The old file (the copy of /etc/ntp/leap-seconds in /var/db/ntpd.leap-seconds.list) > >> has as version: > >> > >> #$ 3660508800 > >> > >> and as expiry date: > >> > >> #@ 3673728000 > >> > >> So the new file expires after the old file (which is good) but > >> its version is lower than the version of the old file. Since > >> /etc/rc.d/ntpd compares the versions it finally sticks with the > >> old file... > >> > >> -Andre > > > > Would it make more sense to use > > https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list from the > > Earth orientation Center of the IERS? > > > > That file has currently the following characteristics: > > > > #$ 3661632000 > > # File expires on 28 December 2016 > > #@ 3691872000 > > > > > https://www.ietf.org/timezones/data/leap-seconds.list > Just checked this file and it expires on 28 December 2016. But the version is older and /etc/rc.d/ntpd checks this. Probably every "provider" got his own versioning system and /etc/rc.d/ntpd should check the expiry instead. > > service ntpd fetch downloads the same file as the base system has to > begin with. > > I manually edited /var/db/ntpd.leap-seconds.list with the values from > www.ietf.org/timezones/data/leap-seconds.list and did a Did you fix the signature as well? -Andre > service ntpd restart and the expire message did not show. > > -- Never argue with an idiot. They drag you down to their level, then beat you with their experience.