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
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.
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.