Katello 3.15 doesn't show available package updates anymore

I have restarted all services (foreman-maintain service restart) a couple of times because of my other issue with the hanging sync tasks.

See my post above: the lastest bind updates are missing, too. Since today, there are also kernel and puppet updates. Yet, the count is still 0.

@gvde and @Laszlo,

The Pulp folks have brought a recent Pulp 2 issue + PR to my attention: https://github.com/pulp/pulp/pull/3990

It looks like there might be a regression relating to the latest version of Pulp 2 that you are both on. I haven’t seen anyone confirm it besides the PR owner, but I think the PR could help since the regression it targets relates to recent Katello changes in 3.15.1.1.

If testing the Pulp PR above seems too risky for your Katello server, then I’ll watch the issue for more confirmation from other Pulp devs and let you know. If you do want to test the Pulp PR, just make sure you restart your Pulp 2 services, re-upload your package profile, and regenerate applicability after applying the patch.

1 Like

With the upload I guess you mean ‘katello-package-upload -f’.

How do I “regenerate applicability”? I thought that is an automated process…

O.K. I found this solution at RedHat. Applied the patch, restarted all katello services and run the GenerateApplicability task. Now it shows the correct counts for my CentOS 7 counts. I didn’t even have to do the package upload.

So far no bad side effects from the patch.

1 Like

@gvde glad the applicability is working again.

For @Laszlo (or anyone else following along), after applying the Pulp PR I mentioned above and restarting all of your Pulp services, you can do the following to regenerate applicability for all hosts:

First: foreman-rake console
Then:

ForemanTasks.sync_task(::Actions::Katello::Host::GenerateApplicability, Host.all)

I tried this with an unpleasant result. Any insight?

irb(main):004:0> ForemanTasks.sync_task(::Actions::Katello::Host::GenerateApplicability, Host.all)
Traceback (most recent call last):
        8: from lib/tasks/console.rake:5:in `block in <top (required)>'
        7: from (irb):4
        6: from foreman-tasks (0.17.5) lib/foreman_tasks.rb:58:in `sync_task'
        5: from foreman-tasks (0.17.5) lib/foreman_tasks.rb:27:in `trigger_task'
        4: from foreman-tasks (0.17.5) lib/foreman_tasks.rb:48:in `rails_safe_trigger_task'
        3: from foreman-tasks (0.17.5) lib/foreman_tasks.rb:49:in `block in rails_safe_trigger_task'
        2: from foreman-tasks (0.17.5) lib/foreman_tasks.rb:29:in `block in trigger_task'
        1: from foreman-tasks (0.17.5) lib/foreman_tasks.rb:23:in `trigger'
RuntimeError (The Dynflow world was not initialized yet. If your plugin uses it, make sure to call Rails.application.dynflow.require! in some initializer)

What version of Katello are you on?

I have a quick workaround that should work:

  1. Open up /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.3/lib/dynflow/rails/configuration.rb
    -> You might need to update the dynflow version
  2. Search for self.rake_tasks_with_executor =
  3. See the line self.rake_tasks_with_executor = %w(db:migrate db:seed)
  4. Add console to the line like so:
  5. self.rake_tasks_with_executor = %w(db:migrate db:seed console)
  6. Open up the console again and see if it works now.

No, I am on v. 3.14.1 and Foreman 1.24.3. I seem to be having a similar problem and was following this thread, too.

@iballou — your fix seemed to have worked in 3.14.1, too. Thanks much for the tip.

Good to hear, applicability is working for your CentOS 7.8 client again? I’m curious which of the patches you applied since I was just about to ask you about updating to 3.15.1.1

I only applied the “console” addition to configuration.rb.
Since we are still running 1.24.x, I did not think that 3.15.x was an option.


Refreshing applicability has now made the errata visible.

1 Like

You’re right, you’d have to upgrade your Foreman too it seems. Anyway, glad that worked out without an upgrade.

After applying the patch from pulp the applicability is working again.

Thank you very much @iballou for your help! :vulcan_salute:

1 Like

i can confirm that the pulp patches work. I stumbeld over this Post after seeing all my EL7 based Systems fails to show applicable updates and wrong “Needs Reboot” status.

1 Like

If I upgrade to 3.16RC3 will these issues be addressed? (sounds like it?, indicated above 3.15.1.1 has the fixes)?

Just upgraded to 3.15 from 3.14 and having this exact same behavior.

The issue is in Pulp and it looks like that Pulp PR hasn’t been merged in yet. I would try applying the Pulp PR to fix the issue as long as you’re already on 3.15.1.1.

And afterwards, run this command in the foreman console from above:

ForemanTasks.sync_task(::Actions::Katello::Host::GenerateApplicability, Host.all)

Not sure how worthwhile a “Me too” is at this point, but me too. Getting “Combined Profile Update” tasks ending with a warning for just some content hosts, and some delayed/incorrect applicability data.

Not sure whether it’s related, but also getting “Publish content view” tasks ending up in a paused status during our weekly automated run since upgrade to 3.15.

How do I apply the pulp PR? I am at a loss looking at the pulp PR site mentioned here.