[Bug 531242] New: NetworkManager does not wait for networks to come up, before continuing during booting
http://bugzilla.novell.com/show_bug.cgi?id=531242 User D.Olsson@Netzwerk-Design.de added comment http://bugzilla.novell.com/show_bug.cgi?id=531242#c156 Summary: NetworkManager does not wait for networks to come up, before continuing during booting Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: x86-64 OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: D.Olsson@Netzwerk-Design.de QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.12) Gecko/2009071200 SUSE/3.0.12-0.1.2 Firefox/3.0.12 When booting, I observed that "ntp" was not able to resolve the server names that it tried to connect to. During debugging of the issue, I found out that the reason was that the NetworkManager (from "/etc/rc.d/network) did not wait (long enough) for the network connection to be established. Further debugging showed that the problem was with the call of "/usr/bin/nm-online" (line #156), which uses the "--exit" option. Dropping this option allows for the waiting for NetworkManager to set up the network connection, thus allowing "ntp" to lookup the needed server(s). Reproducible: Always Steps to Reproduce: 1. Install openSUSE 11.1 using NetworkManager as networking connection method. 2. Configure the wired network interface in NetworkManager to be setup using DHCP and marked as "Autoconnect". 3. Setup and configure "ntp" to make use of the (default) server pool. 4. Reboot system and observer that "ntp" cannot be setup, while the NetworkManager does not wait (long enough) for the network connection to be setup. Actual Results: During the booting sequence, notice the message line: Starting the NetworkManager ..... waiting [Although the status "waiting" is written, there is no waiting, and the boot process continues instantaneously with the running of "ntp", which than fails] .. Starting network time protocol daemon (NTPD) [... failing with message that "no servers found" ...] Expected Results: Starting the NetworkManagerdone Connecting 30s Connecting. 29s Connecting. 28s Connecting.. 27s <progress bar skipped> done Starting network time protocol daemon (NTPD) ... done After having debugged this, I found that line #156 in "/etc/rc.d/network" reading: $NM_ONLINE_BIN --exit --timeout $NM_ONLINE_TIMEOUT should better read: $NM_ONLINE_BIN --timeout $NM_ONLINE_TIMEOUT and, when it does, the waiting for NetworkManager to start up is performed. According to "nm-online --help" then "--exit" option means: .. -x, --exit Exit immediately if NetworkManager is not running or connecting .. assuming that "nm-online" is correctly working, it seems that the starting of the "NetworkManager" with "startproc" is apparently too slow for "nm-online" to be used with this option -- at least, it works, when not using it. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=531242
shuang qiu
http://bugzilla.novell.com/show_bug.cgi?id=531242
User D.Olsson@Netzwerk-Design.de added comment
http://bugzilla.novell.com/show_bug.cgi?id=531242#c1
--- Comment #1 from Dennis Olsson
http://bugzilla.novell.com/show_bug.cgi?id=531242
User D.Olsson@Netzwerk-Design.de added comment
http://bugzilla.novell.com/show_bug.cgi?id=531242#c2
--- Comment #2 from Dennis Olsson
http://bugzilla.novell.com/show_bug.cgi?id=531242
http://bugzilla.novell.com/show_bug.cgi?id=531242#c
Gary Ekker
http://bugzilla.novell.com/show_bug.cgi?id=531242
http://bugzilla.novell.com/show_bug.cgi?id=531242#c
yang xiaoyu
participants (1)
-
bugzilla_noreply@novell.com