-
Bug
-
Resolution: Done-Errata
-
Critical
-
None
-
None
-
3
-
False
-
-
True
-
-
-
1.4 GA, 2023-Q2, 2023-R4
-
Testable
Problem description
We've had two bug reports where the conversion fails on:
[04/07/2023 09:19:56] DEBUG - Calling command 'repoquery --releasever=7Server --repoid rhel-7-server-rpms -f /lib/modules/*.ko*' [04/07/2023 09:20:34] DEBUG - Output of the previous repoquery command: No package provides /lib/modules/*.ko* CRITICAL - No packages containing kernel modules available in the enabled repositories (rhel-7-server-rpms). [04/07/2023 09:20:34] DEBUG - Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/convert2rhel/main.py", line 115, in main pre_ponr_conversion() File "/usr/lib/python2.7/site-packages/convert2rhel/main.py", line 256, in pre_ponr_conversion checks.perform_pre_ponr_checks() File "/usr/lib/python2.7/site-packages/convert2rhel/checks.py", line 136, in perform_pre_ponr_checks ensure_compatibility_of_kmods() File "/usr/lib/python2.7/site-packages/convert2rhel/checks.py", line 368, in ensure_compatibility_of_kmods rhel_supported_kmods = get_rhel_supported_kmods() File "/usr/lib/python2.7/site-packages/convert2rhel/checks.py", line 465, in get_rhel_supported_kmods ", ".join(system_info.get_enabled_rhel_repos()) File "/usr/lib/python2.7/site-packages/convert2rhel/logger.py", line 198, in _critical sys.exit(msg) SystemExit: No packages containing kernel modules available in the enabled repositories (rhel-7-server-rpms).
Reported first here: https://github.com/oamg/convert2rhel/issues/610
rhn-support-balhadji has bumped into the issue as well when running the conversion with a t2.micro on CentOS Linux 7.9 in AWS.
Both issue seems to be caused by the fact that there's not enough RAM available on the system.
Acceptance criteria:
- We've tried:
- reproducing the issue by running the conversion on CentOS Linux 7 in AWS with t2.micro hardware
- looking at how the following repoquery command behaves on RHEL 7 with not enough RAM - what code it returns, what output it prints:
repoquery --releasever=7Server --repoid rhel-7-server-rpms -f /lib/modules/*.ko*
- A fix is implemented based on the findings together with an integration test
- At minimum we need to check the return code of the repoquery command
- is related to
-
RHELC-1090 Corrupted rpm db on a low-spec machine
- To Do
- links to
-
RHEA-2023:124609 convert2rhel bug fix and enhancement update
-
RHEA-2023:124610 convert2rhel bug fix and enhancement update