Comments (3)
Could this possibly be related? I've see this failing together with systemd-udev-settle.service
several times:
Red Hat Enterprise Linux CoreOS 43.81.202002032142.0
WARNING: Direct SSH access to machines is not recommended.
---
Last login: ...
[systemd]
Failed Units: 2
console-login-helper-messages-issuegen.service
systemd-udev-settle.service
See also https://bugzilla.redhat.com/show_bug.cgi?id=1739757
from console-login-helper-messages.
I've checked the logs, and it seems when this unit fails "udevadm settle" already failed a few seconds before. This unit fails after udev fails. So they are somehow related, I do not know if this is an additional failure or if this triggers the race on the temp file.
ts | host | message |
---|---|---|
2020-04-02 20:13:00 | compute02-1 | Failed to start Generate /run/issue.d/console-login-helper-messages.issue. |
2020-04-02 20:12:58 | compute02-1 | Failed to start udev Wait for Complete Device Initialization. |
2020-03-31 07:22:09 | control-plane-0 | Failed to start Generate /run/issue.d/console-login-helper-messages.issue. |
2020-03-31 07:22:05 | control-plane-0 | Failed to start udev Wait for Complete Device Initialization. |
2020-03-25 01:30:25 | compute-4 | Failed to start udev Wait for Complete Device Initialization. |
2020-03-25 01:26:32 | compute-1 | Failed to start Generate /run/issue.d/console-login-helper-messages.issue. |
2020-03-25 01:26:27 | compute-1 | Failed to start udev Wait for Complete Device Initialization. |
2020-03-25 01:22:18 | compute-7 | Failed to start udev Wait for Complete Device Initialization. |
2020-03-25 01:17:40 | infra-1 | Failed to start udev Wait for Complete Device Initialization. |
2020-03-25 01:13:52 | infra-0 | Failed to start udev Wait for Complete Device Initialization. |
from console-login-helper-messages.
Thank you for reporting!
The problem looks like the race between the two invocations you mentioned - the part that writes to and deletes the .staged
file is executed every time the udev rule invokes issuegen
. It is possible that the udev invocation and console-login-helper-messages.service
, which is run on boot, execute at the same time and one of the two deletes the file before the other executes the cat
command to write the staged
file to the generated
file.
There is in fact no need to have the staged
file - I shouldn't have added it in the first place in rfairley@d8ef47a. I have opened #36 to fix this, with more explanation there. This should fix the error causing console-login-helper-messages-issuegen.service
to fail.
I've checked the logs, and it seems when this unit fails "udevadm settle" already failed a few seconds before. This unit fails after udev fails. So they are somehow related, I do not know if this is an additional failure or if this triggers the race on the temp file.
Could there be implicit ordering between systemd-udev-settle.service
and console-login-helper-messages-issuegen.service
that would make the likelihood of the race occurring higher if "udev settle" failed? E.g. console-login-helper-messages-issuegen.service
waits for network-online.target
. Thinking if the "udev settle" service failed for an unrelated reason after invoking /usr/lib/udev/rules.d/90-console-login-helper-messages-issuegen.rules
, but terminated earlier than usual, console-login-helper-messages-issuegen.service
could be started while the rules invocation is still executing. I can try to verify this by checking the unit ordering - however, the immediate issue should be fixed now by #36.
Given the timeline and the Generate /run/issue.d/console-login-helper-messages.issue
message, it does seem to be only console-login-helper-messages-issuegen.service
failing from a race triggered by the udev failure condition seen so far.
Will do another release once the fix is in and will build the RPM for RHCOS.
from console-login-helper-messages.
Related Issues (20)
- common warnings for users HOT 4
- Investigate rpm-inspect failures
- Warn on modified SELinux policy HOT 1
- Warn on Zincati / rpm-ostree failing to apply updates to the system
- New CLHM release HOT 3
- Consider change for "mv -Z" in issue generator scripts HOT 1
- Add a conditional to the Makefile to optionally install the `/run/motd.d` tpmfiles config HOT 1
- Warn if /sysroot is not read only HOT 4
- support for more complex networking devices HOT 1
- Configuration file format
- issuegen should not run via udev rule when disbaled via systemd HOT 1
- agetty console should be reloaded upon generation of new issue snippet HOT 1
- display info from interfaces with custom names
- Move over to using `/run/motd.d/` instead of `/run/console-login-helper-messages/motd.d/` for the default included information generators units HOT 15
- files can't be overriden HOT 1
- Script to check user's environment
- Failed systemd units' names not showing in Fedora 33 HOT 3
- service fails if triggered too quickly HOT 10
- MOTD not showing after login via ssh
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from console-login-helper-messages.