Problem:
I have a working Foreman 2.4 + Katello 4.0 main server working. I’m trying to install another Foreman Smart Proxy. Used katello-certs-check + foreman-proxy-certs-generate for the Ssl certs.
But this option fails…
–foreman-proxy-register-in-foreman true
2021-05-19 18:10:45 [ERROR ] [configure] Error making POST request to Foreman at https://foremankatello.xxx/api/v2/smart_proxies: Unable to communicate with the proxy: ERF12-2530 [ProxyAPI::ProxyException]: Unable to detect features ([Net::HTTPServerException]: 403 “Forbidden”) for proxy https://foremansmartpxy01.yyy:9090/v2/features Please check the proxy is configured and running on the host.
2021-05-19 18:10:45 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[foremansmartpxy01.yyy]/ensure: change from ‘absent’ to ‘present’ failed: Error making POST request to Foreman at https://foremankatello01.xxx/api/v2/smart_proxies: Unable to communicate with the proxy: ERF12-2530 [ProxyAPI::ProxyException]: Unable to detect features ([Net::HTTPServerException]: 403 “Forbidden”) for proxy https://foremansmartpxy01.yyy:9090/v2/features Please check the proxy is configured and running on the host.
2021-05-19 18:10:47 [NOTICE] [configure] System configuration has finished.
From the Smart Proxy
https://foremankatello01.xxx:9090/features
[“ansible”,“dhcp”,“dynflow”,“httpboot”,“logs”,“openscap”,“pulpcore”,“puppet”,“puppetca”,“registration”,“ssh”,“templates”,“tftp”]
https://foremankatello01.xxx:9090/v2/features
could not read client cert from environment
From the main Foreman/Katello server
https://foremansmartpxy01.yyy:9090/features
[“ansible”,“container_gateway”,“dhcp”,“discovery”,“dynflow”,“httpboot”,“logs”,“pulpcore”,“puppet”,“puppetca”,“registration”,“ssh”,“templates”,“tftp”]
https://foremansmartpxy01.yyy:9090/v2/features
could not read client cert from environment
I don’t understand why the /v2/ is causing problems…
Expected outcome:
Foreman and Proxy versions:
Foreman and Proxy plugin versions:
Foreman 2.4 + Katello 4.0
Distribution and version:
CentOS 7.9.2009 (fresh install)
Other relevant data: