Problem: I installed Foreman 1.21.3 yesterday using the steps on the foreman website. I used the default install options. After the install I started both foreman and foreman-proxy. I was able to log in and add a smart proxy for the localhost to import puppet classes. When i try to import the puppet class I get the following error:
ERF12-2749 [ProxyAPI::ProxyException]: Unable to get environments from Puppet ([Errno::ECONNREFUSED]: Failed to open TCP connection to rhadoopappp02:8443 (Connection refused - connect(2) for “rhadoopappp02” port 8443)) for proxy https://rhadoopappp02:8443/puppet
When I look at the smart Proxies section under infrastructure, I see a X under status with the following message :
Failure: ERF50-5345 [Foreman::WrappedException]: Unable to connect ([ProxyAPI::ProxyException]: ERF12-7885 [ProxyAPI::ProxyException]: Unable to fetch logs ([Errno::ECONNREFUSED]: Failed to open TCP connection to rhadoopappp02:8443 (Connection refused - connect(2) for “rhadoopappp02” port 8443)) for proxy https://rhadoopappp02:8443/logs)
There are other messages i assume are related to this message in various parts of the smart proxies screen like unable to get puppetCA etc. I did not change any of the certs, their locations, or install anything on this server other than the foreman installer.
Expected outcome: SSL connection to succeed
Foreman and Proxy versions: Foreman 1.21.3 (i assume the proxy is the same since it was installed by the foreman installer? I dont know where to find this.)
Foreman and Proxy plugin versions: No plugins at this time.
Other relevant data:
[e.g. logs from Foreman and/or the Proxy, modified templates, commands issued, etc]
(for logs, surround with three back-ticks to get proper formatting, e.g.)
Not sure what all is needed to help troubleshoot this? i am happy to provide whatever is needed. Please note that i am only 2 days into this and i have googled a bunch of articles, but I still do not know 100% where everything is located on the server.
The server is a fresh install of Centos 7.6 and does not have an active firewall or selinux at this time.