"Leapp" does not honor "--target" option when using a local/custom repository for the upgrade

Solution Verified - Updated

Environment

  • Red Hat Enterprise Linux
  • Leapp
  • Local/custom repository

Issue

  • Leapp does not honor --target option when using a local/custom repository for the upgrade.
  • Why does leapp upgrade upgrades the system to RHEL 8.7 even though --target 8.6 is specified in the Leapp command?

Resolution

  • Ensure that the local repository contains the correct target version packages.

    For e.g 
    To upgrade the system to RHEL 8.6 version, make sure local repository is configured using RHEL 8.6 ISO. If using reposync to configure a local repository then make sure system release is set to 8.6 before running reposync. 
    

Root Cause

  • --target option with Leapp command works only when the system is registered to Red Hat Customer portal or Red Hat Satellite.
  • Local repository does not contain the information for which RHEL X.Y version they are created. Hence there is no way to verify whether all the provided repositories are of required target version or some of them are of latest version.
SBR
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.