[opensuse] NetworkManager, dhcp -> "NTP_SERVER_LIST" empty
Hi *, on my dhcp clients using NetworkManager "NTP_SERVER_LIST" is 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? 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. 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? TIA. Bye. Michael. -- Michael Hirmke -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
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... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
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
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 27/10/2019 20.15, Andrei Borzenkov wrote:
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.
...
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.
I think there is a misunderstanding here. You are explaining a method that ntp and network manager use to provide a list of ntp servers to outside, whereas what the OP needs is to import a list of time servers via DHCP-client. The LAN dhcp server publishes that list, and clients are expected to import and use it. - -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCXbX9jQAKCRC1MxgcbY1H 1VoiAJ4mOIP458XDpi9bz9xMKnsTJ00noACfdHCPcclFSq7Mpk3RgIUyHws32+Y= =EuVv -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hi Carlos, [...]
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.
I think there is a misunderstanding here.
You are explaining a method that ntp and network manager use to provide a list of ntp servers to outside, whereas what the OP needs is to import a list of time servers via DHCP-client. The LAN dhcp server publishes that list, and clients are expected to import and use it.
thx for clarifying - this is exactly, what I want.
- -- Cheers / Saludos,
Carlos E. R.
Bye. Michael. -- Michael Hirmke -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
Andrei Borzenkov
-
Carlos E. R.
-
mh@mike.franken.de