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

Conversion fails when run with non-default repositories

XMLWordPrintable

    • False
    • False
    • Hide

      None

      Show
      None
    • 3
    • Testable

      This bug affects the CLI Convert2RHEL as well as the Conversions Experience in Insights. 

      All the pre-conversion analysis and conversion tasks in Insights are failing when specifying a non-default repository for the conversion. The tasks fails with:

      Couldn't download the geoipupdate-2.5.0-2.el7.x86_64 package which is needed to do a rollback of this action. Check to make sure that the CentOS Linux repositories are enabled and the package is updated to its latest version.
      Note that you can choose to disregard this check when running a conversion by setting the environment variable 'CONVERT2RHEL_INCOMPLETE_ROLLBACK=1' but not during a pre-conversion analysis.
      REMOVE_SPECIAL_PACKAGES::SPECIAL_PACKAGE_REMOVAL_FAILED

      However this doesn't seem to be the root of the problem as in the convert2rhel log reports that the non-default repository (rhel-7-server-optional-rpms in this case) wasn't found:

      [2024-07-03T10:29:14+0000] DEBUG - Calling command 'yumdownloader -v --destdir=/var/lib/convert2rhel/backup --setopt=reposdir=/var/lib/convert2rhel/backup/ed2e326f3aefc335463ab68aa15a72c2 --disablerepo=rhel* --disablerepo=rhel-7-server-optional-rpms geoipupdate-2.5.0-2.el7.x86_64'
      WARNING - Output from the yumdownloader call:
      Loading "fastestmirror" plugin
      Loading "product-id" plugin
      Loading "subscription-manager" plugin
      Updating Subscription Management repositories.
      Config time: 0.219
      Error getting repository data for rhel-7-server-optional-rpms, repository not found

       While a previous check to assert the optional repositories are available seems to be skipped:

      [2024-07-03T11:50:10+0000] TASK - [Prepare: Check if --enablerepo repositories are accessible] *******
      Did not perform the check of repositories due to the use of RHSM for the conversion.
      CUSTOM_REPOSITORIES_ARE_VALID has succeeded

      As result the error message reported at the end is misleading. I attach the convert2rhel.log after running the pre-analysis task in Insights stage.

      How to reproduce:

      • In Insights
        1. Setup a CentOS 7 machine and connect to stage Insights that already has the conversion task input parameters (RHINENG-8807)
        2. Do not manually enable any non-default repository on the system using "subscription-manager repos --enable <repoid>"
        3. Run the pre-conversion analysis task and select any non-default repository on the task input parameters page
        4. Run the task
      • In CLI
        • Run convert2rhel with a typo in the repository / non-exiting repository / inaccessible repository
          • E.g. convert2rhel -y --enablerepo bogus

      Acceptance criteria:

      • All checks convert2rhel performs ignore RHEL repositories that are enabled on the system at the time of executing convert2rhel:
        • convert2rhel disables repos named "rhel-*" (Reason: all repoids of RHEL repositories provided by Red Hat start with rhel-, e.g. rhel-7-server-rpms or rhel-8-for-x86_64-baseos-rpms)
        • convert2rhel disables repos passed through the --enablerepo CLI option when --no-rhsm is used
          • this is for the case where the customer configures e.g. [my-rhel-repo-mirror] on the system and leaves it enabled before running convert2rhel

              rolivier@redhat.com Rodolfo Olivieri
              rh-ee-ssantama Sergio Santamaria Riocerezo
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: