Bug 1095378

Summary: NetworkManager is using all processor time at boot with hidden wireless network
Product: [Fedora] Fedora Reporter: James <jarmofin>
Component: NetworkManagerAssignee: Dan Williams <dcbw>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 20CC: dcbw, jklimes, thaller
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: NetworkManager-0.9.9.0-39.git20131003.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-15 01:51:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
[PATCH] f20: bunch of patches rebased from upstream master
none
[PATCH v2] f20: bunch of patches rebased from upstream master none

Description James 2014-05-07 14:54:20 UTC
Description of problem:

With a hidden wireless network, after boot NetworkManager runs at full processor speed prior to a graphical login. It also clogs the system log with messages, including messages of the type "should not be reached":

May  7 17:29:59 localhost NetworkManager[842]: file devices/nm-device.c: line 7175 (nm_device_add_pending_action): should not be reached
May  7 17:29:59 localhost NetworkManager[842]: <warn> (wlp3s0): remove_pending_action (2): 'autoactivate' never added
May  7 17:29:59 localhost NetworkManager[842]: file devices/nm-device.c: line 7226 (nm_device_remove_pending_action): should not be reached

Version-Release number of selected component (if applicable):

Up-to-date versions of all related packages. In particular NetworkManager version 0.9.9.0.

How reproducible:
Unknown, but I would try the list given below.

Steps to Reproduce:
1. Install only a hidden wireless network.
2. Do not perform a graphical login at boot.
3. Run 'top' to see that NetworkManager is eating all cpu time.
4. Also notice that your cpu fan is running at full speed.

Actual results:


Expected results:


Additional info:

Highlights from /var/log/messages; these are repeated a LARGE number of times:

------------------------------------------------------------------------------
May  7 17:29:59 localhost firewalld: 2014-05-07 17:29:59 ERROR: UNKNOWN_INTERFACE: wlp3s0
May  7 17:29:59 localhost NetworkManager[842]: <warn> No agents were available for this request.
May  7 17:29:59 localhost NetworkManager[842]: <warn> Activation (wlp3s0) failed for connection 'mynetwork'
May  7 17:29:59 localhost NetworkManager[842]: <warn> (wlp3s0) firewall zone remove failed: (32) UNKNOWN_INTERFACE: wlp3s0
May  7 17:29:59 localhost NetworkManager[842]: <warn> (wlp3s0): add_pending_action (3): 'autoactivate' already added
May  7 17:29:59 localhost NetworkManager[842]: file devices/nm-device.c: line 7175 (nm_device_add_pending_action): should not be reached
May  7 17:29:59 localhost NetworkManager[842]: <warn> (wlp3s0): remove_pending_action (1): 'autoactivate' never added
May  7 17:29:59 localhost NetworkManager[842]: file devices/nm-device.c: line 7226 (nm_device_remove_pending_action): should not be reached
------------------------------------------------------------------------------

Interface wlp3s0 is available, at least after graphical login.

Comment 1 Jirka Klimes 2014-05-20 16:19:35 UTC
I can reproduce this by killing nm-applet (not using gnome-shell) and trying to activate a Wi-Fi connection without secrets. NM enters into endless looping retrying the connection (even if it failed due to missing secrets).

Comment 2 Jirka Klimes 2014-05-20 16:26:06 UTC
Created attachment 897663 [details]
[PATCH] f20: bunch of patches rebased from upstream master

I took bunch of patches from upstream that are related to auto-connecting and fixes couple of some bugs. Unfortunately, some of the patches are related to each other. So maybe I ended up with too many of them. It seems working for me, but I'd appreciate testing.

Comment 3 Jirka Klimes 2014-05-20 16:29:47 UTC
I have made a scratch build:
http://koji.fedoraproject.org/koji/taskinfo?taskID=6867349

Please would you test (not only the issue, but also other operations for regressions).

Comment 4 Thomas Haller 2014-05-21 12:11:03 UTC
(In reply to Jirka Klimes from comment #2)
> Created attachment 897663 [details]
> [PATCH] f20: bunch of patches rebased from upstream master
> 
> I took bunch of patches from upstream that are related to auto-connecting
> and fixes couple of some bugs. Unfortunately, some of the patches are
> related to each other. So maybe I ended up with too many of them. It seems
> working for me, but I'd appreciate testing.

Hm... this is quite hard to review. Would be nice to have individual cherry-picks of the upstream commits

Comment 5 Thomas Haller 2014-05-21 16:03:08 UTC
Created attachment 898059 [details]
[PATCH v2] f20: bunch of patches rebased from upstream master

This obsoletes the patch attachment 897663 [details] (comment 2).

This patch is identical to the previous, only fixed up the format so that it can be applied with git-am.

Comment 6 Thomas Haller 2014-05-27 14:40:36 UTC
The backported patches look good to me.

Comment 7 Fedora Update System 2014-06-12 14:08:46 UTC
NetworkManager-0.9.9.0-39.git20131003.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/NetworkManager-0.9.9.0-39.git20131003.fc20

Comment 8 Fedora Update System 2014-06-13 05:29:53 UTC
Package NetworkManager-0.9.9.0-39.git20131003.fc20:
* should fix your issue,
* was pushed to the Fedora 20 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.9.0-39.git20131003.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-7329/NetworkManager-0.9.9.0-39.git20131003.fc20
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2014-06-15 01:51:46 UTC
NetworkManager-0.9.9.0-39.git20131003.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.