[Bug 905639] New: Enabling autofs delays login by letting systemd-logind fail
http://bugzilla.opensuse.org/show_bug.cgi?id=905639 Bug ID: 905639 Summary: Enabling autofs delays login by letting systemd-logind fail Classification: openSUSE Product: openSUSE Distribution Version: 13.2 Hardware: x86-64 OS: openSUSE 13.2 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: suse@bugs.jan.ritzerfeld.org QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- If you enable autofs, the system will not boot correctly anymore. This is easily reproducible by installing the openSUSE 13.2 DVD in VirtualBox, take all the defaults, including KDE, do "systemctl enable autofs.service", and reboot: 1. It will take 30-60 seconds until the KDE user is automatically logged in. 2. Without autologin, the first login will take about 10-20 seconds. No matter if on tty or in kdm. 3. The first login will get not a systemd-logind session. That is, loginctl lists no sessions. All applications that need such a session, like NetworkManager, will not work correctly! 4. A logout and login makes everything work again. That is, the second and all subsequent logins work. The systemd journal says: Nov 15 15:37:34 linux-ykuq dbus[640]: [system] Activating via systemd: service name='org.freedesktop.login1' unit='dbus-org.freedesktop.login1. service' [...] Nov 15 15:37:59 linux-ykuq dbus[640]: [system] Failed to activate service 'org.freedesktop.login1': timed out Nov 15 15:37:59 linux-ykuq kdm[760]: :0[760]: pam_systemd(xdm-np:session): Failed to create session: Activation of org.freedesktop.login1 timed out Should I compress and attach /var/log/journal/system.journal, output of "journalctl --output=export" or just of "journalctl"? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=905639
Manuel Bernhardt
http://bugzilla.opensuse.org/show_bug.cgi?id=905639
Manuel Bernhardt
http://bugzilla.opensuse.org/show_bug.cgi?id=905639
Bernhard Wiedemann
http://bugzilla.opensuse.org/show_bug.cgi?id=905639
--- Comment #3 from Jan Ritzerfeld
http://bugzilla.opensuse.org/show_bug.cgi?id=905639
Isaque Galdino
http://bugzilla.opensuse.org/show_bug.cgi?id=905639
Jan Ritzerfeld
[...] ugly and also the question rises if this dirty hack works with NetworkManager?
It works for me using NetworkManager. Many thanks for your help, Werner! Most likely unrelated, a shutdown or reboot hangs for a few seconds and often there is a WiFi Firmware error displayed. To be sure, I would recommend Manuel or Isaque to test it, too. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=905639
--- Comment #31 from Manuel Bernhardt
http://bugzilla.opensuse.org/show_bug.cgi?id=905639
--- Comment #32 from Manuel Bernhardt
http://bugzilla.opensuse.org/show_bug.cgi?id=905639
--- Comment #35 from Manuel Bernhardt
http://bugzilla.opensuse.org/show_bug.cgi?id=905639
--- Comment #36 from Andrei Borzenkov
I am not sure whether NetworkManager really depends on it. Maybe it just uses polkit and this depends on systemd-logind.
NM obtains suspend inhibitor lock so it can complete "prepare to sleep" processing: Who: NetworkManager (UID 0/root, PID 998/NetworkManager) What: sleep Why: NetworkManager needs to turn off networks Mode: delay This is done in src/nm-sleep-monitor-systemd.c. Currently it simply tries to unconditionally connect to logind. I think that this /could/ be changed to listen to name owner events on D-Bus and only try to connect to logind when it is started. (In reply to Werner Fink from comment #4)
There are no implicitly dependencies ...
there are as I have shown above.
if NetworkManager depends on systemd-logind.service than it has to requires this.
I agree. This would make this problem immediately obvious long ago.
But IMHO it should *NOT* depend on remote informations like NIS and/or NFS shares.
The reason for requiring logind has nothing to do with NIS or NFS. But it does put NM in a loop with logind when NSS lookup requires networking. Note that I do not claim it is NM bug. It can be considered logind bug as much - why logind needs networking for managing local system suspend/resume? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=905639
--- Comment #42 from Manuel Bernhardt
http://bugzilla.opensuse.org/show_bug.cgi?id=905639
--- Comment #50 from Manuel Bernhardt
http://bugzilla.opensuse.org/show_bug.cgi?id=905639
Maine Rodger
http://bugzilla.opensuse.org/show_bug.cgi?id=905639
Nina Kuckländer
http://bugzilla.opensuse.org/show_bug.cgi?id=905639
Joschi Brauchle
http://bugzilla.opensuse.org/show_bug.cgi?id=905639
Joschi Brauchle
http://bugzilla.opensuse.org/show_bug.cgi?id=905639
Hans-Peter Jansen
http://bugzilla.opensuse.org/show_bug.cgi?id=905639
--- Comment #57 from Joschi Brauchle
Boo#916737 depends on this bug.
Funny enough, in boo#916737 the problem is that autofs does not get restarted after a standby/resume. It turns out, that the NetworkManager-dispatcher is completely not working until a restart of NetworkManager after boot.
The reason seems to be that NetworkManager-dispatcher is not registered correctly with DBUS, which seems to be due to this bug here.
I am not an expert on DBUS, NetworkManager or AutoFS, but installing the patched package from https://build.opensuse.org/project/show/home:endzone:boo905639 makes this bug and boo#916737 go away for me.
I have packaged the currently latest NetworkManager from openSUSE 13.2 plus this patch here: https://build.opensuse.org/project/show/home:endzone:boo905639 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=905639
--- Comment #59 from Dominique Leuenberger
Many thanks for your efforts! Is this patch 0001-core-don-t-auto-launch-logind-bgo-741572.patch already part of NM used in Factory?
For Fatory, NetworkManager 1.0.2 is in the pipeline, which contains that fix. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=905639
--- Comment #60 from Hans-Peter Jansen
http://bugzilla.opensuse.org/show_bug.cgi?id=905639
Dominique Leuenberger
http://bugzilla.opensuse.org/show_bug.cgi?id=905639
--- Comment #62 from Bjørn Lie
http://bugzilla.opensuse.org/show_bug.cgi?id=905639
--- Comment #63 from Dominique Leuenberger
Please test the packages from
https://bugzilla.opensuse.org/show_bug.cgi?id=922370
This versionbump should contain the above patch too.
Correct- I verified git log and it's there http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?h=nm-0-9-10&id=9458d8151ceb67287deec9f0405c86642777853e (in the corresponding branch nm-0-9-10) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=905639
Stefan Quandt
http://bugzilla.opensuse.org/show_bug.cgi?id=905639
Joschi Brauchle
http://bugzilla.opensuse.org/show_bug.cgi?id=905639
http://bugzilla.opensuse.org/show_bug.cgi?id=905639#c64
matthias sweertvaegher
I have packaged the currently latest NetworkManager from openSUSE 13.2 plus this patch here: https://build.opensuse.org/project/show/home:endzone:boo905639
Joschi, does your patch still work? Because when I surf to https://build.opensuse.org/package/show/home:endzone:boo905639/NetworkManage... it says "Files could not be expanded: conflict in file NetworkManager.spec" build seems broken -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=905639
http://bugzilla.opensuse.org/show_bug.cgi?id=905639#c65
Joschi Brauchle
build seems broken
Hi, yes the build is broken because official 13.2 NetworkManager packages integrated two more fixes. Still, the already existing RPMs in my projects repo are working, but do not include the two fixes that went into the official package. You can use them if you are somewhat sure that you dont need the other two patches. An official solution to this bug has unfortunately stalled. The proposed route to upgrade to NM 0.9.10.2 has not been taken, thus leaving this bug unfixed. It certainly would help if the patch mentioned in comment 55 would find its way into the official package for 0.9.10.0, if no upgrade to 0.9.10.2 will happen anytime soon! @Dominique: Can we hope for this before 13.2 EOL...? :-) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=905639
http://bugzilla.opensuse.org/show_bug.cgi?id=905639#c66
Dominique Leuenberger
http://bugzilla.opensuse.org/show_bug.cgi?id=905639
http://bugzilla.opensuse.org/show_bug.cgi?id=905639#c67
Atri Bhattacharya
http://bugzilla.opensuse.org/show_bug.cgi?id=905639
http://bugzilla.opensuse.org/show_bug.cgi?id=905639#c69
--- Comment #69 from Atri Bhattacharya
From talking to the nm-devs, 0.9.10.4 might get released eventually, but not rightaway. Until then, there is https://build.opensuse.org/request/show/346072
-- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=905639
http://bugzilla.opensuse.org/show_bug.cgi?id=905639#c71
Atri Bhattacharya
participants (1)
-
bugzilla_noreply@novell.com