Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

monitor: increase buffer to deal with very big messages #1200

Merged
merged 1 commit into from
Feb 7, 2025

Conversation

mvo5
Copy link
Contributor

@mvo5 mvo5 commented Feb 7, 2025

This commit incrases the buffer os the osbuild message scanner to deal with very big messages. The default size of 64kb is too small for the dracut stage which will generate 5447 messages that /dev/log is not available and they come so rapidly that osbuild will pick them up in one big chunk.

This is a short term fix, the deeper fix should be to tweak the osbuild monitor to have a smaller buffer size when sending stdout/stderr output from stages to the monitor. This will fix a crash in the bootc-image-builder anaconda builds that is currently breaking the integration test in konflux.

See also osbuild/osbuild#1976

This commit incrases the buffer os the osbuild message scanner
to deal with very big messages. The default size of 64kb is too
small for the `dracut` stage which will generate 5447 messages
that /dev/log is not available and they come so rapidly that
osbuild will pick them up in one big chunk.

This is a short term fix, the deeper fix should be to tweak
the osbuild monitor to have a smaller buffer size when sending
stdout/stderr output from stages to the monitor. This will
fix a crash in the bootc-image-builder anaconda builds that
is currently breaking the integration test in konflux.

See also osbuild/osbuild#1976
@mvo5 mvo5 requested a review from a team as a code owner February 7, 2025 11:53
@mvo5 mvo5 requested review from thozza and schuellerf February 7, 2025 11:53
@achilleas-k achilleas-k enabled auto-merge February 7, 2025 12:01
@achilleas-k achilleas-k added this pull request to the merge queue Feb 7, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Feb 7, 2025
@mvo5 mvo5 added this pull request to the merge queue Feb 7, 2025
Merged via the queue into osbuild:main with commit 17fe1ef Feb 7, 2025
18 checks passed
@mvo5 mvo5 deleted the tweak-osbuild-status branch February 7, 2025 18:06
mvo5 added a commit to mvo5/bootc-image-builder that referenced this pull request Feb 7, 2025
This commit updates the images library to pull in the fix [0] for
the overly long messages from osbuild. This should test the
(previously) failing test that runs the centos-9 ISO with an
attached terminal.

[0] osbuild/images#1200
@cgwalters
Copy link
Contributor

Wow, that must have been painful to debug...

mvo5 added a commit to mvo5/bootc-image-builder that referenced this pull request Feb 8, 2025
This commit updates the images library to pull in the fix [0] for
the overly long messages from osbuild. This should test the
(previously) failing test that runs the centos-9 ISO with an
attached terminal.

[0] osbuild/images#1200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants