-
Notifications
You must be signed in to change notification settings - Fork 602
[cleaner] lower timeout on storeutl when converting certs #4221
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
base: main
Are you sure you want to change the base?
[cleaner] lower timeout on storeutl when converting certs #4221
Conversation
|
Congratulations! One of the builds has completed. 🍾 You can install the built RPMs by following these steps:
Please note that the RPMs should be used only in a testing environment. |
|
Trivial reproducer: run cleaner on one (Red Hat?) entitlement certificate PEM file: Execution timeout will be 5m and a few seconds. Most of the time, I tried a few smarter changes like:
but nothing helped. But if one figures out the root cause and proposes a better solution than my workaround-ish patch, I will appreciate it. |
bmr-cymru
left a comment
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'm not familiar with openssl-storeutl at all but this behaviour sounds wonky. Since you can reproduce easily, do you think you might be able to come up with a simple reproducer outside sos? That would be good material for a report to https://github.com/openssl/openssl/issues/new?template=bug_report.md - a single Python script using subprocess.Popen maybe?
Ack to the code change as a workaround - one trivial note - since it is a workaround, perhaps it's worth commenting to that effect:
# Workaround openssl-storeutl delays (#4221)
Then there's less chance of it getting forgotten if/when the OpenSSL problem gets fixed.
For some certificates, storeutl command gets stuck when called via Popen. Decrease default 300s timeout to prevent redundant delays. This is rather a workaround than a fix of "HeadReader/pipe/storectl" problem. Closes: sosreport#4221 Signed-off-by: Pavel Moravec <pmoravec@redhat.com>
529534a to
453dbb2
Compare
|
Commit message reworded. I forgot to add one another attempt: This terminates swiftly. So some It would be great if somebody checks that, either way. |
TurboTurtle
left a comment
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.
Has a merge conflict in archive however.
|
OK, here is the minimalistic reproducer outside of This script is stuck for 5 minutes (see When replacing When replacing When replacing Sadly, we cant use Not sure now where the root cause error is, if Python or openssl. Also not sure if the What are your thoughts, @TurboTurtle and @pafernanr , if we add stderr ot stdout here? Pros: lowering time from 10s to 0.5s, cons: tons of errors in the |
For some certificates, storeutl command gets stuck when called via Popen. Decrease default 300s timeout to prevent redundant delays.
Closes: #4221
Please place an 'X' inside each '[]' to confirm you adhere to our Contributor Guidelines