Project

General

Profile

Bug #31411

Actions::Katello::Applicability::Hosts::BulkGenerate called many times with only a single host after sync plan runs

Added by Ian Ballou over 1 year ago. Updated 6 days ago.

Status:
Closed
Priority:
Normal
Category:
Hosts
Target version:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

The issue is described here: https://community.theforeman.org/t/errata-not-calculated-generateapplicability-fails-trying-to-calculate-deleted-hosts-katello-3-17/21273/7

The user has many hosts >10K. After running a sync plan and

Actions::Katello::Applicability::Repository::Regenerate
is called, BulkGenerate is called many times with a single host instead of plucking 50 hosts as it should. I'm thinking there may be some sort of race condition going on. This single host generation ends up with the user seeing many content hosts reporting no applicable content.

To reproduce, I'm thinking it would be good to first try the Regenerate action on a couple of repos that are associated to the same 10K content hosts. Perhaps there is an issue where hosts are being pushed and popped from the applicable host queue at the same time.

Associated revisions

Revision 9e06c62b (diff)
Added by Justin Sherrill about 1 year ago

Fixes #31411 - bulk insert into applicable host queue

History

#1 Updated by Jonathon Turel over 1 year ago

  • Triaged changed from No to Yes

#2 Updated by Jonathon Turel over 1 year ago

  • Target version changed from Katello 3.18.1 to Katello 3.18.2

#3 Updated by John Mitsch about 1 year ago

  • Target version changed from Katello 3.18.2 to Katello 4.1.0

#4 Updated by Ian Ballou about 1 year ago

  • Target version changed from Katello 4.1.0 to Katello 4.2.0

#5 Updated by The Foreman Bot about 1 year ago

  • Assignee set to Justin Sherrill
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/9361 added

#6 Updated by The Foreman Bot about 1 year ago

  • Fixed in Releases Katello 4.2.0 added

#7 Updated by Justin Sherrill about 1 year ago

  • Target version changed from Katello 4.2.0 to Katello 4.1.0

#8 Updated by Justin Sherrill about 1 year ago

  • Status changed from Ready For Testing to Closed

#9 Updated by The Foreman Bot 6 days ago

  • Pull request https://github.com/Katello/katello/pull/10108 added

Also available in: Atom PDF