25.04.2020 19:15, Michael Hirmke пишет:
[...]
NetworkManager[6990]: <info> [1587822149.8981] dhcp4 (p3p2): option ntp_servers => '192.168.1.1' NetworkManager[6990]: <info> [1587822149.8982] dhcp4 (p3p2): option requested_ntp_servers => '1'
This is internal NetworkManager DHCP client, so dhclient hook is not called.
Ok. For me this looks really confusing - NM knows about the ntp server, but nevertheless it is not used 8-<
NetworkManager[7119]: debug: Module order: dns-resolver dns-bind dns-dnsmasq nis ntp-runtime NetworkManager[7119]: debug: ntp-runtime Module called NetworkManager[7119]: debug: Resolved ntp-policy 'auto' for service 'NetworkManager' to 'STATIC_FALLBACK * NetworkManager' NetworkManager[7119]: debug: exec get_ntp_settings: /var/run/netconfig/NetworkManager.netconfig NetworkManager[7119]: debug: get_ntp_settings: NTP_SERVER_LIST='' NetworkManager[7119]: debug: exit get_ntp_settings: /var/run/netconfig/NetworkManager.netconfig NetworkManager[7119]: debug: ntp servers written to /var/run/netconfig/chrony.servers
NetworkManager calls netconfig only for DNS updates, it does not provide NTP information.
But why does it state "resolved ntp-policy 'auto'"?
Because this is current value of ntp-policy. It does not mean someone provided actual values to fill in NTP servers.
/var/run/netconfig/NetworkManager.netconfig and /var/run/netconfig/chrony.servers are empty though.
If I add an ip address to NETCONFIG_NTP_STATIC_SERVERS in /etc/sysconfig/network/config, this server shows up in both files mentioned above.
What am I missing here?
Distribution and version you are running, NetworkManager.conf?
openSUSE Tumbleweed.
Oh. You are not newbie on this list to not know that distribution and version are essential to get proper support. So far you just wasted your and my time. 1. Tumbleweed changed default NetworkManager DHCP client to internal. Which matches your information. 2. Tumbleweed completely broke integration of chrony with dhclient which means even changing client to dhclient won't help. It probably works with wicked now for a change. So using wicked instead of NetworkManager may work If you need NetworkManager and feel adventurous you can a) open NetworkManager upstream bug report about calling netconfig for NTP in addition to DNS b) try NetworkManager with dhclient and if it does not work open openSUSE bug report against chrony c) write NetworkManager dispatcher script to e.g. feed NTP data to netconfig
[main] plugins=keyfile
[connectivity] uri=http://conncheck.opensuse.org
Thx and bye. Michael.
-- To unsubscribe, e-mail: opensuse-support+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-support+owner@opensuse.org