On Sonntag, 12. März 2023 08:02:29 CET Andrei Borzenkov wrote:
On 12.03.2023 01:37, mh@mike.franken.de wrote:
Why is this the question for nm? The question for me is, why netconfig relies on a value from NetworkManager.netconfig, that is never provided?
netconfig does not "rely" on anything.
Maybe "rely" is too strong, but how would you call the fact, that ntp-config wants to read NTPSERVERS from NetworkManager.netconfig and in fact also reads the DNS variables from this file?
What makes netconfig believe it can get the value from there,
You as administrator of your system told netconfig to look at the information provided by NetworkManager. Even if it was just by your silent consent to use default policy (you claimed to have read netconfig documentation so you are aware about default policy).
Ok, so maybe the question is: Why is the behaviour of the default policy as it is? According to the man page (that you already mentioned) the default policy is "auto", whcih means: The auto policy value is resolved to "STATIC_FALLBACK NetworkManager" causing to use the NetworkManager built-in merge policy with a fallback to the static settings defined in netconfig variables when the NetworkManager does not provide any. Note: NetworkManager is not using any of the statically defined netconfig settings. Which means this policy is using some features from nm. Of course this is, what the admin (me) wanted, otherwise he would have changed it. But this decision implies the use of the nm module ntp-config, which can only be prohibited by modifying or deleting it, but which is part of the distribution itself.
Why would anyone waste time implementing special case for NTP and NetworkManager? What exactly will it fix? What is the exact difference between "no data provided by NetworkManger" and "do not check data from NetworkManager"? In both cases netconfig continues to use other sources of information according to configured policy.
What exact problem in netconfig are you trying to solve beyond "NetworkManager does not have ability to manage dynamic NTP information"?
You still misunderstand my intentions. I don't want anything to be changed or "fixed". I want to understand, why things are as they are - mostly to implement my things in a better or more conformable way. And using something from a script/module, that can never exist, seemed senseless to me, so I tried to verify, if it is senseless or my understanding is wrong. Bye. Michael.