Cannot upgrade from Foreman 3.2 to Foreman 3.3

Hi all when I try to upgrade from foreman 3.2 to 3.3 I get below error:

~# foreman-installer --noop --verbose
2023-03-03 15:21:42 [NOTICE] [root] Loading installer configuration. This will take some time.
2023-03-03 15:21:48 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
2023-03-03 15:21:48 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
2023-03-03 15:21:50 [NOTICE] [configure] Starting system configuration.
2023-03-03 15:22:00 [NOTICE] [configure] 250 configuration steps out of 1226 steps complete.
2023-03-03 15:22:00 [NOTICE] [configure] 500 configuration steps out of 1231 steps complete.
2023-03-03 15:22:00 [NOTICE] [configure] 750 configuration steps out of 1363 steps complete.
2023-03-03 15:22:20 [NOTICE] [configure] 1000 configuration steps out of 1392 steps complete.
2023-03-03 15:22:20 [NOTICE] [configure] 1250 configuration steps out of 1392 steps complete.
2023-03-03 15:22:20 [ERROR ] [configure] /Stage[main]/Foreman::Register/Foreman_host[foreman-foreman-proxy.example.com]: Could not evaluate: Exception Failed to open TCP connection to foreman-proxy.example.com:443 (Connection refused - connect(2) for "foreman-proxy.example.com" port 443) in get request to: https://foreman-proxy.example.com/api/v2/hosts?search=name%3D%22foreman-proxy.example.com%22
2023-03-03 15:22:20 [ERROR ] [configure] Wrapped exception:
2023-03-03 15:22:20 [ERROR ] [configure] Failed to open TCP connection to foreman-proxy.example.com:443 (Connection refused - connect(2) for "foreman-proxy.example.com" port 443)
2023-03-03 15:22:20 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_host[foreman-proxy-foreman-proxy.example.com]: Could not evaluate: Exception Failed to open TCP connection to foreman-proxy.example.com:443 (Connection refused - connect(2) for "foreman-proxy.example.com" port 443) in get request to: https://foreman-proxy.example.com/api/v2/hosts?search=name%3D%22foreman-proxy.example.com%22
2023-03-03 15:22:20 [ERROR ] [configure] Wrapped exception:
2023-03-03 15:22:20 [ERROR ] [configure] Failed to open TCP connection to foreman-proxy.example.com:443 (Connection refused - connect(2) for "foreman-proxy.example.com" port 443)
2023-03-03 15:22:20 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[foreman-proxy.example.com]: Could not evaluate: Exception Failed to open TCP connection to foreman-proxy.example.com:443 (Connection refused - connect(2) for "foreman-proxy.example.com" port 443) in get request to: https://foreman-proxy.example.com/api/v2/smart_proxies?search=name%3D%22foreman-proxy.example.com%22
2023-03-03 15:22:20 [ERROR ] [configure] Wrapped exception:
2023-03-03 15:22:20 [ERROR ] [configure] Failed to open TCP connection to foreman-proxy.example.com:443 (Connection refused - connect(2) for "foreman-proxy.example.com" port 443)
2023-03-03 15:22:22 [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.log

The forman.log:

(removed, will be reuploaded in another comment)

Foreman and Proxy versions: foreman 3.2.1 , foreman-proxy 3.2.1

Foreman and Proxy plugin versions:

Distribution and version: Ubuntu 20.04.4 LTS

I hope someone can help me…

The foreman.log:


2023-03-03 15:22:20 [INFO  ] [configure] Class[Foreman_proxy::Register]: Would have triggered 'refresh' from 1 event
2023-03-03 15:22:20 [DEBUG ] [configure] Class[Foreman_proxy::Register]: Scheduling refresh of Foreman_smartproxy[foreman-proxy.example.com]
2023-03-03 15:22:20 [DEBUG ] [configure] Class[Foreman_proxy::Register]: Evaluated in 0.00 seconds
2023-03-03 15:22:20 [DEBUG ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_host[foreman-proxy-foreman-proxy.example.com]: Starting to evaluate the resource (1363 of 1392)
2023-03-03 15:22:20 [DEBUG ] [configure] Foreman_host[foreman-proxy-foreman-proxy.example.com](provider=rest_v3): Making get request to https://foreman-proxy.example.com/api/v2/hosts?search=name%3D%22foreman-proxy.example.com%22
2023-03-03 15:22:20 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_host[foreman-proxy-foreman-proxy.example.com]: Could not evaluate: Exception Failed to open TCP connection to foreman-proxy.example.com:443 (Connection refused - connect(2)
 for "foreman-proxy.example.com" port 443) in get request to: https://foreman-proxy.example.com/api/v2/hosts?search=name%3D%22foreman-proxy.example.com%22
2023-03-03 15:22:20 [ERROR ] [configure] Wrapped exception:
2023-03-03 15:22:20 [ERROR ] [configure] Failed to open TCP connection to foreman-proxy.example.com:443 (Connection refused - connect(2) for "foreman-proxy.example.com" port 443)
2023-03-03 15:22:20 [DEBUG ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_host[foreman-proxy-foreman-proxy.example.com]: Evaluated in 0.00 seconds
2023-03-03 15:22:20 [DEBUG ] [configure] /Stage[main]/Foreman_proxy::Register/Datacat_collector[foreman_proxy::enabled_features]: Starting to evaluate the resource (1364 of 1392)
2023-03-03 15:22:20 [DEBUG ] [configure] Datacat_collector[foreman_proxy::enabled_features](provider=datacat_collector): Collected {"features"=>["Puppet", "Puppet CA", "Logs"]}
2023-03-03 15:22:20 [DEBUG ] [configure] Datacat_collector[foreman_proxy::enabled_features](provider=datacat_collector): Selecting source_key features
2023-03-03 15:22:20 [DEBUG ] [configure] Datacat_collector[foreman_proxy::enabled_features](provider=datacat_collector): Now setting field :features
2023-03-03 15:22:20 [DEBUG ] [configure] /Stage[main]/Foreman_proxy::Register/Datacat_collector[foreman_proxy::enabled_features]: Evaluated in 0.00 seconds
2023-03-03 15:22:20 [DEBUG ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[foreman-proxy.example.com]: Starting to evaluate the resource (1365 of 1392)
2023-03-03 15:22:20 [DEBUG ] [configure] Foreman_smartproxy[foreman-proxy.example.com](provider=rest_v3): Making get request to https://foreman-proxy.example.com/api/v2/smart_proxies?search=name%3D%22foreman-proxy.example.com%22
2023-03-03 15:22:20 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[foreman-proxy.example.com]: Could not evaluate: Exception Failed to open TCP connection to foreman-proxy.example.com:443 (Connection refused - connect(2) for "foreman-proxy.example.com" port 443) in get request to: https://foreman-proxy.example.com/api/v2/smart_proxies?search=name%3D%22foreman-proxy.example.com%22
2023-03-03 15:22:20 [ERROR ] [configure] Wrapped exception:
2023-03-03 15:22:20 [ERROR ] [configure] Failed to open TCP connection to foreman-proxy.example.com:443 (Connection refused - connect(2) for "foreman-proxy.example.com" port 443)
2023-03-03 15:22:20 [INFO  ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[foreman-proxy.example.com]: Would have triggered 'refresh' from 1 event
2023-03-03 15:22:20 [DEBUG ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[foreman-proxy.example.com]: The container Class[Foreman_proxy::Register] will propagate my refresh event
2023-03-03 15:22:20 [DEBUG ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[foreman-proxy.example.com]: Evaluated in 0.00 seconds
2023-03-03 15:22:20 [DEBUG ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy_host[foreman-proxy-foreman-proxy.example.com]: Starting to evaluate the resource (1366 of 1392)
2023-03-03 15:22:20 [INFO  ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy_host[foreman-proxy-foreman-proxy.example.com]: Dependency Foreman_host[foreman-proxy-foreman-proxy.example.com] has failures: true
2023-03-03 15:22:20 [INFO  ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy_host[foreman-proxy-foreman-proxy.example.com]: Dependency Foreman_smartproxy[foreman-proxy.example.com] has failures: true
2023-03-03 15:22:20 [DEBUG ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy_host[foreman-proxy-foreman-proxy.example.com]: Skipping because of failed dependencies
2023-03-03 15:22:20 [DEBUG ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy_host[foreman-proxy-foreman-proxy.example.com]: Resource is being skipped, unscheduling all events
2023-03-03 15:22:20 [DEBUG ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy_host[foreman-proxy-foreman-proxy.example.com]: Evaluated in 0.00 seconds

I solved like this:

vi /etc/foreman-installer/scenarios.d/foreman-answers.yaml

replace:
server_ssl_ca: “/etc/puppetlabs/puppet/ssl/certs/ca.pem”
with
server_ssl_ca: “/etc/puppetlabs/puppet/ssl/certs/foreman-proxy.example.com.pem”

after that it works for me

1 Like