-
Notifications
You must be signed in to change notification settings - Fork 27
99emergency-timeout: improvements to failure message #181
Conversation
If the config is invalid, the failure will show up here.
Line-wrap to 80 characters and add some line breaks.
LGTM, though I would like to solve the more general problem in #168 at some point. |
I imagine this was inspired partly because coreos/fedora-coreos-tracker#471 - any ideas on how we could make all of this information get printed out to all consoles specified via |
ok with this change I now see this on the console instead of what I saw in coreos/fedora-coreos-tracker#471 (comment)
Which is much better. |
@@ -29,7 +29,7 @@ _prompt_for_timeout() { | |||
if [[ -e /.emergency-shell-confirmed ]]; then | |||
return | |||
fi | |||
ignition_units="ignition-disks.service ignition-files.service ignition-mount.service" | |||
ignition_units="ignition-fetch.service ignition-disks.service ignition-files.service ignition-mount.service" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we can just glob on ignition-*
here so we don't hit this problem in the future if we add more ignition units.
Here are the Ignition logs: | ||
EOF | ||
journalctl -t ignition --no-pager --no-hostname -o cat | ||
echo | ||
fi |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we add an else to this if statement and just have it print out failed systemd unit info (assuming there is a failed systemd unit) in the case it's not related to ignition? This wouldn't have to be done in this PR, but is an idea to improve things for the future.
Re serial+VGA console, I'd still like to see coreos/fedora-coreos-tracker#136 happen. |
Would it make sense to defer the other suggested improvements to #168 and get this in as an incremental improvement? |
Agree.
I think so. Just gave #168 a look and you're right it pretty much implements exactly what I suggested. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fix line wrapping and add line breaks. Also remember to check
ignition-fetch.service
for failure.See also #168; cc @cgwalters.