Bug 138014

Summary: NetworkManager fails to see the link is up
Product: [openSUSE] SUSE Linux 10.1 Reporter: Marian Jancar <mjancar>
Component: NetworkAssignee: Robert Love <rml>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Alpha 3   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Marian Jancar 2005-12-12 10:28:43 UTC
After resume with the wired line plugged in (and it works, running `dhcpcd eth0' correctly assigns the ip address) NetworkManager probably fails to see the link is up. Happens both with the NetworkManager from alpha3 and the 0.5.1cvs20051209-2 (updated becouse of bug #134829). Restart of the NetworkManager doesn't help.

After reboot with the 0.5.1cvs20051209-2 it works, but the applet icon is wrong, then after resume it works again and the icon is right. I will try to find a pattern in the failures.
Comment 1 Robert Love 2005-12-12 15:31:45 UTC
This isn't a dupe of #134829?

Can you try using the latest powersave package?  It notifies NM of suspend and resume.
Comment 2 Marian Jancar 2005-12-12 15:38:25 UTC
In #134829 only the icon is wrong, here fails the NM itself. I will retry with latest powersaved (though I have quite recent becouse of a powersaved bug). Would the lack of the notification cause the NM to fail even in case I issue /etc/init.d/networkmanager restart?
Comment 3 Robert Love 2005-12-12 20:04:06 UTC
Restarting the daemon should make not fail..
Comment 4 Robert Love 2005-12-12 20:05:13 UTC
Is 0.5.1cvs20051209 failing in the same way or only as in #134829?  Also, I submitted 20051212 to autobuild today, you can try that.
Comment 5 Marian Jancar 2005-12-13 16:26:15 UTC
Its different, in #134829 NM works, only the displayed icon is wrong, here the NM doesn't work at all. Restarting it doesn't help, full reboot is required.
Comment 6 Robert Love 2005-12-13 17:39:24 UTC
I should note that if you run 'dhcpcd eth0' manually (yourself), NetworkManager is definitely going to get very confused.

Are you seeing this problem without doing _any_ manual intervention?  All interfaces are fully managed by NetworkManager, no networking if* scripts are used, no other dhcp clients, etc.?
Comment 7 Marian Jancar 2005-12-13 17:46:52 UTC
Yes, I run the dhcpcd as last resort to get the IP and to verify that there is no problem with cabling etc.
Comment 8 Robert Love 2005-12-13 17:50:52 UTC
That is the root of this problem -- NetworkManager needs to handle the network configuration itself.  If you manually run a DHCP client or ifup the interface, NetworkManager gets confused.  The idea is that it has full control of your interfaces.  It does not just spawn a DHCP client, but it controls and monitors it closely (via DBUS and dhcdbd).

So ... your problem will go away if you do not manually run dhcpcd.
Comment 9 Marian Jancar 2005-12-13 17:55:44 UTC
Its not the root, it was remedy, after NM not assignin the IP after about two minutes and two restarts.
Comment 10 Robert Love 2005-12-13 18:00:05 UTC
I am confused.  You wrote "After reboot with the 0.5.1cvs20051209-2 it works, but the applet icon is wrong, then after resume it works again and the icon is right," which sounds as if the problem is just the wrong icon?
Comment 11 Marian Jancar 2005-12-13 18:09:25 UTC
Ok I will describe it in detail:

I came to work, resumed the laptop, NM didn't give me IP, I run the dhcpcd to get an IP, updated to NM from /work, killed the dhcpcd, restarted the NM, it still didnt work, I rebooted, NM got an IP but the applet displayed no connection, then to test it I suspended and resumed, NM got IP and the icon correctly displayed wired connection.

The failure (no IP) happens only on resume and is quite random.
Comment 12 Robert Love 2005-12-13 18:22:20 UTC
Right, exactly.

So, "updated to NM from /work, killed the dhcpcd, restarted the NM, it
still didnt work, I rebooted, NM got an IP but the applet displayed no
connection, then to test it I suspended and resumed, NM got IP and the icon
correctly displayed wired connection."

It sounds as if the problem, with the new version, is the icon showing the wrong state?
Comment 13 Bart Whiteley 2005-12-13 18:37:01 UTC
I've got all the latest stuff via rug (including new NM icons).  I just booted (not resumed) my laptop while it was wired.  After logging in, NM tray icon says I'm disconnected, but clicking on icon opens the bubble that ways I'm wired.  ifconfig says I'm wired and all is well.  After switching from wired to wireless, then back to wired, the NM tray icon is now correct. 
Comment 14 Robert Love 2005-12-13 18:49:01 UTC
Bart: Hey, good.  That is bug #134829, which is the icon says disconnected but you are connected.

I am trying to acertain whether this bug is a dupe or not.  If, with the latest version, Marian is only seeing the icon troubles, then it is.
Comment 15 Marian Jancar 2005-12-14 09:29:08 UTC
This is a separate issue, I see NM sometimes not assigning the IP after resume. The applet icon is missing completely or shows no connection when this happens. Restarting the NM doesn't help, full reboot is neccessary in such case. The interface itself works fine, it can be assigned an IP manualy and works, so I don't think this could be driver issue.

May be it is related to resuming with the wire allready plugged in or plugging it in after the resume, I will try to get some reproducible results.
Comment 16 Marian Jancar 2005-12-21 12:21:28 UTC
It is caused by Novell VPN client, it adds the VPN ip to the eth0, then after resume NM ignores the interface. Still the only way to recover from that is reboot:

fujiwara-no-sai:/ # /etc/init.d/networkmanager stop
Shutting down the NetworkManager                                      done
fujiwara-no-sai:/ # ip l set eth0 down
fujiwara-no-sai:/ # ip a flush dev eth0
fujiwara-no-sai:/ # /etc/init.d/networkmanager start
Starting the NetworkManager                                           done
fujiwara-no-sai:/ # sleep 10
fujiwara-no-sai:/ # ip a
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:0b:97:32:6f:c6 brd ff:ff:ff:ff:ff:ff
3: gre0: <NOARP> mtu 1476 qdisc noop
    link/gre 0.0.0.0 brd 0.0.0.0
5: sit0: <NOARP> mtu 1480 qdisc noop
    link/sit 0.0.0.0 brd 0.0.0.0
7: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000
    link/ether 00:13:ce:69:5e:02 brd ff:ff:ff:ff:ff:ff
fujiwara-no-sai:/ # 

Comment 17 Robert Love 2006-01-06 22:28:42 UTC
Should be fixed by the new Novell VPN client for NetworkManager ... if not, definitely a bug!

*** This bug has been marked as a duplicate of 140504 ***