Actions
Bug #37260
openHave to run foreman-installer twice. First install fail due to pki-core module not enabled.
Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Description
First time I run foreman-installer --scenario katello
. I get this error:
Error 1: Puppet Package resource 'katello' failed. Logs: /Package[katello] Starting to evaluate the resource (167 of 1429) Evaluated in 3.71 seconds Package[katello](provider=dnf) Ensuring => present /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: Problem: package katello-4.11.1-1.el8.noarch from katello requires candlepin >= 2.0, but none of the providers can be installed - package candlepin-4.3.1-1.el8.noarch from candlepin requires pki-servlet-engine, but none of the providers can be installed - package candlepin-4.3.12-1.el8.noarch from candlepin requires pki-servlet-engine, but none of the providers can be installed - cannot install the best candidate for the job - package pki-servlet-engine-1:9.0.7-16.module+el8.1.0+3366+6dfb954c.noarch from rhui-rhel-8-for-x86_64-appstream-rhui-rpms is filtered out by modular filtering - package pki-servlet-engine-1:9.0.30-1.module+el8.3.0+6730+8f9c6254.noarch from rhui-rhel-8-for-x86_64-appstream-rhui-rpms is filtered out by modular filtering - package pki-servlet-engine-1:9.0.30-3.module+el8.5.0+11388+9e95fe00.noarch from rhui-rhel-8-for-x86_64-appstream-rhui-rpms is filtered out by modular filtering - package pki-servlet-engine-1:9.0.50-1.module+el8.7.0+15761+f86c9a56.noarch from rhui-rhel-8-for-x86_64-appstream-rhui-rpms is filtered out by modular filtering
Relevant log lines
2024-03-13 15:50:38 [DEBUG ] [configure] /Stage[main]/Candlepin::Install/Package[pki-core]/before: before to Package[candlepin] 2024-03-13 15:51:50 [DEBUG ] [configure] Package[katello](provider=dnf): Ensuring => present 2024-03-13 15:51:53 [ERROR ] [configure] Execution of '/bin/dnf -d 0 -e 1 -y install katello' returned 1: Error: 2024-03-13 15:52:28 [DEBUG ] [configure] Executing: '/usr/bin/dnf module enable -d 0 -e 1 -y pki-core'
So puppet knows that Package[candlepin]
needs Package[pki-core]
. However, Package[katello]
will install candlepin
due to rpm dependencies, which will fail because puppet did not know to install Package[pki-core]
before Package[katello]
.
The second time I ran foreman-installer it worked, because pki-core
had been installed after katello
failed.
Suggestion: Set up puppet to install pki-core
before katello
.
No data to display
Actions