executor: return error message from the journal - #134
Open
alicefr wants to merge 1 commit into
Open
Conversation
Collaborator
Author
|
@HarshwardhanPatil07 PTAL |
HarshwardhanPatil07
requested changes
Aug 10, 2026
Collaborator
|
@alicefr I am not sure if we will have this issue of cap size in bootc-operator. |
Collaborator
Author
Yeah, it is a good point. But I'm afraid that we will cut the important output. Alternatively, we can filter the lines that starts with |
HarshwardhanPatil07
previously approved these changes
Aug 10, 2026
HarshwardhanPatil07
left a comment
Collaborator
There was a problem hiding this comment.
Valid! thank you very much.. just learning
Collaborator
|
filter sounds good too |
Collaborator
Author
|
@HarshwardhanPatil07 let's add the filter before merging this |
Previously, the output of the systemd unit was only reported in bootc
operator. Now, it is returned as part of the error when bootc switch
fails.
The output for the systemd unit is quite verbose, so we filter for the
lines containing the errors tag. The full output will be reduced from:
bootc stage failed: running bootc switch: Started bootc-operator-switch.service - [systemd-run] /usr/bin/bootc switch ghcr.io/bootc-dev/bink/node@sha256:9ce7d6d15b8558c226b4c41f3b27bf1722897b0c8a66c7a84a2877bca8d049f7.
Switching from image ghcr.io/bootc-dev/bink/node:v1.35-fedora-44 to ghcr.io/bootc-dev/bink/node@sha256:9ce7d6d15b8558c226b4c41f3b27bf1722897b0c8a66c7a84a2877bca8d049f7
Fetching ostree-unverified-registry:ghcr.io/bootc-dev/bink/node@sha256:9ce7d6d15b8558c226b4c41f3b27bf1722897b0c8a66c7a84a2877bca8d049f7
error: Switching: Switching (ostree): Preparing import: Fetching manifest: Target image does not have ostree.bootable label
bootc-operator-switch.service: Main process exited, code=exited, status=1/FAILURE
bootc-operator-switch.service: Failed with result 'exit-code'.
bootc-operator-switch.service: Consumed 210ms CPU time over 1.111s wall clock time, 155.2M memory peak.: exit status 1
to
'bootc stage failed: running bootc switch: error: Switching: Switching
(ostree): Preparing import: Fetching manifest: Target image does not have
ostree.bootable label: exit status 1'
The full message in any case is present in the bootc daemon logs.
Assisted-by: AI
Signed-off-by: Alice Frosi <afrosi@redhat.com>
Collaborator
Author
|
With the filter the message looks like: - lastTransitionTime: "2026-08-11T08:01:46Z"
message: 'bootc stage failed: running bootc switch: error: Switching: Switching
(ostree): Preparing import: Fetching manifest: Target image does not have
ostree.bootable label: exit status 1' |
Collaborator
Author
|
Currently the CI is broken |
HarshwardhanPatil07
approved these changes
Aug 11, 2026
Collaborator
|
Thank you! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Previously, the output of the systemd unit was only reported in bootc operator. Now, it is returned as part of the error when bootc switch fails.
The output of the systemd unit might be quite verbose, but it doesn't filter any information to avoid any precious information loss.
Fixes: #133