Bug 902332 - systemd-controlled suspend breaks NetworkManager
Summary: systemd-controlled suspend breaks NetworkManager
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: NetworkManager
Version: 18
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Dan Williams
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-01-21 11:52 UTC by Kamil Páral
Modified: 2013-03-04 23:52 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-02 19:53:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Kamil Páral 2013-01-21 11:52:04 UTC
Description of problem:
In Fedora 18 we now have 2 ways to suspend the machine, through gnome-session (which sends out UPower dbus signals) or systemd (which sends out logind dbus singals). Systemd suspend takes place if you close the laptop lid or hit a keyboard shortcut.

Unfortunately, because of this change some NM functionality got broken. When suspending, it doesn't disconnect from the network (I suppose it doesn't create a systemd inhibitor - delay lock). If I am connected to VPN and suspend and resume using systemd (laptop lid), it "seems" like I'm still connected to the VPN after resume. But in fact I'm not and my routing is completely broken. I have to disconnect from the VPN manually and reconnect again to have my network functional again.

See:
https://bugs.freedesktop.org/show_bug.cgi?id=58950
http://www.freedesktop.org/wiki/Software/systemd/inhibit


Version-Release number of selected component (if applicable):
NetworkManager-0.9.7.0-12.git20121004.fc18.x86_64
NetworkManager-pptp-0.9.3.997-3.fc18.x86_64
NetworkManager-vpnc-0.9.3.997-3.fc18.x86_64
NetworkManager-glib-0.9.7.0-12.git20121004.fc18.x86_64
NetworkManager-openconnect-0.9.7.0-1.git20120918.fc18.x86_64
NetworkManager-openvpn-0.9.3.997-3.fc18.x86_64


How reproducible:
always

Steps to Reproduce:
1. connect to wifi+VPN
2. suspend using systemd (laptop lid, keyboard shortcut)
3. resume
4. see that you're "still connected to VPN", but in fact the routing doesn't work

Comment 1 Jirka Klimes 2013-01-30 10:52:13 UTC
The systemd syspend/resume monitor was included into NM 2012-10-13:
http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=ea0c3a3e0fcbe400a704692d3b436d4733d348a1

But we have git20121004 snapshot in Fedora 18, so the functionality is not included.

It will be present in NM 0.9.8 that should be released soon (next week).

Comment 2 Matthias Clasen 2013-02-01 18:54:40 UTC
gnome-session is using systemd as well

Comment 3 Kamil Páral 2013-02-26 10:39:46 UTC
To clarify, this is not just about VPN. If I do systemd-controlled suspend (close the lid), the NM doesn't disconnect from the network and doesn't reconnect after resume. So if you move the laptop to a different place in the meantime, you seem to be still connected to the old wifi network - you have to manually reconnect. Also even if you stay in the same network, you might have IP address clashes if your IP address was assigned to someone else in the meantime.

Can we please release the update soon?

Comment 4 Fedora Update System 2013-02-27 12:21:42 UTC
NetworkManager-0.9.8.0-1.fc18 has been submitted as an update for Fedora 18.
https://admin.fedoraproject.org/updates/NetworkManager-0.9.8.0-1.fc18

Comment 5 Fedora Update System 2013-02-28 06:54:58 UTC
Package NetworkManager-0.9.8.0-1.fc18:
* should fix your issue,
* was pushed to the Fedora 18 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing NetworkManager-0.9.8.0-1.fc18'
as soon as you are able to, then reboot.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-3171/NetworkManager-0.9.8.0-1.fc18
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2013-03-02 19:53:46 UTC
NetworkManager-0.9.8.0-1.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.


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