Hello Foreman community,
I’ve installed Foreman with Katello from scratch and I’m currently unable to synchronize any repository.
Problem:
Katello does not use the configured HTTP proxy for repository syncs at all.
Expected outcome:
Katello should use the configured HTTP proxy for repository syncs.
What I’ve done so far:
I’ve created a new proxy under Infrastructure > HTTP Proxies
, where the proxy test (“Test Connection” button) itself did succeed, put the proxy as global default under Administer > Settings > Content > Default HTTP Proxy
and double-checked my proxy settings for the repositories I want to synchronize. I’ve also tried doing this via hammer CLI and foreman-rake katello:update_default_http_proxy
task - unfortunately without success. I could only verify the task to synchronize my repositories is trying to contact the upsteam URLs directly.
While browsing the forum, I found topics like this: How to sync yum repos via proxy
Promising, but unfortunately no solution anymore. Also, the --katello-proxy parameters for the foreman-installer are deprecated since around v1.24.
Test repository for yum content: https://packages.elastic.co/elasticsearch/2.x/centos
Any help would be much appreciated.
Foreman and Proxy versions:
Foreman: 2.1.2
Foreman and Proxy plugin versions:
Katello: 3.16
Distribution and version:
Oracle Linux 7.8
Other relevant data:
All I can do is to verify the proxy has not been used at all, except for the “Test Connection” button while creating or updating my HTTP proxy.
Basically, the following exception is raised, because the HTTP proxy is not being used:
Katello::Errors::Pulp3Error: Cannot connect to host packages.elastic.co:443 ssl:default [Network is unreachable]
I can provide more detailed information if needed.
Best regards