Problem: UNable to get capsule/smart proxy to join the foreman master server after renaming the server.
Expected outcome: Expecting the renaming not to impact the the service in the smart proxy
Foreman and Proxy versions: Foreman 3.3 and Katello 4.5
Foreman and Proxy plugin versions: Foreman 3.3 and Katello 4.5
Distribution and version: RHEL 8.6
Other relevant data:
2022-07-01 09:07:38 [NOTICE] [root] Loading installer configuration. This will take some time.
2022-07-01 09:07:41 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
2022-07-01 09:07:41 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
2022-07-01 09:07:43 [NOTICE] [configure] Starting system configuration.
2022-07-01 09:07:52 [NOTICE] [configure] 250 configuration steps out of 1068 steps complete.
2022-07-01 09:07:56 [NOTICE] [configure] 500 configuration steps out of 1073 steps complete.
2022-07-01 09:07:56 [NOTICE] [configure] 750 configuration steps out of 1075 steps complete.
2022-07-01 09:08:05 [NOTICE] [configure] 1000 configuration steps out of 1077 steps complete.
2022-07-01 09:08:07 [ERROR ] [configure] Error making POST request to Foreman at https://newname.localdomain/api/v2/smart_proxies: Unable to communicate with the proxy: ERF12-2530 [ProxyAPI::ProxyException]: Unable to detect features ([RestClient::SSLCertificateNotVerified]: SSL_connect returned=1 errno=0 state=error: certificate verify failed (unspecified certificate verification error)) for proxy https://newname.localdomain:9090/v2/features Please check the proxy is configured and running on the host.
2022-07-01 09:08:07 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[oldname.localdomain]/ensure: change from 'absent' to 'present' failed: Error making POST request to Foreman at https://foreman-server.localdomain/api/v2/smart_proxies: Unable to communicate with the proxy: ERF12-2530 [ProxyAPI::ProxyException]: Unable to detect features ([RestClient::SSLCertificateNotVerified]: SSL_connect returned=1 errno=0 state=error: certificate verify failed (unspecified certificate verification error)) for proxy https://newname.localdomain:9090/v2/features Please check the proxy is configured and running on the host.
2022-07-01 09:08:08 [NOTICE] [configure] System configuration has finished.
There were errors detected during install.
Please address the errors and re-run the installer to ensure the system is properly configured.
Failing to do so is likely to result in broken functionality.
The full log is at /var/log/foreman-installer/foreman-proxy-content.log
I generated a new cert and transfer to the smart proxy/capsule but open checking the cert under the smart proxy I see the old reference using the following command:
openssl s_client -connect $(hostname -f):8443 | openssl x509 -text
How can I tell the Capsule/Smart proxy to forget about the old name/cert and use the new server name and the new set of certs I transfer from the Foreman master server? I suspect something to do with the certs references on this case. Please advise.