Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1003931: systemd-timesyncd: please set default NTP servers in stock configuration

45 views
Skip to first unread message

Martin-Éric Racine

unread,
Jan 18, 2022, 4:50:03 AM1/18/22
to
Package: systemd-timesyncd
Version: 250.2-3
Severity: important

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

The stock configuration file that ships with systemd-timesyncd has all options commented out. Additionally, it doesn't set any default NTP server. This essentially means that Debian ships a package that will not sync to anything by default.

What currently ships:

[Time]
#NTP=
#FallbackNTP=0.debian.pool.ntp.org 1.debian.pool.ntp.org 2.debian.pool.ntp.org 3.debian.pool.ntp.org
#RootDistanceMaxSec=5
#PollIntervalMinSec=32
#PollIntervalMaxSec=2048
#SaveIntervalSec=60

What's expected:

[Time]
NTP=0.debian.pool.ntp.org 1.debian.pool.ntp.org
#FallbackNTP=2.debian.pool.ntp.org 3.debian.pool.ntp.org
#RootDistanceMaxSec=5
#PollIntervalMinSec=32
#PollIntervalMaxSec=2048
#SaveIntervalSec=60

... or something similar that would have a default list of NTP servers enabled in the stock configuration.

- -- System Information:
Debian Release: bookworm/sid
APT prefers testing-debug
APT policy: (500, 'testing-debug'), (500, 'testing')
Architecture: i386 (i586)

Kernel: Linux 5.15.0-2-686 (SMP w/1 CPU thread)
Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8), LANGUAGE=fi:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages systemd-timesyncd depends on:
ii adduser 3.118
ii libc6 2.33-2
ii systemd 250.2-3

systemd-timesyncd recommends no packages.

systemd-timesyncd suggests no packages.


- -- no debconf information

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEyJACx3qL7GpObXOQrh+Cd8S017YFAmHmixcACgkQrh+Cd8S0
17Z5Qg/+KeK+XOm0hGfjaKUiEDGefnJ0WIIeNJDs5o2omyWimWZEAtSmvwDhDZ4a
Dou05s4vGfs9NUdvHWHyQL4uXrYhWKdis+aqi71eEhXnM/2sc8pfStEaqBL1TzG/
9TwE3/Vnq5cWXBmNcs/fWJ4tneYknmtyCNB4X5z2GE5oeKbwdWzr86yPN5HL1z/1
qopeacOffu7v449qLnvEPof+1TzNMNCVQVYRPPckwROFBnIjb+WnePIGHGxh/6SI
GOmZet9L3/5DiPTVYYbKvKG61zrOZAwpOkvahqRvG5TLtENDJXaOCwQrNxb7Q3ll
kWTZ3yCulyW74mX5bwoLSiGusVFOS9H+SGx1X423eYUn+8FqUOHQDJLzUzaK5fBI
dku6sxG7EKNlnNWkNdfdTEhMIbmRIu2WwwHfAymoHf99BUW9sETxXq0lQtIEzDZc
vloBWGIvbZrj4n4d3cMjXjaPO7n9Y5kJd80KrhYA4B9UYS/2VC8xvvy3PuHyunfq
nmpFLSoFYRDhnjEbXbw3vpQpYrz/ua2d1qD/JTjNjFQFYYIQHI7sYEhYCP62eTqz
iMinaqgsi7bQyqV+tl3SIadlTEbM/OyVVTGG+8q6Qc5k703fQKEP+EFop++Ta1p5
EbifbIn8/hDe3EPhvMeSRAX6iO5K/pZ1MlgUGtxDi6DZr7sBPxY=
=Zi66
-----END PGP SIGNATURE-----

Ansgar

unread,
Jan 18, 2022, 5:00:08 AM1/18/22
to
tag 1003931 + moreinfo
thanks

On Tue, 2022-01-18 at 11:40 +0200, Martin-Éric Racine wrote:
> The stock configuration file that ships with systemd-timesyncd has
> all options commented out.

That should be fine.

> Additionally, it doesn't set any default NTP server. This essentially
> means that Debian ships a package that will not sync to anything by
> default.

Have you verified this is the case?

timesyncd should use either NTP servers obtained from DHCP or such or
use the built-in FallbackNTP if no other FallbackNTP is specified in
timesyncd.conf:

+---
| FallbackNTP=
| [...] If this option is not given, a compiled-in list of NTP servers
| is used.
+---[ man:timesyncd.conf(5) ]

Ansgar

Martin-Éric Racine

unread,
Jan 18, 2022, 5:20:03 AM1/18/22
to
On Tue, Jan 18, 2022 at 11:52 AM Ansgar <ans...@43-1.org> wrote:
>
> tag 1003931 + moreinfo
> thanks
>
> On Tue, 2022-01-18 at 11:40 +0200, Martin-Éric Racine wrote:
> > The stock configuration file that ships with systemd-timesyncd has
> > all options commented out.
>
> That should be fine.
>
> > Additionally, it doesn't set any default NTP server. This essentially
> > means that Debian ships a package that will not sync to anything by
> > default.
>
> Have you verified this is the case?
>
> timesyncd should use either NTP servers obtained from DHCP or such or
> use the built-in FallbackNTP if no other FallbackNTP is specified in
> timesyncd.conf:

/etc/systemd/timesyncd.conf makes no mention of this. There is no
default content on the NTP line or mention that the fallback servers
are compiled-in.

> +---
> | FallbackNTP=
> | [...] If this option is not given, a compiled-in list of NTP servers
> | is used.
> +---[ man:timesyncd.conf(5) ]

Fair enough. I'd still suggest mentioning this in the configuration
file's comments.

Martin-Éric
0 new messages