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

leapp should inform users that they must have the Source versions "base repos" enabled.

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:
      leapp upgrade fails when yum clean all, fails.

      yum clean all fails if no repositories are enabled.

      This command is run 1st with the Source repos, and then again with the Target version repos. If it fails, the error is the same

      **leapp-upgrade.log
      External command has finished: ['subscription-manager', 'list', '--consumed']
      External command has started: ['yum', 'clean', 'all']
      Loaded plugins: product-id, ps, search-disabled-repos, subscription-manager
      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>
      Command ['yum', 'clean', 'all'] failed with exit code 1.
      External command has finished: ['yum', 'clean', 'all']

      **leapp-report.txt
      Risk Factor: high
      Title: Unable to use yum successfully
      Summary:

      {"details": "Command ['yum', 'clean', 'all'] failed with exit code 1.", "stderr": "There are no enabled repos.\n Run \"yum repolist all\" to see the repos you have.\n To enable Red Hat Subscription Management repositories:\n subscription-manager repos --enable <repo>\n To enable custom repositories:\n yum-config-manager --enable <repo>\n"}

      Key: bc36ea705f351c536dd1272a4d085c2b26b5f429

      ~~~~~~~~~~~~~~~~

      Can we change this so that if it fails on the first run, it better informs the customer, and engineers, that we're talking about either the Source or the Target repositories that aren't enabled?

      "Yum clean all failed, ensure you have <Source base repos such as rhel-7-server-rpms> enabled"

              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:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: