Bug 696793 - NetworkManager - WiFi system connection does not start automatically
Summary: NetworkManager - WiFi system connection does not start automatically
Status: RESOLVED WORKSFORME
Alias: None
Product: openSUSE 11.4
Classification: openSUSE
Component: Network (show other bugs)
Version: Final
Hardware: x86-64 openSUSE 11.4
: P5 - None : Normal with 5 votes (vote)
Target Milestone: ---
Assignee: Bin Li
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-28 15:57 UTC by Peter Krútel
Modified: 2011-12-07 08:56 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
NetworkManager log - network connection on eth0 starts succesfully at boot time (7.74 KB, text/plain)
2011-05-28 15:57 UTC, Peter Krútel
Details
NetworkManager log - network connection on wlan0 does not start at boot time (3.77 KB, text/plain)
2011-05-28 15:58 UTC, Peter Krútel
Details
wpa_supplicant.log (5.00 KB, text/plain)
2011-05-28 15:59 UTC, Peter Krútel
Details
NetworkManager log - before login (4.12 KB, text/plain)
2011-06-01 20:36 UTC, Peter Krútel
Details
NetworkManager log - after login (9.06 KB, text/plain)
2011-06-01 20:37 UTC, Peter Krútel
Details
WiFi connection configuration (339 bytes, application/octet-stream)
2011-06-01 20:38 UTC, Peter Krútel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Krútel 2011-05-28 15:57:09 UTC
Created attachment 431984 [details]
NetworkManager log - network connection on eth0 starts succesfully at boot time

User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1

Using plasmoid-networkmanagement-0.9.1git20110503-8.1.x86_64.

In system connections (/etc/NetworkManager/system-connections) I have two connections:

1. One for eth0
2. Second for wlan0

Both have setting for automatic start at boot time.
WiFi connections are enabled.

When only eth0 is presented (cable plugged in, WiFi net not available), connection on eth0 starts automatically as expected at boot time.

When only wlan0 is presented (cable not plugged in, WiFi net available), connection on wlan0 does not start automatically at boot time. Later it can be manually started, when logged in.

Reproducible: Always

Steps to Reproduce:
1. Two system connections, one for eth0, one for wlan0, both with option start automatically.
2. Make WiFi net available, does not plug ethernet cable
3. Start computer and wait OS is completely booted
Actual Results:  
Network connection is not automatically established at boot time. (wlan0 interface)

Expected Results:  
Network connection is automatically established at boot time. (wlan0 interface)
Comment 1 Peter Krútel 2011-05-28 15:58:43 UTC
Created attachment 431985 [details]
NetworkManager log - network connection on wlan0 does not start at boot time
Comment 2 Peter Krútel 2011-05-28 15:59:48 UTC
Created attachment 431986 [details]
wpa_supplicant.log
Comment 3 Bin Li 2011-05-30 11:05:44 UTC
Fero,

 I thought it's relate to knewworkmanager, could you use the nm-applet which used in GNOME by default? Thanks!
Comment 4 Peter Krútel 2011-05-30 20:40:32 UTC
Hi Bin (I hope, this is your first name :-) ),

looks like, it is not knetworkmanager/plasmoid issue. According this link I have installed nm-applet:

http://susestarter.blogspot.com/2011/03/step-2-need-mobile-broadband-use-gnome.html

But the results are the same. eth0 was successfully started in system boot, but WiFi system connection did not start automatically in system boot. Looks like, NM accepts only pre-installed system connection for eth0 and other system connections are ignored.
Comment 5 Bin Li 2011-05-31 09:47:38 UTC
Fero,

 I've tested this issue in my laptop, it works fine. 

 The nm-applet can't running with the knetworkmanager together.

 In knetworkmanager the connection which be added is not set the checkbox of "autoconnect", so you must click the checkbox in the properties dialog.

 I've made a test like below.

In terminal, run
> sudo tail -n 30 -f /var/log/NetworkManager

In another terminal,
> kill -9 `pgrep kent`
> nm-applet
the nm-applet could connect the connections which you connected before.

And from the /var/log/NetworkManager you can view connecting information which like '(wlan0): supplicant ....."

with Ctrl + C to terminate the nm-applet.

> knetworkmanager
I can also view the icon was connecting the wireless. And also find the /var/log/NetworkManager was updated for the re-auto-connect the wireless.

 So could test it again?

 Thanks!
Comment 6 Peter Krútel 2011-05-31 11:32:26 UTC
Hi Bin,

maybe you didnt understand my problem.

Tests from terminal, you wrote, I should run from terminal, when LOGGED IN.

nm-applet and also plasmoid can connect networks, when LOGGED IN.

Problem is, I've configured WiFi system connection (/etc/NetworkManager/system-connections) and this should be automatically started with system boot (that means, in NOT LOGGED IN state). 

Listing of /etc/NetworkManager/system-connections directory:

9076787 -rw------- 1 root root  156 May 31 13:17 Auto eth0
9076971 -rw------- 1 root root  381 May 31 00:06 WifiConnection

Both files have no autoconnect set (that means from documentation per default autoconnect=TRUE)

Pre-installed wired configuration 'Auto eth0' works perfect, network is connected in system boot before LOGGED IN

My 'WifiConnection' does not start automatically in system boot before LOGGED IN. (in LOGGED IN state this connection is started without problems)

Should I run tests you wrote?
Comment 7 Bin Li 2011-06-01 09:00:50 UTC
Fero,

 I thought now it's clear, thanks! Don't need the test. I'll try to find what's the reason.

 Thanks!
Comment 8 Bin Li 2011-06-01 09:24:05 UTC
Fero,

 I've changed the wireless connection "Available to all users", then delete the "/var/log/NetworkManager". then reboot the system, after start, not log in the desktop, just in console(Ctrl + Alt + F1), view the /var/log/NetworkManager, found the wireless was auto-connected. And in the log you can found a lot of (wlan0)'s information.

 So it works fine for me. Could you make a test for it again? And attach your /var/log/NetworkManager again.

 Thanks!
Comment 9 Peter Krútel 2011-06-01 20:36:33 UTC
Created attachment 432571 [details]
NetworkManager log - before login
Comment 10 Peter Krútel 2011-06-01 20:37:30 UTC
Created attachment 432572 [details]
NetworkManager log - after login
Comment 11 Peter Krútel 2011-06-01 20:38:43 UTC
Created attachment 432573 [details]
WiFi connection configuration
Comment 12 Peter Krútel 2011-06-01 20:42:43 UTC
Hi Bin,

so there are full NetworkManager logs before login and after login with starting WiFiConnection. NetwrokManager logging entries after login start with timestamp Jun  1 22:09:06 (see NetwrokManager log after login)

I hope, these logs helps.
Comment 13 Peter Krútel 2011-12-07 08:29:40 UTC
With openSUSE 12.1 working as expected.
Comment 14 Bin Li 2011-12-07 08:56:30 UTC
Thanks for the feedback, I still found the reason why you failed in 11.4.

Anyway I'll close it as 'worksforme'. Thanks again.