Issue
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"