Katello 4 / Foreman 2.4 - Centos 8.4

Fresh new CentOS 8.4 install without EPEL repo (as requested)

I followed installation the guide from here:

https://docs.theforeman.org/2.4/Installing_Server_on_Red_Hat/index-katello.html#centos-8

Problem:
2021-06-04 17:42:10 [ERROR ] [configure] Execution of ‘/bin/dnf -d 0 -e 1 -y install katello’ returned 1: Error:
2021-06-04 17:42:10 [ERROR ] [configure] Problem: package katello-4.0.1-1.el8.noarch requires candlepin >= 2.0, but none of the providers can be installed
2021-06-04 17:42:10 [ERROR ] [configure] - package candlepin-3.2.11-1.el8.noarch requires tomcatjss >= 7.2.1-7.1, but none of the providers can be installed
2021-06-04 17:42:10 [ERROR ] [configure] - cannot install the best candidate for the job
2021-06-04 17:42:10 [ERROR ] [configure] - package tomcatjss-7.6.1-1.module_el8.4.0+627+e8937f0b.noarch is filtered out by modular filtering
2021-06-04 17:42:10 [ERROR ] [configure] /Stage[main]/Katello/Package[katello]/ensure: change from ‘purged’ to ‘present’ failed: Execution of ‘/bin/dnf -d 0 -e 1 -y install katello’ returned 1: Error:
2021-06-04 17:42:10 [ERROR ] [configure] Problem: package katello-4.0.1-1.el8.noarch requires candlepin >= 2.0, but none of the providers can be installed
2021-06-04 17:42:10 [ERROR ] [configure] - package candlepin-3.2.11-1.el8.noarch requires tomcatjss >= 7.2.1-7.1, but none of the providers can be installed
2021-06-04 17:42:10 [ERROR ] [configure] - cannot install the best candidate for the job
2021-06-04 17:42:10 [ERROR ] [configure] - package tomcatjss-7.6.1-1.module_el8.4.0+627+e8937f0b.noarch is filtered out by modular filtering

Expected outcome:

Working instance of Foreman with katello plugin

Foreman and Proxy versions:

Foreman 2.4

Foreman and Proxy plugin versions:

katello 4.0.1

Distribution and version:

CentOS 8.4

Other relevant data:

You need to enable the pki-core module to do that. From the top of my head:

dnf module enable pki-core

The alternative is to follow the guide literally and don’t install katello but rather foreman-installer-katello. The installer should then take care of it.

1 Like

I’ll try with the pki-core module enabled and see how it goes, but I have followed the guide literally, I have installed foreman-installer-katello .

I’ve got the above error when I tried to use foreman-installer --scenario katello

Yes, that was it, it doesn’t matter if you install just katello or foreman-installer-katello, the OS needs pki-core module enabled.

How do I flag someone to modify the docs?

1 Like

You can create a pull request or at least an issue at GitHub - theforeman/foreman-documentation: Documentation for the Foreman Project and its ecosystem.

I gave this a try myself as I felt the installer ought to be handling this as well. Can you run the following on the log that hit the error?

 grep -r pki-core /var/log/foreman-installer/

That should tell us if it tried to enable it or if some other snag was potentially hit.

Bellow the log, I created another vm from the template I have just to be sure I get the same error.
I found that the template is an upgrade of CentOS 8.4 from 8.3, so not a clean install to 8.4

Just to collect more info I installed a CentOS 8.4 myself and the error doesn’t reproduce, it works as it should. so maybe is something related to upgrade.

/var/log/foreman-installer/katello.log:2021-06-04 23:05:57 [DEBUG ] [configure] /Package[pki-core]: Provider dnfmodule does not support features targetable; not managing attribute command
/var/log/foreman-installer/katello.log:2021-06-04 23:05:57 [DEBUG ] [configure] /Package[pki-core]: Provider dnfmodule does not support features install_only; not managing attribute install_only
/var/log/foreman-installer/katello.log:2021-06-04 23:05:57 [DEBUG ] [configure] /Package[pki-core]: Provider dnfmodule does not support features virtual_packages; not managing attribute allow_virtual
/var/log/foreman-installer/katello.log:2021-06-04 23:05:57 [DEBUG ] [configure] /Stage[main]/Candlepin::Install/Package[pki-core]/before: before to Package[candlepin]
/var/log/foreman-installer/katello.log:2021-06-04 23:07:08 [DEBUG ] [configure] /Package[pki-core]: Starting to evaluate the resource (264 of 1937)
/var/log/foreman-installer/katello.log:2021-06-04 23:07:09 [DEBUG ] [configure] Executing: '/usr/bin/dnf module enable -d 0 -e 1 -y pki-core'
/var/log/foreman-installer/katello.log:2021-06-04 23:07:11 [INFO  ] [configure] /Stage[main]/Candlepin::Install/Package[pki-core]/ensure: created
/var/log/foreman-installer/katello.log:2021-06-04 23:07:11 [DEBUG ] [configure] /Package[pki-core]: The container Class[Candlepin::Install] will propagate my refresh event
/var/log/foreman-installer/katello.log:2021-06-04 23:07:11 [DEBUG ] [configure] /Package[pki-core]: Evaluated in 2.92 seconds

Looks like the module should be enabled. Perhaps the problem is that we miss the dependency pki-core -> katello. Since katello pulls in candlepin, it’s needed but we don’t have it explicit.