Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 533538 - net-misc/networkmanager-0.9.10.1_pre20141101 - NetworkManager-wait-online.service fails to start
Summary: net-misc/networkmanager-0.9.10.1_pre20141101 - NetworkManager-wait-online.ser...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-25 18:38 UTC by Harris Landgarten
Modified: 2015-01-13 23:31 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Harris Landgarten 2014-12-25 18:38:01 UTC
since the upgrade to networkmanager-0.9.10.1_pre20141101 boots have been slowed by NetworkManager-wait-online.service failing to start even though NetworkManager was online and the network was up.

The boot was blocking on networkmanager-wait-online.service until it timed out.

This was never a problem before this version. I have a pretty simple network configuration using dhclient and auto ipv6. I also use vmware-workstation and that starts some bridged devices.

After some investigation I tried adding a minimal /etc/NetworkManager/NetworkManager.conf file with contents:


[main]
plugins=keyfile

That fixed the problem and no more hangs or timeouts.
It also eliminated some NetworkManager missing plugins warnings

The ebuild should check if this file is present and create a minimal one if not.
Comment 1 Pacho Ramos gentoo-dev 2014-12-26 11:21:20 UTC
What is the "systemctl status NetworkManager-wait-online.service" output when it is failing? What was the content of your previous /etc/NetworkManager/NetworkManager.conf that was showing the problem?
Comment 2 Harris Landgarten 2014-12-26 13:14:41 UTC
the service just says it fails after it times out. There was no NetworkManager.conf file at all previously.
Comment 3 Harris Landgarten 2014-12-26 18:46:03 UTC
Just to be clear. Our ebuild does not create /etc/NetworkManager/NetworkManager.conf

According to what I have read, this file is distribution specific and as of the new versions, seems to be required.

Customizations are supposed to go in /etc/NetworkManager/conf.d which is also not created by the ebuild but I think it should be possible to use /etc/conf.d/networkmanager with some changes to the service file.

Up until the current version, the missing NetworkManager.conf file caused no problems operationally.

As of the new version, a minimal conf file is required for proper operation.

I hope this helps.
Comment 4 Pacho Ramos gentoo-dev 2015-01-10 14:55:21 UTC
Please retry with 1.0 (looks to work ok for me... but in my case also the older version worked ok)
Comment 5 Harris Landgarten 2015-01-10 21:14:25 UTC
After install networkmanager-1.0 and removing the /etc/NetworkManager/NetworkManager.conf file referenced in this bug, I was able to reboot and all went as expected with no extra waiting for the network-wait-online.service.

There are some uses for the NetworkManager.conf file for more advanced uses than mine. I am not sure how you want to integrate these use cases into gentoo.
Comment 6 Pacho Ramos gentoo-dev 2015-01-11 11:00:56 UTC
OK, I plan to stabilize 1.0.0 "soon" but will wait a bit for finding new uses (and I am also waiting for a newer evolution-3.12.x version that should be released really soon).

Regarding the configuration of NM, in general it should work as-is for most people, I mean, people shouldn't need to make much extra configuration than using the standard tools to configure networks, then, I am not sure if we should do much more :|
Comment 7 Harris Landgarten 2015-01-11 14:31:02 UTC
What I am concerned about is possible user confusion.

do a man networkmanager.conf and compare that to the gentoo handbooks and other network config information. Also there is a /etc/conf.d/networkmanager.conf file in the package that appears to be openrc only and is not in the right format or even referenced by the systemd service.

So if you want to do something non-standard which doc do you use and which networkconfig.conf file.

That is what I am concerned about.
Comment 8 Pacho Ramos gentoo-dev 2015-01-13 16:44:44 UTC
/etc/conf.d/NetworkManager is on purpose openrc only, systemd unit files get configuration for other places:
https://wiki.gentoo.org/wiki/Project:Systemd/conf.d_files
Comment 9 Harris Landgarten 2015-01-13 23:31:55 UTC
As the wiki link shows, it is still a confusing mess for systemd users. Also,

man networkmanager.conf give systemd documentation which could confuse the openrc user. If you don't want lot of bug reports when all of this makes it to stable, something should be either fixed or a least better documented.