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 2056702 - Import library with overlapping content can fail with unique-constraint violation
Summary: Import library with overlapping content can fail with unique-constraint viola...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Pulp
Version: 6.10.2
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.12.0
Assignee: satellite6-bugs
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-21 22:09 UTC by Joniel Pasqualetto
Modified: 2024-08-02 10:05 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2103100 2170947 (view as bug list)
Environment:
Last Closed: 2022-11-16 13:33:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github pulp pulpcore issues 2589 0 None closed Concurrent PulpImports with iverlapping content can still fail. 2022-05-18 17:25:36 UTC
Github pulp pulpcore issues 2854 0 None closed Fix retry logic for PulpImpotr process. 2022-07-14 20:29:09 UTC
Red Hat Issue Tracker SAT-12449 0 None None None 2022-08-24 21:56:17 UTC
Red Hat Knowledge Base (Solution) 6786261 0 None None None 2022-03-07 07:42:42 UTC
Red Hat Product Errata RHSA-2022:8506 0 None None None 2022-11-16 13:33:37 UTC

Description Joniel Pasqualetto 2022-02-21 22:09:22 UTC
Description of problem:

Importing library with overlapping content on repositories may still hit a condition to fail with unique-constraint, even after [1]

[1] https://pulp.plan.io/issues/8633

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


How reproducible:
Unsure

Steps to Reproduce:
1. Have multiple repositories with overlapping content
2. Export the the entire library
3. Import the library (??)

Actual results:

Import tasks may fail

Expected results:

Import task should not fail

Additional info:

Feb 18 16:37:09 satellite pulpcore-worker-16: pulp [c4544ea4-4cbb-496b-868b-e2362973317b]: pulpcore.app.tasks.importer:INFO: ...1 import-errors encountered importing pulp_rpm.app.modelresource.PackageResource.json from repository-Red_Hat_Enterprise_Linux_7_Server_RPMs_x86_64_7Server-45550_9, retrying
Feb 18 16:45:06 satellite pulpcore-worker-16: pulp [c4544ea4-4cbb-496b-868b-e2362973317b]: pulpcore.app.tasks.importer:ERROR: FATAL import-failure importing pulp_rpm.app.modelresource.PackageResource.json from repository-Red_Hat_Enterprise_Linux_7_Server_RPMs_x86_64_7Server-45550_9

Comment 10 Lai 2022-06-08 05:01:56 UTC
Steps to retest:
1. Have multiple repositories with overlapping content (I chose rhel7)
2. Export the the entire library
3. Import the library

Expected result:
Import should be successful and contains all the library content

Actual result:
Import is successful and contains all the library content


There's no concrete way to test this since it was observed in RHEL7 and on one customer db.

Verified on 6.11 snap 23 with python38-pulpcore-3.16.8-2.el8pc.noarch

Comment 12 pulp-infra@redhat.com 2022-06-16 15:23:56 UTC
Requesting needsinfo from upstream developer dkliban, ggainey because the 'FailedQA' flag is set.

Comment 15 Brad Buckingham 2022-07-07 12:57:25 UTC
Moving to POST based upon discussion in Satellite standup.

Comment 17 Lai 2022-08-24 21:49:37 UTC
Steps to retest:
1. Have multiple repositories with overlapping content (I chose rhel7)
2. Export the the entire library
3. Import the library

Expected result:
Import should be successful and contains all the library content

Actual result:
Import is successful and contains all the library content


There's no concrete way to test this since it was observed in RHEL7 and on one customer db.

Verified in 6.12 snap 7

Comment 22 errata-xmlrpc 2022-11-16 13:33:27 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.12 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-2022:8506

Comment 23 Red Hat Bugzilla 2023-09-18 04:32:27 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days

Comment 24 Marypage 2024-08-02 10:05:50 UTC
Problem Description:
When importing a library with duplicate content from different repositories, there may be a failure due to a unique constraint violation.

Steps to Reproduce:
Have multiple repositories with overlapping content.
Export the entire library.
Attempt to import the library.
Actual Results:
The import process may fail.

Expected Results:
The import process should succeed.
I used the essay writing service https://papersowl.com/examples/the-importance-of-being-earnest/ to test it out. This service also offers a variety of essays on different topics to assist students.


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