[Bug 798886] New: NetworkManager do not provide ntp servers from dhcp requests
https://bugzilla.novell.com/show_bug.cgi?id=798886 https://bugzilla.novell.com/show_bug.cgi?id=798886#c0 Summary: NetworkManager do not provide ntp servers from dhcp requests Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: All OS/Version: openSUSE 12.2 Status: NEW Severity: Normal Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: ralf.habacker@sag.eu QAContact: qa-bugs@suse.de Found By: --- Blocker: --- Created an attachment (id=520514) --> (http://bugzilla.novell.com/attachment.cgi?id=520514) provide ntp server dhcp option to netconfig User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 dhcp based network connections request ntp servers from the dhcp server if present and configured on the client side. NetworkManager version 0.9.4 do not provide those settings to the netconfig ntp-runtime module, which works in traditional if mode Reproducible: Always Steps to Reproduce: 1. set ntp server in dhcp server client options 2. configure network mode to NetworkManager 3. configure lan or wlan network to use dhcp 4. start network service 5. take a look into /var/run/netconfig/NetworkManager.netconfig Actual Results: In /var/run/netconfig/NetworkManager.netconfig there is not NTPSERVERS entry, which is required for /etc/netconfig.d/ntp-runtime to setup ntp server Expected Results: /var/run/netconfig/NetworkManager.netconfig should contain an NTPSERVERS entry as happens in traditional if network mode This patch is build on NetworkManager-0.9.4.0-5.17.0. I tested this patch on opensuse 12.2 x86_64 without any problems. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=798886
https://bugzilla.novell.com/show_bug.cgi?id=798886#c1
Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=798886
https://bugzilla.novell.com/show_bug.cgi?id=798886#c
Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=798886
https://bugzilla.novell.com/show_bug.cgi?id=798886#c3
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=798886
https://bugzilla.novell.com/show_bug.cgi?id=798886#c
Dominique Leuenberger
https://bugzilla.novell.com/show_bug.cgi?id=798886
https://bugzilla.novell.com/show_bug.cgi?id=798886#c4
Dominique Leuenberger
https://bugzilla.novell.com/show_bug.cgi?id=798886
https://bugzilla.novell.com/show_bug.cgi?id=798886#c5
David Mair
https://bugzilla.novell.com/show_bug.cgi?id=798886
https://bugzilla.novell.com/show_bug.cgi?id=798886#c6
--- Comment #6 from Dominique Leuenberger
https://bugzilla.novell.com/show_bug.cgi?id=798886
https://bugzilla.novell.com/show_bug.cgi?id=798886#c7
--- Comment #7 from Ralf Habacker
This should be easier solvable by using a dispatcher Script.
NM passes all information from the DHCP Server through ENV to the dispatchers.
Unfortunately, I do not have access to any DHCP Setup with NTP Servers published (or to a DHCP Server were I could publish it), but I can already see in my dispatchers, that DHCP4_REQUESTED_NTP_SERVERS=1 is set...
The patch provided sounds like overkill and will have at eternity be maintained downstream (/etc/netconfig.d/ seems rather suse specific.
The netconfig mode is there because suse provides a network mode named
"traditional ifup" which do not use network manager and is the default setting.
Using network manager for server installations where no user based network
management is required would be overkill. The network manager integration is
implemented on top of the netconfig support, which is network manager at lease
since 2008.
commit c29ae2d0035479ac90f2963205548ff4748da784
Author: Tambet Ingo
https://bugzilla.novell.com/show_bug.cgi?id=798886
https://bugzilla.novell.com/show_bug.cgi?id=798886#c8
--- Comment #8 from Ralf Habacker
If you can come up with a dispatcher that does the right thing, this would be much easier to maintain.
# network manager writes the config file without the NTPSERVERS settings The scripts indicates that this solution looks like a half way workaround as
But you are still be forced to support the remaining netconfig support in NetworkManager and this patch will not much extend that required support. It only adds as single line to /var/run/netconfig/NetworkManager.netconfig. Here is a script which works for me on ipv4 networks: cat /etc/NetworkManager/dispatcher.d/ntp #!/bin/bash # # network manager writes the config file without the NTPSERVERS settings # if test -z "$DHCP4_NTP_SERVERS"; then exit 0 fi cfg=/var/run/netconfig/NetworkManager.netconfig grep -v "NTPSERVERS" $cfg >$cfg.$$ echo "NTPSERVERS='$DHCP4_NTP_SERVERS'" >> $cfg.$$ mv $cfg.$$ $cfg # update ntp settings /etc/netconfig.d/ntp-runtime This script should go on suse distros into the sysconfig package. main part is written by NetworkManager itself and the remaining by a dispatcher script. To really reduce required maintenance effort and if there are no other reasons against, I would mark NetworkManager netconfig support as deprecated yet and remove it in further release. /var/run/netconfig/NetworkManager.netconfig should be completely created by a dispatcher script for suse distros (any way to disable netconfig support in NetworkManager yes ?) If for some reasons, it is not possible to remove netconfig support from NetworkManager, please apply this fix. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com