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 1975501 - Importing 20 repos with intersecting content caused deadlock error
Summary: Importing 20 repos with intersecting content caused deadlock error
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Pulp
Version: 6.10.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.10.0
Assignee: satellite6-bugs
QA Contact: Lai
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-23 19:55 UTC by Lai
Modified: 2021-11-16 14:12 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-16 14:12:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Pulp Redmine 7904 0 Normal CLOSED - CURRENTRELEASE PulpImport can deadlock when importing Centos*-base and app-stream in one import file 2021-07-23 14:09:07 UTC
Pulp Redmine 8633 0 Normal CLOSED - CURRENTRELEASE PulpImport with overlapping content can fail with unique-constraint violation 2021-07-23 14:08:15 UTC
Red Hat Product Errata RHSA-2021:4702 0 None None None 2021-11-16 14:12:16 UTC

Description Lai 2021-06-23 19:55:02 UTC
Description of problem:
While importing 20 repos that contains intersecting content cause a deadlock error -> https://gist.github.com/parthaa/3094ec8a5bd0a9d584cff7fbf73b0487

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

Steps to Reproduce:
1. Get a satellite and set the rh download policy to "immediate."  This can be found in administer -> setting
2. Import a manifest
3. Enable 20 repos that contains some of the same rpms across the repos
4. Sync the repos
5. Create a cv and add the 20 repos to the cv
6. Publish the cv
7. Run export command: hammer content-export complete version --id <cv-id> --organization-id <org-id>
8. On another satellite, import a manifest that contains the repos as step 2-3
9. Set the rh download policy to "immediate" and set the "Disconnected Mode" to "Yes"
10. scp the files from 7 to /var/lib/pulp/imports
11. Set write permissions to /var/lib/pulp/imports/<dir that was exported>
12. Run the import command: hammer conent-import version --organization-id <org-id> --path /var/lib/pulp/imports/<dir with imports>

Actual results:
12) [...............................                                                                                                                                ] [20%]
Error: 1 subtask(s) failed for task group /pulp/api/v3/task-groups/<>

Expected results:
12) The import should be successful.

Additional info:

Comment 3 pulp-infra@redhat.com 2021-07-23 14:08:16 UTC
The Pulp upstream bug status is at CLOSED - CURRENTRELEASE. Updating the external tracker on this bug.

Comment 4 pulp-infra@redhat.com 2021-07-23 14:08:19 UTC
The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug.

Comment 5 pulp-infra@redhat.com 2021-07-23 14:09:05 UTC
The Pulp upstream bug status is at CLOSED - CURRENTRELEASE. Updating the external tracker on this bug.

Comment 6 pulp-infra@redhat.com 2021-07-23 14:09:07 UTC
The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug.

Comment 7 pulp-infra@redhat.com 2021-07-23 15:08:43 UTC
All upstream Pulp bugs are at MODIFIED+. Moving this bug to POST.

Comment 8 Lai 2021-08-18 15:07:27 UTC
Used the steps in the description for retesting.

Verified that I was able to import successfully.

Verified on 6.10 snap 13

Comment 11 errata-xmlrpc 2021-11-16 14:12:09 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 (Moderate: Satellite 6.10 Release), 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-2021:4702


Note You need to log in before you can comment on or make changes to this bug.