Bug 1948042
Summary: | systemd-networkd fails at system start | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Andrew G. Dunn <andrew> |
Component: | dbus-broker | Assignee: | David Rheinsberg <daherrma> |
Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 34 | CC: | daherrma, dluong, dominik, fedora, fedoraproject, filbranden, flepied, goeran, ipilcher, kasong, leif.liddy, lnykryn, msekleta, redhat-bugzilla, redhat, reescf, scroolik, ssahani, s, systemd-maint, tgunders, thomas, yaneti, yuwatana, zbyszek |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-06-08 06:33:13 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: |
Description
Andrew G. Dunn
2021-04-09 20:13:50 UTC
I have started to see the same behaviour on one real hardware machine upgraded to the F34 kernel and systemd. My understanding is this happens because a race condition where systemd-networkd on this machine tries to start before dbus is available. (Other machines also updated don't have the problem, but they have slightly different services running which might tilt things the other way.) I created a service drop in file /etc/systemd/system/systemd-networkd.service.d/after-dbus.conf [Unit] After=dbus.socket With this it seems my machine can reliably boot again. The AVCs also disappear with this extra configuration. I'm guessing systemd-networkd tries to take some other code path when dbus isn't available, something which SELinux won't allow. But that is just a guess. Thanks Göran, can confirm this workaround addresses my issues (for both systemd-networkd and systemd-timesyncd) Thanks Göran, your workaround works great! Thanks Göran, can confirm your workaround works great! Possibly related:https://github.com/systemd/systemd/issues/19212. Same here, but without AVCs. Issue started after upgrading my VM to F34. There are two ways to fix this: in dbus-broker, create the dbus socket earlier. This is implemented by https://github.com/bus1/dbus-broker/commit/28af5ac996c94922fc49660e0efa955f57575187. I'll reassign this to dbus-broker to wait for that patch. The second way is in selinux policy, allow systemd-networkd to watch for the socket to appear. This is the same as https://bugzilla.redhat.com/show_bug.cgi?id=1970359. I'll add a comment there to include systemd-networkd in the change too. dbus-broker-29-1 will include this fix. Already available in rawhide, updates for F34 pending. Thanks a lot for the report and the detailed comments on Github! If this does not suffice, let me know! This remains a problem on current Fedora 34. Fully updated. systemd-networkd[3146]: Failed to connect to bus: Permission denied Network units fail on boot. Restarting the service succeeds. Happens every boot. I did not have this problem on Fedora 30 or 32. Essentially nothing has changed on the machine except the upgrade to 34 as I lost access to it during the pandemic and was only recently able to power it back on and run the upgrades (30->32 followed by 32->34 to avoid an unsupported upgrade). Is this fixed in 35? Göran's workaround works great, though - thanks very much for that unit. This message is a reminder that Fedora Linux 34 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora Linux 34 on 2022-06-07. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a 'version' of '34'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, change the 'version' to a later Fedora Linux version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora Linux 34 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora Linux, you are encouraged to change the 'version' to a later version prior to this bug being closed. Fedora Linux 34 entered end-of-life (EOL) status on 2022-06-07. Fedora Linux 34 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. Thank you for reporting this bug and we are sorry it could not be fixed. |