Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-3276

leapp fails when no repositories are enabled because `yum clean all` exits in 1

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • None
    • Moderate
    • rhel-upgrades
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • If docs needed, set a value
    • None
    • 57,005

      Description of problem:
      When there are no repositories enabled, leapp fails with:

      ============================================================
      ERRORS
      ============================================================

      2021-02-16 00:55:42.235256 [ERROR] Actor: scan_subscription_manager_info
      Message: Unable to use yum successfully
      Summary:
      Details: Command ['yum', 'clean', 'all'] failed with exit code 1.
      Stderr: There are no enabled repos.
      Run "yum repolist all" to see the repos you have.
      To enable Red Hat Subscription Management repositories:
      subscription-manager repos --enable <repo>
      To enable custom repositories:
      yum-config-manager --enable <repo>

      ============================================================
      END OF ERRORS
      ============================================================

      Version-Release number of selected component (if applicable):
      leapp-0.11.1-1.el7_9.noarch

      How reproducible:
      Everytime

      Steps to Reproduce:
      1. disable all repos
      2. leapp preupgrade
      3.

      Actual results:
      Message: Unable to use yum successfully
      Summary:
      Details: Command ['yum', 'clean', 'all'] failed with exit code 1.
      Stderr: There are no enabled repos.
      Run "yum repolist all" to see the repos you have.
      To enable Red Hat Subscription Management repositories:
      subscription-manager repos --enable <repo>
      To enable custom repositories:
      yum-config-manager --enable <repo>

      Expected results:
      Leapp could enable all repos to clear cache

      1. yum clean all --enablerepo=*

      Additional info:

              leapp-notifications leapp-notifications
              rhn-support-jcastran John Castranio
              leapp-notifications leapp-notifications
              RHEL Upgrades QE Team RHEL Upgrades QE Team
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: