Problem:
Error when registering external smart proxy to foreman UI.
Expected outcome:
Able to see external smart proxy in Foreman UI
Foreman and Proxy versions:
foreman-3.4 smart proxy-3.4
Foreman and Proxy plugin versions:
foreman 3.4 katello 4.6
Distribution and version:
Rocky Linux 8.6
Other relevant data:
2022-11-08 16:15:54 [ERROR ] [configure] Error making POST request to Foreman at https://tomtit.url3.net/api/v2/smart_proxies: Unable to communicate with the proxy: ERF12-2530 [ProxyAPI::ProxyException]: Unable to detect features ([RestClient::Exceptions::OpenTimeout]: Timed out connecting to server) for proxy https://nestor.url3.net:9090/v2/features Please check the proxy is configured and running on the host.
2022-11-08 16:15:54 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[nestor.url3.net]/ensure: change from ‘absent’ to ‘present’ failed: Error making POST request to Foreman at https://tomtit.url3.net/api/v2/smart_proxies: Unable to communicate with the proxy: ERF12-2530 [ProxyAPI::ProxyException]: Unable to detect features ([RestClient::Exceptions::OpenTimeout]: Timed out connecting to server) for proxy https://nestor.url3.net:9090/v2/features Please check the proxy is configured and running on the host.
2022-11-08 16:15:56 [NOTICE] [configure] System configuration has finished.
Command use when generating cert.tar file in foreman server:
foreman-proxy-certs-generate --foreman-proxy-fqdn smartproxy.example.com --certs-tar /root/smart-proxy_cert/smart-proxy_certs.tar
Command use when installing smart proxy feature on smart proxy base server
foreman-installer
–scenario foreman-proxy-content
–certs-tar-file “/root/smart-proxy_certs.tar”
–foreman-proxy-register-in-foreman “false”
–foreman-proxy-foreman-base-url “foreman url”
–foreman-proxy-trusted-hosts “foreman hostname”
–foreman-proxy-trusted-hosts “smart proxy hostname”
–foreman-proxy-oauth-consumer-key “oauth-consumer-key”
–foreman-proxy-oauth-consumer-secret “oauth-consumer-secret”
Also tried registration via foreman UI