Uploaded image for project: 'RHEL Conversions'
  1. RHEL Conversions
  2. RHELC-895

"No packages containing kernel modules available" when not enough RAM or disk space

XMLWordPrintable

    • 3
    • False
    • Hide

      None

      Show
      None
    • 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

       

            tkuratom@redhat.com Toshio Kuratomi
            mbocek@redhat.com Michal Bocek
            Daniel Diblik Daniel Diblik
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: