Bug 1599066

Summary: Slow boot - system waits for some timeouts
Product: [Fedora] Fedora Reporter: Vít Ondruch <vondruch>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dwalsh, lnykryn, lvrabec, mgrepl, msekleta, plautrba, pmoore, ssahani, s, systemd-maint, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-18 12:34:37 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
journalctl output
none
AVC none

Description Vít Ondruch 2018-07-08 12:41:36 UTC
Description of problem:
With the update to systemd 239, I started to experience really slow boot. It appears the boot waits several times for some timeouts. First it waits before the GMD is shown, then it waits probably twice after login. That way, the boot takes like 3 minutes instead of 30 seconds I was used to.

Version-Release number of selected component (if applicable):
systemd-239-1.fc29.x86_64


How reproducible:
Always


Steps to Reproduce:
1. Reboot computer
2.
3.

Actual results:
The boot is slow, it seems it is waiting several times for some timeout.


Expected results:
Boot is smooth and quick.


Additional info:
For the time being, I have reverted to older systemd:

$ rpm -q systemd
systemd-238-8.git0e0aa59.fc29.x86_64

Comment 1 Vít Ondruch 2018-07-08 12:43:42 UTC
Created attachment 1457273 [details]
journalctl output

For example, see the first ~20s gap in the attached log between Jul 08 14:17:58 and Jul 08 14:18:20 or another between Jul 08 14:20:30 and Jul 08 14:20:54

Comment 2 Vít Ondruch 2018-07-09 11:16:43 UTC
It seems this helps:

~~~
$ diff -u nsswitch.conf.bak /etc/nsswitch.conf
--- nsswitch.conf.bak	2018-07-09 13:12:54.015334860 +0200
+++ /etc/nsswitch.conf	2018-07-09 13:14:14.720222274 +0200
@@ -30,9 +30,9 @@
 #shadow:    db files nisplus nis
 #group:     db files nisplus nis
 
-passwd:      sss files systemd
+passwd:      sss files
 shadow:     files sss
-group:       sss files systemd
+group:       sss files
 
 #hosts:     db files nisplus nis dns
 hosts:      files mdns4_minimal [NOTFOUND=return] dns myhostname
~~~

Comment 3 Vít Ondruch 2018-07-09 11:17:48 UTC
Created attachment 1457439 [details]
AVC

And there is lot of AVCs, so this seems to be related to bug 1559281

Comment 4 Zbigniew Jędrzejewski-Szmek 2018-07-18 12:34:37 UTC
Seems to be the same indeed, let's track this there.

*** This bug has been marked as a duplicate of bug 1559281 ***