Installing Foreman-Katello issues

Problem:
I used this doc for installing foreman katello on my RHEL 8 VM using Centos8 install rom doc.
https://docs.theforeman.org/3.2/Installing_Server/index-katello.html#
Expected outcome:
Foreman Katello console should be running
Other relevant data:
Did research to fix errors at below steps but at the end we are getting error at foreman-installer --scenario katello

Step:4 Install the centos-release-ansible-29 package to enable repositories for dependencies of the Ansible collection support:
from the original doc we did these steps diffrently.

dnf install centos-release-ansible-29 – this command does not work so we did workaround and used this for RHEL

subscription-manager repos --enable ansible-2.8-for-rhel-8-x86_64-rpms

dnf -y install ansible

step:7 To enable powertools repository:
dnf config-manager --set-enabled powertools
Note: the above command only works for Centos
Substitute with below for RHEL8

subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms

[root@tecdevfm ~]# foreman-installer --scenario katello
2022-05-31 10:29:17 [NOTICE] [root] Loading installer configuration. This will take some time.
2022-05-31 10:29:29 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
2022-05-31 10:29:29 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
2022-05-31 10:35:13 [NOTICE] [configure] Starting system configuration.
2022-05-31 10:38:27 [NOTICE] [configure] 250 configuration steps out of 1693 steps complete.
2022-05-31 10:40:34 [NOTICE] [configure] 500 configuration steps out of 1693 steps complete.

2022-05-31 10:40:35 [NOTICE] [configure] 750 configuration steps out of 1697 steps complete.
2022-05-31 10:41:50 [ERROR ] [configure] Execution of ‘/bin/dnf -d 0 -e 1 -y install pulpcore-plugin(ansible)’ returned 1: Error:
2022-05-31 10:41:50 [ERROR ] [configure] Problem: package python38-pulp-ansible-1:0.10.1-1.el8.noarch requires python38-galaxy-importer >= 0.3.1, but none of the providers can be installed
2022-05-31 10:41:50 [ERROR ] [configure] - package python38-galaxy-importer-0.4.1-1.el8.noarch requires /usr/bin/ansible-test, but none of the providers can be installed
2022-05-31 10:41:50 [ERROR ] [configure] - package python38-galaxy-importer-0.4.1-2.el8.noarch requires /usr/bin/ansible-test, but none of the providers can be installed
2022-05-31 10:41:50 [ERROR ] [configure] - 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
2022-05-31 10:41:50 [ERROR ] [configure] - 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
2022-05-31 10:41:50 [ERROR ] [configure] - conflicting requests
2022-05-31 10:41:50 [ERROR ] [configure] - problem with installed package ansible-2.9.27-1.el8ae.noarch
2022-05-31 10:41:50 [ERROR ] [configure] /Stage[main]/Pulpcore::Plugin::Ansible/Pulpcore::Plugin[ansible]/Package[pulpcore-plugin(ansible)]/ensure: change from ‘purged’ to ‘present’ failed: Execution of ‘/bin/dnf -d 0 -e 1 -y install pulpcore-plugin(ansible)’ returned 1: Error:
2022-05-31 10:41:50 [ERROR ] [configure] Problem: package python38-pulp-ansible-1:0.10.1-1.el8.noarch requires python38-galaxy-importer >= 0.3.1, but none of the providers can be installed
2022-05-31 10:41:50 [ERROR ] [configure] - package python38-galaxy-importer-0.4.1-1.el8.noarch requires /usr/bin/ansible-test, but none of the providers can be installed
2022-05-31 10:41:50 [ERROR ] [configure] - package python38-galaxy-importer-0.4.1-2.el8.noarch requires /usr/bin/ansible-test, but none of the providers can be installed
2022-05-31 10:41:50 [ERROR ] [configure] - 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
2022-05-31 10:41:50 [ERROR ] [configure] - 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
2022-05-31 10:41:50 [ERROR ] [configure] - conflicting requests
2022-05-31 10:41:50 [ERROR ] [configure] - problem with installed package

Thank you in advace

I was able to resolve this issue used this command:
dnf install ansible-core ansible-test --allowerasing

ansible-core is now part of the appstream repository. You don’t have to enable any additional repository on EL8.

1 Like