On 11.03.2023 14:32, mh@mike.franken.de wrote:
Hi *,
I'm trying to understand, how netconfig and NetworkManager are playing together in openSUSE regarding ntpserver client settings.
NetworkManager calls "netconfig modify --service NetworkManager" and provides DNS settings. What netconfig does with it is out of scope for NetworkManager.
System is openSUSE Tumbleweed 20230308.
Excerpt from my journal:
NetworkManager[18524]: debug: ntp-runtime Module called NetworkManager[18524]: debug: Resolved ntp-policy 'auto' for service 'NetworkManager' to 'STATIC_FALLBACK NetworkManager' NetworkManager[18524]: debug: Static Fallback NetworkManager[18524]: debug: Use NetworkManager policy merged settings NetworkManager[18524]: debug: exec get_ntp_settings: /run/netconfig/ NetworkManager.netconfig NetworkManager[18524]: debug: get_ntp_settings: NTP_SERVER_LIST='' NetworkManager[18524]: debug: exit get_ntp_settings: /run/netconfig/ NetworkManager.netconfig NetworkManager[18524]: debug: write_chrony_servers: 192.168.1.1 NetworkManager[18524]: debug: ntp servers written to /run/netconfig/ chrony.servers NetworkManager[18524]: debug: write_ntpd_servers: 192.168.1.1 NetworkManager[18524]: debug: ntp servers written to /run/ntp/servers- netconfig
As I found out, there is an nm module /usr/libexec/netconfig/netconfig.d/ntp- runtime, that is responsible for supplying ntpservers to chrony. But there seems to be a problem retrieving dynamically by dhcp assigned ntpservers
I already told you on another list that NetworkManager does not provide and NTP related information to netconfig.
- in any case I tested, get_ntp_settings didn't return an ntpserver list. Only statically assigned servers are written to the chrony file. Reason for this seems to be, that /run/netconfig/NetworkManager.netconfig does not contain an entry NTPSERVERS. Where is this entry supposed to come from?
It is not supposed to come from anywhere because NetworkManager does not use netconfig to manage NTP configuration.
nm itself knows about the ntpservers for an interface:
/usr/bin/nmcli --terse --fields "DHCP4.OPTION" connection show 25b6d1be-8a6b-4762-88da-cd27eb0a0c89 ... DHCP4.OPTION[10]:ntp_servers = 192.168.9.254 ...
Thx and bye. Michael.