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

Relax check_panel_memory actor's check #81

Open
wants to merge 1 commit into
base: almalinux-legacy
Choose a base branch
from

Conversation

sloanebernstein
Copy link

The check_panel_memory actor is intended to inhibit upgrades when the system lacks the memory needed to satisfy minimum system requirements for CloudLinux 8, which may vary depending on whether a control panel is installed. However, the actor is using the value for total memory as reported by the kernel, rather than the nominal amount of memory actually installed on the system. Since the kernel subtracts its own memory usage from this total, a nominally minimum-spec machine will always fail this check, something which does not appear to be intended. To address this, credit the machine with a certain amount of additional memory when performing the check. (This credited amount will not appear in the message if the check still fails.)

A limited number of observations showed that the total is around 50-75 MiB when installed memory is 2 GiB. As a reasonable middle ground, I have preliminarily set the credit to 96 MiB, in case additional kernel features are in use which might add to this total. That said, one common kernel feature which reserves a lot of memory is the crashkernel feature. A crashkernel=auto entry on the kernel command line can by itself use over a hundred MiB, and it may be useful for the check to test for this and notify the user that disabling this might be worthwhile.

The check_panel_memory actor is intended to inhibit upgrades when the
system lacks the memory needed to satisfy minimum system requirements
for CloudLinux 8, which may vary depending on whether a control panel is
installed. However, the actor is using the value for total memory as
reported by the kernel, rather than the nominal amount of memory
actually installed on the system. Since the kernel subtracts its own
memory usage from this total, a nominally minimum-spec machine will
always fail this check. To address this, credit the machine with a
certain amount of additional memory when performing the check. (This
credited amount will not appear in the message if the check still
fails.)
@github-actions
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 mergable.
If you want to re-run tests or request review, you can use following commands as a comment:

  • leapp-ci build to run copr build and e2e tests in OAMG CI
  • review please to notify leapp developers of review request

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.

@andrewlukoshko
Copy link
Member

Hello and thanks for PR.
This change is related to CloudLinux code and it's better to open this PR to CloudLinux's leapp-repository:
https://github.com/cloudlinux/leapp-repository

We're going to rebase AlmaLinux's leapp-repository to latest upstream and drop CloudLinux and panels support, see explanation here:
#86 (comment)
Current stable almalinux branch is now obsolete here and its development continued in CloudLinux's fork.

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.

2 participants