Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2227908

Summary: Task queue can be overloaded with import tasks to the exclusion of other work
Product: Red Hat Satellite Reporter: Odilon Sousa <osousa>
Component: PulpAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Gaurav Talreja <gtalreja>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.12.4CC: dkliban, egolov, ggainey, iballou, rchan, rlavi, shwsingh
Target Milestone: 6.12.5Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pulpcore-3.18.23 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 2227093 Environment:
Last Closed: 2023-08-24 18:24:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Odilon Sousa 2023-07-31 19:35:16 UTC
+++ This bug was initially created as a clone of Bug #2227093 +++

Description of problem:

Import dispatches a task-per-repository. For large imports, with large repositories, this means that Pulp can't do anything else until the import is finished or nearly so, as all workers are busy importing repositories.


Version-Release number of selected component (if applicable):

6.12

How reproducible: 100%

--- Additional comment from  on 2023-07-28T18:05:11Z 

The Pulp upstream bug status is at closed. Updating the external tracker on this bug.

Comment 5 Robin Chan 2023-08-21 10:05:18 UTC
Requesting needsinfo from upstream developer dkliban, ggainey because the 'FailedQA' flag is set.

Comment 6 Evgeni Golov 2023-08-21 10:30:54 UTC
needinfo on pulpteam is not required, all changes are inside the installer

https://github.com/theforeman/puppet-pulpcore/pull/302

Comment 10 Gaurav Talreja 2023-08-22 13:19:58 UTC
Thanks ggainey and egolov for the help on this, after the discussion I've created another BZ to track this installer support/fix BZ 2233490. Hence we're good to verify this.

VERIFIED.

Tested on Satellite 6.12.5 Snap 2.0
Version: python39-pulpcore-3.18.25-1.el8pc.noarch

Steps and observations:
1. Sync'ed 2*available pulpcore-workers, created and published the CV, and export a content view version
2. Create a new org, upload manifest and run the content import with IMPORT_WORKERS_PERCENT setting.
3. When IMPORT_WORKERS_PERCENT isn't set in /etc/pulp/settings.py so it is default IMPORT_WORKERS_PERCENT=100, then no syncs were working while import was going on, and after import task completed repo sync worked nearly after an hour for small repos sync.
4. When IMPORT_WORKERS_PERCENT=50 is set in /etc/pulp/settings.py, then while import task is going on, which will utilize half of the available workers and syncs also works along with import without waiting for import tasks to finish.

Comment 14 errata-xmlrpc 2023-08-24 18:24:34 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Satellite 6.12.5 Async Update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:4749