Foreman Installation Error installing pulpcore

Problem:

i try to install foreman proxy content Scenario:

foreman-installer --scenario foreman-proxy-content --certs-tar-file “/root/smart_proxy_certs/server.local.tar” --foreman-proxy-register-in-foreman “true” --foreman-proxy-foreman-base-url “https://foreman.local” --foreman-proxy-trusted-hosts “foreman.local” --foreman-proxy-trusted-hosts “server.local” --foreman-proxy-oauth-consumer-key “” --foreman-proxy-oauth-consumer-secret “”

and i get following error:

2024-08-28 16:39:58 [ERROR ] [configure] Execution of ‘/bin/dnf -d 0 -e 1 -y install pulpcore’ returned 1: Error: Unable to find a match: pulpcore
2024-08-28 16:39:58 [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

These are the repositories i have subscribed:

https://yum.theforeman.org/pulpcore/3.6/el8/x86_64/
https://yum.theforeman.org/releases/3.6/el8/x86_64/
http://yum.theforeman.org/plugins/3.6/el8/x86_64/
https://yum.theforeman.org/katello/4.5/katello/el8/x86_64/
https://yum.puppet.com/puppet/el/8/x86_64

Expected outcome:

successfull installation

Foreman and Proxy versions:
3.6.2

How did you end up with these versions?
Foreman 3.6 (while long EOL) should be using Katello 4.8 and Pulpcore 3.22.

(also, not sure if that combo would work with Puppet 8, but that’s a different issue alltogether)

1 Like

i have now Katello 4.8 and Pulpcore 3.22 repositories.
Puppet7 was already installed and not puppet8, i wrote it false.

But i got the same error:

2024-08-29 15:08:22 [ERROR ] [configure] Execution of ‘/bin/dnf -d 0 -e 1 -y install pulpcore’ returned 1: Error: Unable to find a match: pulpcore
2024-08-29 15:08:22 [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

When setting up the repositories, did you enable the right dnf modules too?
Something like dnf module enable katello:el8 pulpcore:el8?

yes thank you very much, that was the problem :slight_smile:

1 Like