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

Conversion fails with an unhelpful error when no subscription is available

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • rhel-conversions

      Conversion fails on disabling repos when there's no subscription available under the account or activation key used for the conversion

      [2024-06-20T16:11:54+0000] TASK - [Prepare: Subscription Manager - Disable all repositories] *********
      [2024-06-20T16:11:54+0000] DEBUG - Calling command 'subscription-manager repos --list-enabled'
      [2024-06-20T16:12:25+0000] DEBUG - Calling command 'subscription-manager repos --disable=*'
      CRITICAL - Could not disable subscription-manager repositories:
      This system has no repositories available through subscriptions.
      
      ERROR - (ERROR) SUBSCRIBE_SYSTEM::FAILED_TO_DISABLE_SUBSCRIPTION_MANAGER_REPOSITORIES - Could not disable repositories through subscription-manager.
       Description: As part of the conversion process, convert2rhel disables all current subscription-manager repositories and enables only repositories required for the conversion. convert2rhel was unable to disable these repositories, and the conversion is unable to proceed.
       Diagnosis: Failed to disable repositories: This system has no repositories available through subscriptions.
      .
       Remediations: N/A
      
      ERROR - Skipped ENSURE_KERNEL_MODULES_COMPATIBILITY. Skipped because SUBSCRIBE_SYSTEM was not successful
      ERROR - Skipped VALIDATE_PACKAGE_MANAGER_TRANSACTION. Skipped because ENSURE_KERNEL_MODULES_COMPATIBILITY and SUBSCRIBE_SYSTEM were not successful
      

      Reproduce:

      Acceptance criteria:

      • We catch the error "This system has no repositories available through subscriptions." and print message like "Make sure you have a RHEL subscription available through the provided RHSM credentials. A list of subscriptions available: <subscription-manager list --available>"

              Unassigned Unassigned
              ahosek@redhat.com Adam Hosek
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: