Centos 8 Stream FOreman 3.3 Katello 4.5 install failing

Install procedure:
#Install the Puppet-release.rpm package:
dnf -y localinstall https://yum.puppet.com/puppet7-release-el-8.noarch.rpm;

#Install the katello-repos-latest.rpm package
dnf -y localinstall https://yum.theforeman.org/releases/3.3/el8/x86_64/foreman-release.rpm;

#install katello repos
dnf -y localinstall https://yum.theforeman.org/katello/4.5/katello/el8/x86_64/katello-repos-latest.rpm;

#Install katello repo package
dnf -y localinstall https://yum.theforeman.org/katello/4.5/katello/el8/x86_64/katello-4.5.0-1.el8.noarch.rpm;

Enable Foreman and katello for EL8

dnf -y module enable foreman:el8;
dnf -y module enable katello:el8;

#Install the centos-release-ansible-29 package to enable repositories for dependencies of the Ansible collection #support:
dnf -y install centos-release-ansible-29;

#Enable powertools repository:
dnf config-manager --set-enabled powertools;

#If the PostgreSQL 10 module has already been enabled, a module reset will need to be performed.
dnf -y module reset postgresql;
dnf -y module enable postgresql:12;

#Install foreman-katello installer
dnf -y install foreman-installer;

#Install foreman-katello installer
dnf -y install foreman-installer-katello.noarch katello-certs-tools.noarch;

foreman-installer --scenario katello --foreman-initial-admin-username “admin” --foreman-initial-admin-password “hunter.1963” --foreman-initial-admin-email “eevans@digitaldatatechs.com” --foreman-email-smtp-address “es.digitaldatatechs.com” --foreman-initial-organization “Digital Data Services” --enable-foreman-plugin-remote-execution-cockpit --enable-foreman-compute-ovirt --enable-foreman-compute-libvirt --enable-foreman-plugin-setup --enable-foreman-plugin-monitoring --enable-foreman-proxy-plugin-ansible --enable-foreman-plugin-ansible --enable-foreman-plugin-virt-who-configure --enable-foreman-plugin-templates --enable-puppet --enable-foreman-plugin-snapshot-management --foreman-foreman-service-puma-threads-min ‘5’

ERROR:
2022-09-10 08:53:43 [NOTICE] [root] Loading installer configuration. This will take some time.
2022-09-10 08:53:50 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
2022-09-10 08:53:50 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
2022-09-10 08:53:56 [NOTICE] [configure] Starting system configuration.
2022-09-10 09:16:48 [ERROR ] [configure] Execution of ‘/bin/dnf -d 0 -e 1 -y install postgresql-evr’ returned 1: Error: Unable to find a match: postgresql-evr
2022-09-10 09:16:48 [ERROR ] [configure] /Stage[main]/Katello::Application/Package[postgresql-evr]/ensure: change from ‘purged’ to ‘present’ failed: Execution of ‘/bin/dnf -d 0 -e 1 -y install postgresql-evr’ returned 1: Error: Unable to find a match: postgresql-evr
2022-09-10 09:17:02 [NOTICE] [configure] 250 configuration steps out of 1667 steps complete.
2022-09-10 09:19:03 [ERROR ] [configure] Execution of ‘/bin/dnf -d 0 -e 1 -y install pulpcore’ returned 1: Error: Unable to find a match: pulpcore
2022-09-10 09:19:03 [ERROR ] [configure] /Stage[main]/Pulpcore::Install/Package[pulpcore]/ensure: change from ‘purged’ to ‘present’ failed: Execution of ‘/bin/dnf -d 0 -e 1 -y install pulpcore’ returned 1: Error: Unable to find a match: pulpcore
2022-09-10 09:19:14 [ERROR ] [configure] Execution of ‘/bin/dnf -d 0 -e 1 -y install pulp-cli’ returned 1: Error: Unable to find a match: pulp-cli
2022-09-10 09:19:14 [ERROR ] [configure] /Stage[main]/Pulpcore::Cli/Package[pulp-cli]/ensure: change from ‘purged’ to ‘present’ failed: Execution of ‘/bin/dnf -d 0 -e 1 -y install pulp-cli’ returned 1: Error: Unable to find a match: pulp-cli
2022-09-10 09:21:37 [NOTICE] [configure] 500 configuration steps out of 1668 steps complete.
2022-09-10 09:22:00 [NOTICE] [configure] 750 configuration steps out of 1672 steps complete.
2022-09-10 09:25:18 [NOTICE] [configure] 1000 configuration steps out of 1698 steps complete.
2022-09-10 09:26:38 [NOTICE] [configure] 1250 configuration steps out of 1698 steps complete.
2022-09-10 09:32:44 [ERROR ] [configure] ‘/usr/sbin/foreman-rake db:migrate’ returned 1 instead of one of [0]
2022-09-10 09:32:44 [ERROR ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]/returns: change from ‘notrun’ to [‘0’] failed: ‘/usr/sbin/foreman-rake db:migrate’ returned 1 instead of one of [0]
2022-09-10 09:33:53 [ERROR ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]: Failed to call refresh: ‘/usr/sbin/foreman-rake db:migrate’ returned 1 instead of one of [0]
2022-09-10 09:33:53 [ERROR ] [configure] /Stage[main]/Foreman::Database/Foreman::Rake[db:migrate]/Exec[foreman-rake-db:migrate]: ‘/usr/sbin/foreman-rake db:migrate’ returned 1 instead of one of [0]
2022-09-10 09:34:18 [NOTICE] [configure] 1500 configuration steps out of 1698 steps complete.
2022-09-10 09:34:35 [NOTICE] [configure] System configuration has finished.

There were errors detected during install.
Please address the errors and re-run the installer to ensure the system is properly configured.
Failing to do so is likely to result in broken functionality.

The full log is at /var/log/foreman-installer/katello.log

I’m not sure why it’snot finding ther packages except for postgresql-evr. That should be a Centos 7 install.
I think the rake doesn’t work because postgresql-evr isn’t installed.
Need some help understanding why it’s failing.
I can attach the log if it would help.

Thanks in advance.

You forgot to enable the pulpcore module

dnf -y module enable pulpcore:el8 or a different command?

Eric Evans

Digital Data Services LLC

304.660.9080

Digitaldatatechs.com

https://digitaldatatechs.com/

image001.jpg

What version of pulpcore should it be using with Katello 4.5?

Eric Evans

Digital Data Services LLC

304.660.9080

Digitaldatatechs.com

https://digitaldatatechs.com/

image001.jpg

The correct pulpcore version gets chosen by the katello-repos package :slight_smile:
And there is currently also only 1 module stream in the repo :ok_hand:t2:

So yes, dnf module enable pulpcore:el8 is correct.

That gives me an error.

[root@katello yum.repos.d]# dnf module enable pulpcore:el8

Last metadata expiration check: 0:00:29 ago on Sat 10 Sep 2022 05:50:36 PM EDT.

Error: Problems in request:

missing groups or modules: pulpcore:el8

dnf module list doesn’t list pulpcore.

What am I missing?

Eric Evans

Digital Data Services LLC

304.660.9080

Digitaldatatechs.com

https://digitaldatatechs.com/

image001.jpg

Hm… interesting…
Could you check dnf list --installed | grep katello-repos, because Katello 4.5 should be the first version which has the module streams (and maybe cat /etc/yum.repos.d/katello.repo, as this should show a pulpcore link with version 3.18)

Btw I’m reading the first message now, there are a few unneeded steps in there :thinking:

dnf config-manager --enable powertools
dnf install https://yum.theforeman.org/releases/3.3/el8/x86_64/foreman-release.rpm \
https://yum.theforeman.org/katello/4.5/katello/el8/x86_64/katello-repos-latest.rpm \
https://yum.puppet.com/puppet7-release-el-8.noarch.rpm
dnf module enable katello:el8 pulpcore:el8
dnf update
dnf install foreman-installer-katello

The foreman module will get enabled by the katello module.
As of RHEL 8.6 ansible-core is in the AppStream repo, which also conflicts with the old version from the CentOS SIG repo.
PostgreSQL should not be installed/enabled on a clean system, but might differ in your environment.
foreman-install-katello depends on foreman-installer, as well as on katello-certs-tools.

Attached the list of the installed software.

Eric Evans

Digital Data Services LLC

304.660.9080

Digitaldatatechs.com

https://digitaldatatechs.com/

image001.jpg

(Attachment installed.txt is missing)

Why would PostgreSQL not be installed on a fresh system install?

That doesn’t make sense.

BTW, I have the web interface and can login, but don’t want to configure anything until I can verify the installation.

Eric Evans

Digital Data Services LLC

304.660.9080

Digitaldatatechs.com

https://digitaldatatechs.com/

image001.jpg

dnf module enable katello:el8 pulpcore:el8 Last metadata expiration check: 0:01:23 ago on Sun 11 Sep 2022 05:52:57 AM EDT.

Error: Problems in request:

missing groups or modules: pulpcore:el8

Eric Evans

Digital Data Services LLC

304.660.9080

Digitaldatatechs.com

https://digitaldatatechs.com/

image001.jpg

@eevans6913

I don’t see the attachment unfortunately, but maybe I will see it as soon as the mail gets into my inbox (if it sends me one)

If you didn’t please read the installation docs, they clearly state, that Foreman/Katello has to be installed on a freshly provisioned system that serves no other function except to run Foreman server. (ref)

That makes sense, most stuff is already configured, but not completely :slight_smile:

Hm could you send the attachment directly in Discourse or just the text, it didn’t arrive?
Especially the content of katello.repo could be very helpful

I went back to the snapshot of CentOS 8 Stream installed and updated.

Followed the instructions on the link and viola, it worked.

Thank you for your help.

It always helps to have good information.

Eric Evans

Digital Data Services LLC

304.660.9080

Digitaldatatechs.com

https://digitaldatatechs.com/

image001.jpg

1 Like

You’re welcome :slight_smile:

Good if you got it working!