27.10.2019 21:51, Andrei Borzenkov пишет:
27.10.2019 14:07, Michael Hirmke пишет:
Hi *,
on my dhcp clients using NetworkManager "NTP_SERVER_LIST" is empty.
Where is it empty and why do you expect it to be not empty?
So they always fall back to a static ntp policy.
Looking into the lease files, they contain
option ntp-servers 192.168.1.1;
But this information isn't used obviously.
Is this a bug or some kind of misconfiguration?
Neither.
I experimented with and without chrony, systemd-timedated ...
To my understanding systemd-timedated should use chrony, if it is installed and an appropriate file exists in /usr/lib/systemd/ntp-units.d.
And how exactly is it related to NetworkManager?
chrony in turn should be provided with a list of ntp servers in /var/run/netconfig/chrony.servers, but this file remains empty, because NetworkManager never sees the above mentioned option.
Any idea?
It is the other way round - NetworkManager never exports ntp-servers DHCP option (which it *does* request) to netconfig modules.
https://mail.gnome.org/archives/networkmanager-list/2013-January/msg00048.ht...
ntp package installs /etc/NetworkManager/dispatcher.d/ntp script which provides NTP servers list to netconfig. This file is not ntpd specific and should be provided by common package that probably Supplements NetworkManager and chrony or ntp. Given that chrony is default and ntp is not even installed, I'd say open bug report against chrony. In the meantime you can simply install ntp (do not need to enable it) to get missing dispatcher script. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org