Problem:
Foreman 3.11 installed properly on the main server and functioned well. While updating the smart proxies connected to them the installer fails with ssl errors
Expected outcome:
insttaller should run
Foreman and Proxy versions:
3.11
Foreman and Proxy plugin versions:
Distribution and version:
RHEL 8.9
Other relevant data:
rechecking with kattello-cert-check and reinstalling the certificates on the mainserver does not report any errors. Trying to install a freshly created cert bundle on the smartproxies fails with same error.
Cert chain provided by main server itself is looking fine, its providing the server, issuing and root cert.
Issue seems to be not present prior to the update. There foreman-installer can be run without an error on the smart proxies.
2024-07-04 13:16:51 [NOTICE] [pre] Migrating PostgreSQL data
2024-07-04 13:16:59 [NOTICE] [pre] Analyzing the new PostgreSQL cluster
2024-07-04 13:17:22 [NOTICE] [pre] Upgrade to PostgreSQL 13 completed
2024-07-04 13:17:25 [NOTICE] [configure] Starting system configuration.
2024-07-04 13:17:38 [NOTICE] [configure] 250 configuration steps out of 1194 steps complete.
2024-07-04 13:17:41 [NOTICE] [configure] 500 configuration steps out of 1196 steps complete.
2024-07-04 13:17:42 [NOTICE] [configure] 750 configuration steps out of 1200 steps complete.
2024-07-04 13:17:44 [NOTICE] [configure] 1000 configuration steps out of 1221 steps complete.
2024-07-04 13:18:22 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_host[foreman-proxy-smartproxy1.domain.tld]: Could not evaluate: Exception SSL_connect returned=1 errno=0 state=error: certificate verify failed (self signed certificate in certificate chain) in get request to: https://mainserver.domain.tld/api/v2/hosts?search=name%3D%22smartproxy1.domain.tld%22
2024-07-04 13:18:22 [ERROR ] [configure] Wrapped exception:
2024-07-04 13:18:22 [ERROR ] [configure] SSL_connect returned=1 errno=0 state=error: certificate verify failed (self signed certificate in certificate chain)
2024-07-04 13:18:22 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[smartproxy1.domain.tld]: Could not evaluate: Exception SSL_connect returned=1 errno=0 state=error: certificate verify failed (self signed certificate in certificate chain) in get request to: https://mainserver.domain.tld/api/v2/smart_proxies?search=name%3D%22smartproxy1.domain.tld%22
2024-07-04 13:18:22 [ERROR ] [configure] Wrapped exception:
2024-07-04 13:18:22 [ERROR ] [configure] SSL_connect returned=1 errno=0 state=error: certificate verify failed (self signed certificate in certificate chain)
2024-07-04 13:18:22 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[smartproxy1.domain.tld]: Failed to call refresh: Exception SSL_connect returned=1 errno=0 state=error: certificate verify failed (self signed certificate in certificate chain) in get request to: https://mainserver.domain.tld/api/v2/smart_proxies?search=name%3D%22smartproxy1.domain.tld%22
2024-07-04 13:18:22 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[smartproxy1.domain.tld]: Exception SSL_connect returned=1 errno=0 state=error: certificate verify failed (self signed certificate in certificate chain) in get request to: https://mainserver.domain.tld/api/v2/smart_proxies?search=name%3D%22smartproxy1.domain.tld%22
2024-07-04 13:18:22 [ERROR ] [configure] Wrapped exception:
2024-07-04 13:18:22 [ERROR ] [configure] SSL_connect returned=1 errno=0 state=error: certificate verify failed (self signed certificate in certificate chain)
2024-07-04 13:18:26 [NOTICE] [configure] System configuration has finished.
Error 1: Puppet Foreman_host resource 'foreman-proxy-smartproxy1.domain.tld' failed. Logs:
/Stage[main]/Foreman_proxy::Register/Foreman_host[foreman-proxy-smartproxy1.domain.tld]
Adding autorequire relationship with Anchor[foreman::providers::oauth]
Starting to evaluate the resource (1209 of 1224)
Could not evaluate: Exception SSL_connect returned=1 errno=0 state=error: certificate verify failed (self signed certificate in certificate chain) in get request to: https://mainserver.domain.tld/api/v2/hosts?search=name%3D%22smartproxy1.domain.tld%22
Wrapped exception:
SSL_connect returned=1 errno=0 state=error: certificate verify failed (self signed certificate in certificate chain)
Evaluated in 0.01 seconds
Foreman_host[foreman-proxy-smartproxy1.domain.tld](provider=rest_v3)
Making get request to https://mainserver.domain.tld/api/v2/hosts?search=name%3D%22smartproxy1.domain.tld%22
Error 2: Puppet Foreman_smartproxy resource 'smartproxy1.domain.tld' failed. Logs:
/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[smartproxy1.domain.tld]
Adding autorequire relationship with Anchor[foreman::providers::oauth]
Starting to evaluate the resource (1211 of 1224)
Could not evaluate: Exception SSL_connect returned=1 errno=0 state=error: certificate verify failed (self signed certificate in certificate chain) in get request to: https://mainserver.domain.tld/api/v2/smart_proxies?search=name%3D%22smartproxy1.domain.tld%22
Wrapped exception:
SSL_connect returned=1 errno=0 state=error: certificate verify failed (self signed certificate in certificate chain)
Failed to call refresh: Exception SSL_connect returned=1 errno=0 state=error: certificate verify failed (self signed certificate in certificate chain) in get request to: https://mainserver.domain.tld/api/v2/smart_proxies?search=name%3D%22smartproxy1.domain.tld%22
Exception SSL_connect returned=1 errno=0 state=error: certificate verify failed (self signed certificate in certificate chain) in get request to: https://mainserver.domain.tld/api/v2/smart_proxies?search=name%3D%22smartproxy1.domain.tld%22
Wrapped exception:
SSL_connect returned=1 errno=0 state=error: certificate verify failed (self signed certificate in certificate chain)
Evaluated in 0.02 seconds
Foreman_smartproxy[smartproxy1.domain.tld](provider=rest_v3)
Making get request to https://mainserver.domain.tld/api/v2/smart_proxies?search=name%3D%22smartproxy1.domain.tld%22
Making get request to https://mainserver.domain.tld/api/v2/smart_proxies?search=name%3D%22smartproxy1.domain.tld%22