I’m having an issue with Foreman Katello. I have some Errata listed as Applicable and Installable.
After updating the machines in question, those Errata remain listed as Applicable and Installable for the same number of hosts.
On Friday last week I upgraded from Foreman 1.15.x and Katello 3.4.x to 1.16.0 and 3.5 respectively. This functionality was working previously. It doesn’t now.
What I was expecting to happen is that the number of hosts would decrease.
I have - on each content host - tried both katello-tracer-upload and puppet agent -t in an effort to prompt the server.
On the server I have tried katello-service restart and a plain old reboot.
Is this a new bug in Katello 3.5?
I’ve just discovered that by going into one of the content hosts pages, then to the Errata tab, and using the “recalculate” button, the Errata are reset successfully. I’d rather not have to do it on a per-host basis.
@akofink Is there a change in newer version of katello-agent which is necessary that errata recalculation is done?
When is the errata recalculation done?
I thought it should be done while package upload and saw that there is some code in app/lib/actions/katello/host/upload_package_profile.rb which should do it but there is never a ForemanTask started.
The update_repositories_by_paths method is used in CandlepinProxiesController#enabled_repos. API docs here say “Used by katello-agent to keep the information about enabled repositories up to date. This information is then used for computing the errata available for the system.”