Problem:
After removing the Azure Plugin on 1.17 and 1.18, the About Page in Foreman throws an error.
Expected outcome:
The plugin removal should not break the About page.
Foreman and Proxy versions:
1.18
Foreman and Proxy plugin versions:
1.18
Other relevant data:
The About page now displays this error:
Oops, we’re sorry but something went wrong The single-table inheritance mechanism failed to locate the subclass: ‘ForemanAzure::Azure’. This error is raised because the column ‘type’ is reserved for storing the class in case of inheritance. Please rename this column if you didn’t intend it to be used for storing the inheritance class or overwrite ComputeResource.inheritance_column to use another column for that information.
Please let me know if you’d like the trace output attached.
Do you still have an Azure Compute Resource configured under Compute Resources? I’m guessing since the stacktrace isn’t given, but I think it’s trying to render a compute resource that it no longer has the code for…
I don’t, only two compute resources for VMware. I’ve noticed this has also broken Host Groups - so I cannot modify them. If I try and re-install the plugin, it causes Foreman to fail to start completely.
Looks like there’s some leftover compute resource in the database, and manual cleanup will be needed. To remove it, you can open foreman-rake console and run the following command: