Bug 600656 - NetworkManager do not create eth0 after Notebook Suspend
Summary: NetworkManager do not create eth0 after Notebook Suspend
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: NetworkManager
Version: 13
Hardware: x86_64
OS: Linux
low
high
Target Milestone: ---
Assignee: Dan Williams
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-06-05 13:34 UTC by João Neto
Modified: 2010-09-05 13:12 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-09-01 22:01:12 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description João Neto 2010-06-05 13:34:40 UTC
Description of problem:
NetworkManager do not connect to eth0 after Notebook Suspended

Version-Release number of selected component (if applicable):
nmcli --version
nmcli tool, version 0.8.0.997


Steps to Reproduce:
1. Battery of Notebook on KDE have empty and KDE suspend the Notebook
2. After plug the AC adapter and restart KDE the NetworkManager do not create eth0 connection
3.
  
Actual results:
# service network restart
Desligando a interface loopback:  Error org.freedesktop.NetworkManagerSettings.InvalidConnection: ifcfg file '/etc/sysconfig/network-scripts/ifcfg-lo' unknown
Error org.freedesktop.NetworkManagerSettings.InvalidConnection: ifcfg file '/etc/sysconfig/network-scripts/ifcfg-lo' unknown
Error org.freedesktop.NetworkManagerSettings.InvalidConnection: ifcfg file '/etc/sysconfig/network-scripts/ifcfg-lo' unknown
Error org.freedesktop.NetworkManagerSettings.InvalidConnection: ifcfg file '/etc/sysconfig/network-scripts/ifcfg-lo' unknown
                                                           [  OK  ]
Iniciando a interface loopback:  Error org.freedesktop.NetworkManagerSettings.InvalidConnection: ifcfg file '/etc/sysconfig/network-scripts/ifcfg-lo' unknown
Error org.freedesktop.NetworkManagerSettings.InvalidConnection: ifcfg file '/etc/sysconfig/network-scripts/ifcfg-lo' unknown
Error org.freedesktop.NetworkManagerSettings.InvalidConnection: ifcfg file '/etc/sysconfig/network-scripts/ifcfg-lo' unknown
Error org.freedesktop.NetworkManagerSettings.InvalidConnection: ifcfg file '/etc/sysconfig/network-scripts/ifcfg-lo' unknown
                                                           [  OK  ]
Iniciando a interface eth0:  Error: Connection activation failed: Device not managed by NetworkManager
                                                           [FALHOU]

Comment 1 Thomas Janssen 2010-06-05 16:37:27 UTC
You can either run 
dbus_send --print-reply --system \ 
	--dest=org.freedesktop.NetworkManager \ 
	/org/freedesktop/NetworkManager \ 
	org.freedesktop.NetworkManager.wake 

or run 
service network-manager stop 
rm /var/lib/NetworkManager/NetworkManager.state 
service network-manager start

But i agree there's maybe a better way to handle such cases. Though i'm the wrong one for a patch, sorry Dan.

Comment 2 Riku Seppala 2010-06-07 12:11:28 UTC
hm.. related? https://bugzilla.redhat.com/show_bug.cgi?id=583113

Comment 3 Dan Williams 2010-06-08 20:27:09 UTC
(In reply to comment #2)
> hm.. related? https://bugzilla.redhat.com/show_bug.cgi?id=583113    

Probably not, I think that's a different issue.  The '/etc/sysconfig/network-scripts/ifcfg-lo' unknown' thing is an initscripts issue but that shouldn't have any effect on the OP's problem.

Pasting in the state file (before removing it) as shown in comment 1 would be helpful.

Comment 4 Rex Dieter 2010-06-09 13:31:50 UTC
See also bug #598765 , where we're working to add an "Enable Networking" option to knetworkmanager, similar to nm-applet, which I think will end up doing something simlilar to the 'wake' dbus message referenced in comment #1

Comment 5 Dan Williams 2010-09-01 22:01:12 UTC
I think this is fixed in latest updates by bypassing pm-utils entirely with the issues of short-lived dbus-send processes not delivering messages correctly:

https://admin.fedoraproject.org/updates/NetworkManager-0.8.1-6.git20100831.fc13

This build has that change in it and should be resistant to pm-utils and dbus-send suckage.


Note You need to log in before you can comment on or make changes to this bug.