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 2227093

Summary: Task queue can be overloaded with import tasks to the exclusion of other work
Product: Red Hat Satellite Reporter: Daniel Alley <dalley>
Component: PulpAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Gaurav Talreja <gtalreja>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.12.4CC: dkliban, ggainey, gtalreja, osousa, rchan, rlavi, vcojot, vijsingh
Target Milestone: 6.14.0Keywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pulpcore-3.22.10 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2227908 2231501 (view as bug list) Environment:
Last Closed: 2023-11-08 14:20:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Daniel Alley 2023-07-27 19:49:10 UTC
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%

Comment 1 Robin Chan 2023-07-28 18:05:11 UTC
The Pulp upstream bug status is at closed. Updating the external tracker on this bug.

Comment 4 Gaurav Talreja 2023-09-26 10:27:14 UTC
VERIFIED.

Tested on Satellite 6.14.0 Snap 17.0
Version: python39-pulpcore-3.22.15-1.el8pc.noarch

Steps and observations:
1. Sync'ed repos as per 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.

Also we could check for the workers in use for content-import task with commands like "pulp task list --state running" and "pulp worker list --online"

And we've BZ 2233490 created to make this setting configurable with installer, as per discussion happened in its 6.12.z clone BZ.

Comment 7 errata-xmlrpc 2023-11-08 14:20:16 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 (Important: Satellite 6.14 security and bug fix 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/RHSA-2023:6818