Bug 354981

Summary: Network manager does not enable interface prior to running Internet connection test
Product: [openSUSE] openSUSE 11.0 Reporter: Doug Glenn <doug>
Component: NetworkAssignee: Michal Zugec <mzugec>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: captain.magnus, casualprogrammer, jdsn, jsrain, mmeeks, niels, vuntz
Version: Alpha 1   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 11.0   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: yast2logs from installation off Beta2 live cd

Description Doug Glenn 2008-01-20 18:15:34 UTC
And nor does it enable it prior to login at completion.  This is the same behavior in 10.3.  Should it not attempt to enable the interface prior to testing for the Internet, and also after the installation is complete?

This is on a Dell Lattitude C600 w/Xircom 10/100 pcmcia card. (Although the behavior was the same on a desktop as well)
Comment 1 J. Daniel Schmidt 2008-01-31 19:18:32 UTC
I think you are talking of the installation, right?
I just observed the same issue on a SLES10SP2 installation as well.
The network connection was open for the network test but shut down right after that. Therefore the registration process could not be run, because it needs network connection (btw. registration only runs when network connection succeeds).

Michal, do you need logs? (hope not, cause mine are already gone)
Comment 2 Doug Glenn 2008-01-31 20:11:06 UTC
During installation, yes.  In 10.3, it did like you said, however you could hit back to go back to the network page and forward again and it would work.

This is for 11.0 Alpha 2.  It is simply not even doing that this time around. It does not enable it at all.  I can flip to the a console window and type ifconfig and only the Lo (local) appears, no Eth0 for the Xircom 10/100 card I am using (which is recognized in prior versions).  This is right after the network config (asks if I want to use DHCP, which I answer Yes) and it goes forward.  It is still  not configured by the time I get to the registration screen and is not after it is installed.  

Even after logging in as the user for the first time, the network has to be enabled manually via the Network manager (if you choose it vs ifconfig) before it comes up and begins to work.  It does not at any point do it automatically on successive logins. Always a manual process.    


Comment 3 Michal Zugec 2008-02-18 14:56:57 UTC
In 11.0 you can't control NetworkManager-0.7 from command line.
In previous version, YaST uses dbus-send command to activate device, this is not possible now
I did some research http://idea.opensuse.org/content/ideas/control-networkmanager-from-cli
For this purpose we need to create some service that uses libnm-glib and libnm-util functionality to create some NetworkManagerUserSettings storage to create new Connection.
Tambet, what's your comment for that?
Comment 4 Tambet Ingo 2008-02-18 15:24:49 UTC
The way it works for NetworkManager 0.6 is a hack and is going to be resolved the right way for 0.7. NetworkManager now needs a predefined connection to activate a device and without applet, there's nothing on opensuse that provides it. There's already a system service daemon that provides "system connections" to NM prior login, ie connections configured by distro's native tools, yast for out case. The reason why it still doesn't work for us is that noone is working on the opensuse backend for it. I would like to, but I don't have time to work on it for now.
Comment 5 Michal Zugec 2008-02-19 15:23:46 UTC
*** Bug 358794 has been marked as a duplicate of this bug. ***
Comment 6 Tambet Ingo 2008-02-27 19:14:46 UTC
*** Bug 364978 has been marked as a duplicate of this bug. ***
Comment 7 Tambet Ingo 2008-02-29 22:41:13 UTC
I just submitted a fix for this. NetworkManager can now fully work without any applets using the configuration provided by yast (files from /etc/sysconfig/network).
Comment 8 Michal Zugec 2008-03-03 08:20:31 UTC
*** Bug 349442 has been marked as a duplicate of this bug. ***
Comment 9 Michal Zugec 2008-03-03 08:22:00 UTC
I'll check it with next release
Comment 10 Michal Zugec 2008-03-03 08:24:45 UTC
Tambet, please provide me some info how can I switch between two configurations written for netcontrol?
Comment 11 Tambet Ingo 2008-03-03 16:00:06 UTC
You mean which devices get activated? Otherwise, I didn't know yast allowed multiple configurations per device. At the momemnt, NM will prefer wired connection and will active it on startup (like what the subject of this bug says). In the near future, when we've enabled multiple active devices, it'll activate all the devices marked for activation on startup.

I was under impression headless machines (servers) don't really need to switch between network connections all that often and for the rare cases they do need it, yast could be used to enable/disable a device or to change it's configuration.
Comment 12 Tambet Ingo 2008-03-03 16:04:12 UTC
I forgot to comment comment #3, here it goes. It's not necessary to implement any more services to provide the connection information to NM, that's exactly what the NM's system-settings daemon is supposed to do. It consists of a general settings provider and plugins to turn any sort of configuration files to NMConnections. Currently, there are plugins for fedora and suse. The suse plugin could use some improvements for parsing wireless networks properties, but it's in my todo list. If you want to help out, I'd appreciate any patches.
Comment 13 Michal Zugec 2008-03-05 09:42:14 UTC
*** Bug 366457 has been marked as a duplicate of this bug. ***
Comment 14 Casual J. Programmer 2008-03-05 14:16:03 UTC
Continued from Bug 366457:

I just repeated a clean install from alpha2 DVD on a Sony Vaio PCG-SRX51P and expressly deselected NetworkManager. The eth0 interface (Intel e100) doesn't get set up either.

Running yast2 lan after the installation is through shows "not configured", editing the entry installs smpppd and kinternet and a few packages they depend on. Only then is eth0 usable.

Comment 15 Michal Zugec 2008-05-05 12:04:52 UTC
*** Bug 384158 has been marked as a duplicate of this bug. ***
Comment 16 Michal Zugec 2008-05-05 16:03:54 UTC
no, it works fine (your problem is some driver-issue)
Comment 17 Casual J. Programmer 2008-05-05 16:25:16 UTC
What is this now ? Shrugging shoulders and signing off ? 

I can assure you it's not working, neither fine nor otherwise. And it's not a driver issue either, as driver works fine with ifup method.
Comment 18 Michal Zugec 2008-05-05 18:50:43 UTC
Ok, attach /var/log/* from installation
Comment 19 Casual J. Programmer 2008-05-06 04:16:32 UTC
I just completed an installation from the Beta2 live cd, this time NetworkManager is working "out of the box" yet ifup is not working at all. Attaching logs from this install and repeating the network install from boot.iso for comparison.
Comment 20 Casual J. Programmer 2008-05-06 04:18:58 UTC
Created attachment 212507 [details]
yast2logs from installation off Beta2 live cd
Comment 21 Michal Zugec 2008-05-06 06:32:17 UTC
As I wrote in comment #16, it works fine (I tested it with Beta2 too). Create a new bugreport with summary that corespondent to your problem. This bugreport is about NetworkManager during installation and it was solved (see comment #7)