So, when I decided to upgrade our Foreman/Katello server from 2.0.3 to 2.1.3, I noticed too late that I was copy/pasting commands from the nightly version instead of 3.16.
So I went through a rather painful process of downgrading packages and trying to fix things. To some extend that worked fairly well - I got to a point where I managed to successfully run ‘foreman-installer’ after which I could access the GUI again with the ‘About’ showing version 2.1.3. Looks like most is working again - the only issues left all seem to be related to hostgroup stuff:
Edit a host group:
kickstart_repository_id' for #<Hostgroup:0x00007fa8fb6d6fb8> Did you mean? .... Provision a host: undefined method kickstart_repository_id’ for #Hostgroup:0x00007fa8fa3d0428 Did you mean? …
Edit a host:
lifecycle_environment_id' for #<Hostgroup:0x00007fa8e0053a30> Did you mean? .... Remote execute command: undefined method sudo_password=’ for #JobInvocation:0x00007fa8f9b6ed70 Did you mean? sudo_password
And I guess there are some more I didn’t run into yet.
So, still pretty messy although things don’t look too bad at first sight - looks like some generic issue that might be fixed by reverting some more files. Any suggestions?
Another thing I’ve been trying to figure out: is it in some way possible to reinstall things without touching the db(s)? (Well the nightly update also did some db migration so my biggest fear is that there is some work there too).
The final option is to shoot myself but I’d rather not go for that solution … (should have done that before starting the upgrade maybe)