25.04.2020 19:15, Michael Hirmke пишет:
> NetworkManager: <info>
[1587822149.8981] dhcp4 (p3p2): option
> ntp_servers => '192.168.1.1' NetworkManager:
> [1587822149.8982] dhcp4 (p3p2): option requested_ntp_servers => '1'
This is internal NetworkManager DHCP client, so
dhclient hook is not called.
For me this looks really confusing - NM knows about the ntp server, but
nevertheless it is not used 8-<
> NetworkManager: debug: Module order:
> dns-dnsmasq nis ntp-runtime NetworkManager: debug: ntp-runtime Module
> called NetworkManager: debug: Resolved ntp-policy 'auto' for service
> 'NetworkManager' to 'STATIC_FALLBACK * NetworkManager'
> NetworkManager: debug: exec get_ntp_settings:
> /var/run/netconfig/NetworkManager.netconfig NetworkManager: debug:
> get_ntp_settings: NTP_SERVER_LIST='' NetworkManager: debug: exit
> get_ntp_settings: /var/run/netconfig/NetworkManager.netconfig
> NetworkManager: debug: ntp servers written to
NetworkManager calls netconfig only for DNS
updates, it does not provide
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/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,
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
Thx and bye.
To unsubscribe, e-mail: opensuse-support+unsubscribe(a)opensuse.org
To contact the owner, e-mail: opensuse-support+owner(a)opensuse.org