Bug 1975501

Summary: Importing 20 repos with intersecting content caused deadlock error
Product: Red Hat Satellite Reporter: Lai <ltran>
Component: PulpAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED ERRATA QA Contact: Lai <ltran>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.10.0CC: ggainey, jsherril, jturel, paji, pcreech, rchan, ttereshc
Target Milestone: 6.10.0Keywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-16 14:12:09 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 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