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

CONVERT2RHEL_UNSUPPORTED_SKIP_KERNEL_CURRENCY_CHECK does not skip the check

XMLWordPrintable

    • False
    • False
    • Hide

      None

      Show
      None
    • 2
    • 2023-Q2
    • Testable

      On OL7.9 with the latest updates with having the rhel-7-server-rpms repo accidentally enabled, rh-ee-eferreir bumped into this critical-level error message:

      SystemExit: The version of the loaded kernel is different from the latest version in the enabled system repositories.
       Latest kernel version available in rhel-7-server-rpms: 3.10.0-1160.83.1.el7
       Loaded kernel version: 3.10.0-1160.83.1.0.1.el7
      
      To proceed with the conversion, update the kernel version by executing the following step:
      
      1. yum install kernel-3.10.0-1160.83.1.el7 -y
      2. reboot 

      The conversion is inhibited when the loaded OL7 kernel-3.10.0-1160.83.1.0.1.el7 is newer than the kernel-3.10.0-1160.83.1.el7 available in the enabled RHEL 7 repo. The bug is in that the CONVERT2RHEL_UNSUPPORTED_SKIP_KERNEL_CURRENCY_CHECK env var does not lead to skipping the check now.

      Reproducer:

      1. Install kernel (3.10.0-1160.83.1.0.1.el7) from the Oracle Linux 7 official repository
      2. Set the default kernel to above mentioned and reboot to it
      3. EnableĀ ONLY the Red Hat repository (rhel-7-server-rpms)
      4. Run convert2rhel and observe the error

      Acceptance criteria:

      • The behavior of the CONVERT2RHEL_UNSUPPORTED_SKIP_KERNEL_CURRENCY_CHECK environment variable is fixed to follow the meaning of the variable
        • When the loaded kernel is older or newer than some of the kernels available in the repos enabled on the system, using the environment variable allows the user to override the inhibitor that requests installing the latest kernel available (the message we see in the snipped above)

              ddiblik@redhat.com Daniel Diblik
              mbocek@redhat.com Michal Bocek
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: