Problem:
When I use hostgroup search, and try to use keyword “class” for filtering my hostgroups, Foreman crashes with next error. This keyword is suggested by tooltip that appears, when I start to search
Oops, we're sorry but something went wrong undefined method `klass' for nil:NilClass
Expected outcome:
Be able to filter hostgroups by puppetclass
Foreman and Proxy versions:
3.2.1
Distribution and version:
We run both Foreman and Puppet on Centos 8 Stream
Other relevant data:
We also noticed that if we get info about hostgroup via API, there is no information about Puppet classes and search is also generate the same error as I have described above.
We faced this issue afrer we had updated Foreman to version 3.2. In Foreman 1.24 and 2.5 everything works good.
p.s. Also I wonder if we can use Foreman API to manage puppetclasses? In API documentation for Foreman v3.2 there are no endpoints for puppetclasses.
Thanks for confirming this issue on newer version of Foreman.
But /apidoc shows nothing, only blank page. Maybe something is broken. I will take a closer look, thanks for advice.