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

Increase resource limits to prevent crashes #887

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tomasfratrik
Copy link
Member

@tomasfratrik tomasfratrik commented Jan 16, 2025

If Leapp was run with low resource limits, a crash would occur. This commit adjusts the resource limits to higher values to prevent such crashes:

  • The first limit increased is the maximum number of open file descriptors.
  • The second is the limit for the maximum writable file size.

Note that this fix was first implemented into leapp-repository, but with fsize values being too low, the leapp tool started to crash, thats why it has to be implemented into the framework.

Successfully tested with very low fzise values (ulimit -f 1 && leapp preugrade passes).

Resolves: RHEL-26459 and RHEL-16881

If Leapp was run with low resource limits, a crash would occur.
This commit adjusts the resource limits to higher values to prevent such crashes:

* The first limit increased is the maximum number of open file descriptors.
* The second is the limit for the maximum writable file size.

Resolves: RHEL-26459 and RHEL-16881
Copy link

Thank you for contributing to the Leapp project!

Please note that every PR needs to comply with the Leapp Guidelines and must pass all tests in order to be mergeable.
If you want to request a review or rebuild a package in copr, you can use following commands as a comment:

  • review please @oamg/developers to notify leapp developers of the review request
  • /packit copr-build to submit a public copr build using packit

To launch regression testing public members of oamg organization can leave the following comment:

  • /rerun to schedule basic regression tests using this pr build and leapp-repository*main* as artifacts
  • /rerun 42 to schedule basic regression tests using this pr build and leapp-repository*PR42* as artifacts
  • /rerun-sst to schedule sst tests using this pr build and leapp-repository*main* as artifacts
  • /rerun-sst 42 to schedule sst tests using this pr build and leapp-repository*PR42* as artifacts

Please open ticket in case you experience technical problem with the CI. (RH internal only)

Note: In case there are problems with tests not being triggered automatically on new PR/commit or pending for a long time, please consider rerunning the CI by commenting leapp-ci build (might require several comments). If the problem persists, contact leapp-infra.

@tomasfratrik
Copy link
Member Author

/packit copr-build

@tomasfratrik
Copy link
Member Author

/packit retest-failed

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.

1 participant