GNU bug report logs -
#37295
[PATCH] services: ntp: Support different NTP server types and options.
Previous Next
Reported by: maxim.cournoyer <at> gmail.com
Date: Tue, 3 Sep 2019 12:23:01 UTC
Severity: normal
Tags: patch
Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 37295 in the body.
You can then email your comments to 37295 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#37295
; Package
guix-patches
.
(Tue, 03 Sep 2019 12:23:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
maxim.cournoyer <at> gmail.com
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Tue, 03 Sep 2019 12:23:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hello!
This patch series aims at improving our NTP service.
While traveling, my date wouldn't be synchronized correctly, due to my
hardware clock (the one configurable through the BIOS) was more than
1000 s off the time queried from the NTP servers, and 'ntpd' was not
configured by default to allow an initial correction larger than 1000 s.
This patch series fixes this use case (travelling across timezones) and
further the ntp-configuration record to allow specifying different types
of NTP servers as well as their options.
[0001-services-ntp-Allow-large-adjustment-by-default.patch (text/x-patch, attachment)]
[0002-services-ntp-Fix-KOD-warning.patch (text/x-patch, attachment)]
[0003-doc-Add-index-to-find-ntpd.patch (text/x-patch, attachment)]
[0004-services-ntp-Support-different-NTP-server-types-and-.patch (text/x-patch, attachment)]
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#37295
; Package
guix-patches
.
(Wed, 04 Sep 2019 00:27:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 37295 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hello,
I had forgotten to register the new test module in the file Makefile.am.
Attached is the corrected patch.
[0001-services-ntp-Support-different-NTP-server-types-and-.patch (text/x-patch, attachment)]
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#37295
; Package
guix-patches
.
(Thu, 05 Sep 2019 07:10:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 37295 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Can you check how this affects the openntpd service? It currently also
uses %ntp-servers
--
Efraim Flashner <efraim <at> flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#37295
; Package
guix-patches
.
(Fri, 06 Sep 2019 06:42:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 37295 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hello Efraim,
Efraim Flashner <efraim <at> flashner.co.il> writes:
> Can you check how this affects the openntpd service? It currently also
> uses %ntp-servers
I had overlooked this important detail; thanks for pointing it out!
I made the simplest change possible, by introducing a %openntpd-servers
variable that holds a list of addresses (strings), which is defined as
(map ntp-server-address %ntp-servers). This variable is used as the new
default value for the "servers" field of the openntpd-configuration
record. See the attached patch for details.
[0001-services-ntp-Support-different-NTP-server-types-and-.patch (text/x-patch, attachment)]
[Message part 3 (text/plain, inline)]
We could also overhaul the code of the openntpd-service-type so that it'd
be possible to provide different server types and options like for the
'ntp-service-type', but I'm not sure it's worth it, given that OpenNTPD
is more spartan than NTP (it only supports two server types ('server' vs
'servers'), already captured as fields in its configuration record; and
its server directives only support one option, 'weight', which can
currently be included in the server string if desired).
However, I noticed that the configuration file produced by the openntpd
service, while valid, is not very clean.
For the documented following openntpd-service-type definition:
--8<---------------cut here---------------start------------->8---
(openntpd-configuration
(listen-on '("127.0.0.1" "::1"))
(sensor '("udcf0 correction 70000"))
(constraint-from '("www.gnu.org"))
(constraints-from '("https://www.google.com/"))
(allow-large-adjustment? #t)))
--8<---------------cut here---------------end--------------->8---
The following configuration file is generated:
--8<---------------cut here---------------start------------->8---
listen on 127.0.0.1
listen on ::1
constraints from "https://www.google.com/"
constraints from "https://www.google.com/"
sensor udcf0 correction 70000
constraints from "https://www.google.com/"
constraints from "https://www.google.com/"
servers 0.guix.pool.ntp.org
constraints from "https://www.google.com/"
constraint from www.gnu.org
--8<---------------cut here---------------end--------------->8---
This is reproducible when testing without my changes (with the difference
that multiple servers were used instead of a single "pool" entry point).
I've opened an issue so that this issue can be tracked separately here:
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=37318.
Thank you!
Maxim
Information forwarded
to
guix-patches <at> gnu.org
:
bug#37295
; Package
guix-patches
.
(Fri, 06 Sep 2019 10:47:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 37295 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
I like the changes to the openntpd service in relation to the other
changes.
--
Efraim Flashner <efraim <at> flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#37295
; Package
guix-patches
.
(Sat, 07 Sep 2019 04:28:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 37295 <at> debbugs.gnu.org (full text, mbox):
Efraim Flashner <efraim <at> flashner.co.il> writes:
> I like the changes to the openntpd service in relation to the other
> changes.
Great! I'll be awaiting an OK or let some time pass (2 weeks from now)
before I merge these patches into master.
You may want to check out the fixes I did to the openntp package/service
here as well: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37318.
Thank you,
Maxim
Information forwarded
to
guix-patches <at> gnu.org
:
bug#37295
; Package
guix-patches
.
(Sun, 08 Sep 2019 08:07:01 GMT)
Full text and
rfc822 format available.
Message #23 received at 37295 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On Sat, Sep 07, 2019 at 01:27:15PM +0900, Maxim Cournoyer wrote:
> Efraim Flashner <efraim <at> flashner.co.il> writes:
>
> > I like the changes to the openntpd service in relation to the other
> > changes.
>
> Great! I'll be awaiting an OK or let some time pass (2 weeks from now)
> before I merge these patches into master.
>
> You may want to check out the fixes I did to the openntp package/service
> here as well: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37318.
>
This looks good to me!
--
Efraim Flashner <efraim <at> flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[signature.asc (application/pgp-signature, inline)]
Reply sent
to
Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
:
You have taken responsibility.
(Sun, 08 Sep 2019 14:20:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
maxim.cournoyer <at> gmail.com
:
bug acknowledged by developer.
(Sun, 08 Sep 2019 14:20:01 GMT)
Full text and
rfc822 format available.
Message #28 received at 37295-done <at> debbugs.gnu.org (full text, mbox):
Hi!
Efraim Flashner <efraim <at> flashner.co.il> writes:
> On Sat, Sep 07, 2019 at 01:27:15PM +0900, Maxim Cournoyer wrote:
>> Efraim Flashner <efraim <at> flashner.co.il> writes:
>>
>> > I like the changes to the openntpd service in relation to the other
>> > changes.
>>
>> Great! I'll be awaiting an OK or let some time pass (2 weeks from now)
>> before I merge these patches into master.
>>
>> You may want to check out the fixes I did to the openntp package/service
>> here as well: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37318.
>>
>
> This looks good to me!
Thanks for the quick feedback; I've merged this into master with commit
5658ae8a0a.
Maxim
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 07 Oct 2019 11:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 195 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.