Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 May 2016 16:44:42 +0200 (CEST)
From:      =?ISO-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no>
To:        Ernie Luzar <luzar722@gmail.com>
Cc:        questions@freebsd.org
Subject:   Re: 10.3 base ntpd leap-seconds. list file expires 2016-06-01
Message-ID:  <alpine.BSF.2.20.1605131641500.1421@mail.fig.ol.no>
In-Reply-To: <5735DD5E.2020405@gmail.com>
References:  <5734FBDF.700@gmail.com> <alpine.BSF.2.20.1605130802400.1421@mail.fig.ol.no> <20160513110143.GA99635@bali> <alpine.BSF.2.20.1605131432300.1421@mail.fig.ol.no> <5735DD5E.2020405@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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: <owner-freebsd-questions@freebsd.org>
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 <freebsd-questions@mailman.ysv.freebsd.org>;
 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 <freebsd-questions@freebsd.org>; 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 <questions@mailman.ysv.freebsd.org>; 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 <questions@freebsd.org>; 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 <Andre.Albsmeier@siemens.com>
To: Ernie Luzar <luzar722@gmail.com>
Cc: Trond =?iso-8859-1?Q?Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no>, 
 Andre Albsmeier <Andre.Albsmeier@siemens.com>, 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>
 <alpine.BSF.2.20.1605130802400.1421@mail.fig.ol.no>
 <20160513110143.GA99635@bali>
 <alpine.BSF.2.20.1605131432300.1421@mail.fig.ol.no>
 <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 <freebsd-questions.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/>;
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.20.1605131641500.1421>