Error while upgrading from 2.0 to 2.1

Hi,

I upgraded successfully to Foreman 2.0 and Katello 3.15. Still using Foreman as its own smart proxy. Now I tried to upgrade to Foreman 2.1 and Katello 3.16 rc5. I installed the necessary packages before running the installer so there would be no need to access the smart proxy while the installer is running and the smart proxy stopped.

First thing was that I had to add --no-colors or the installer would fail. After that, unfortunately there is another problem (small except from the log):

Foreman_smartproxyhost.domain: Making get request to https://host.domain/api/v2/smart_proxies?search=name=“host.domain”
Foreman_smartproxyhost.domain: Received response 500 from request to https://host.domain/api/v2/smart_proxies?search=name=“host.domain”
/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[host.domain]: Could not evaluate: Proxy host.domain cannot be retrieved: unknown error (response 500)
/usr/share/foreman-installer/modules/foreman/lib/puppet/provider/foreman_smartproxy/rest_v3.rb:7:in proxy' /usr/share/foreman-installer/modules/foreman/lib/puppet/provider/foreman_smartproxy/rest_v3.rb:13:in id’
/usr/share/foreman-installer/modules/foreman/lib/puppet/provider/foreman_smartproxy/rest_v3.rb:17:in `exists?’

It looks like Puppet wants to access the proxy while it is down. Is there a way to get around this? I can provide more information if necessary.

Thanks,
Hans-Joachim

No, it wants to access the Foreman API to register the proxy. A HTTP 500 is an internal server error so the most likely place is /var/log/foreman/production.log though sometimes /var/log/httpd holds the answer.

Hi,

production log doesn’t tell much, but when I try to view the smart proxy in the GUI I get:

Missing template foreman/smart_proxies/show

Thanks,
Hans-Joachim

That sounds like the application wasn’t properly installed or at least not properly loaded. I wouldn’t know exactly why. Does rpm -qV foreman show you anything special?

rpm shows only the config files. I decided to revert to Foreman 2.0 and make a new attempt when I find time for it.

Thanks,
Hans-Joachim