Leapp upgrade utility fails to resolve ansible dependencies during RHEL 8 upgrade on Red Hat Satellite 6.11
Environment
- Red Hat Satellite 6.11
Issue
- The
leapp upgradeorleapp preupgradefails to resolve ansible dependencies during RHEL-8.6 upgrade on Red Hat Satellite 6.11
Resolution
-
As a workaround of This content is not included.Bug 2087144, run below command on Satellite machine before running leapp upgrade:
# rpm -e ansible ansible-test --nodeps
For more KB articles/solutions related to Red Hat Satellite 6.x LEAPP Issues, please refer to the Consolidated Troubleshooting Article for Red Hat Satellite 6.x LEAPP Issues
Root Cause
-
Red Hat Engineering team is already aware of this bug and is currently tracking the same in This content is not included.Bug 2087144
-
RHEL8.5 use ansible-2.9 while RHEL8.6 use ansible-core 2.12 instead.
Diagnostic Steps
-
Below error trace is observed while running leapp upgrade utility.
2022-05-17 07:58:22.600270 [ERROR] Actor: dnf_transaction_check Message: DNF execution failed with non zero exit code. STDOUT: Last metadata expiration check: 0:01:14 ago on Tue May 17 07:56:56 2022. Package foreman-installer-katello-1:3.1.2.5-1.el7sat.noarch is already installed. Package rubygem-foreman_maintain-1:1.0.10-1.el7sat.noarch is already installed. Package satellite-installer-6.11.0.7-1.el7sat.noarch is already installed. Package katello-4.3.0-1.el7sat.noarch is already installed. Package foreman-installer-1:3.1.2.5-1.el7sat.noarch is already installed. STDERR: Warning: Package marked by Leapp to install not found in repositories metadata: rubygem-foreman_ansible_core rubygem-foreman-tasks-core rubygem-foreman_remote_execution_core log4j12 Warning: Package marked by Leapp to upgrade not found in repositories metadata: gpg-pubkey leapp python2-leapp leapp-upgrade-el7toel8 Transaction check: Problem: problem with installed package ansible-2.9.27-1.el7ae.noarch - cannot install the best update candidate for package ansible-2.9.27-1.el7ae.noarch - cannot install the best update candidate for package ansible-test-2.9.27-1.el7ae.noarch - package python38-galaxy-importer-0.4.1-2.el8pc.noarch requires /usr/bin/ansible-test, but none of the providers can be installed - package ansible-test-2.12.2-3.1.el8.x86_64 requires ansible-core = 2.12.2-3.1.el8, but none of the providers can be installed - package ansible-test-2.9.0-2.el8.noarch requires ansible = 2.9.0-2.el8, but none of the providers can be installed - package ansible-test-2.9.1-1.el8.noarch requires ansible = 2.9.1-1.el8, but none of the providers can be installed - package ansible-test-2.9.2-1.el8ae.noarch requires ansible = 2.9.2-1.el8ae, but none of the providers can be installed - package ansible-test-2.9.4-1.el8ae.noarch requires ansible = 2.9.4-1.el8ae, but none of the providers can be installed - package ansible-test-2.9.5-1.el8ae.noarch requires ansible = 2.9.5-1.el8ae, but none of the providers can be installed - package ansible-core-2.12.2-3.1.el8.x86_64 conflicts with ansible < 2.10.0 provided by ansible-2.9.27-1.el8ae.noarch - cannot install both ansible-2.9.27-1.el8ae.noarch and ansible-2.9.0-2.el8.noarch - cannot install both ansible-2.9.27-1.el8ae.noarch and ansible-2.9.1-1.el8.noarch - cannot install both ansible-2.9.27-1.el8ae.noarch and ansible-2.9.2-1.el8ae.noarch - cannot install both ansible-2.9.27-1.el8ae.noarch and ansible-2.9.4-1.el8ae.noarch - package python38-pulp-ansible-1:0.10.1-1.el8pc.noarch requires python38-galaxy-importer >= 0.3.1, but none of the providers can be installed - ansible-test-2.9.27-1.el7ae.noarch does not belong to a distupgrade repository - conflicting requests - ansible-2.9.27-1.el7ae.noarch does not belong to a distupgrade repository ============================================================ END OF ERRORS ============================================================
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.