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.
Description of problem:
We are running a CV version import ( incremental ) with:
```
hammer content-import version --organization-id=1 --path=/var/lib/pulp/imports/2023-1-28T03-49-03-00-00
```
...but has produced the following errors repeated for several repositories at about 61% of task completion.
Example:
```
duplicate key value violates unique constraint "rpm_updatecollectionname_name_update_record_id_6ef33bed_uniq"
```
This error repeats several times for various RHEL 7,8 and 9 repositories.
Please note that we can *NOT* provide a sosreport, logs or tracebacks from this customer, and Satellite is running in an air-gapped disconnected environment.
Our support case is https://access.redhat.com/support/cases/#/case/03679066/
There have been other support cases from different customers where this exact database key is reporting an error ( rpm_updatecollectionname_name_update_record_id_6ef33bed_uniq ), and in all of them Red Hat support has recommended that they switch to using the Syncable Exports feature instead of actually resolving the issue.
We are on version 6.11 of Satellite, but it's notable that other support cases indicate that the issue is present on Satellite 6.13 too.
Other support cases that contain the rpm_updatecollectionname_name_update_record_id_6ef33bed_uniq error:
https://access.redhat.com/support/cases/#/case/03671664 ( Sat 6.12 )
https://access.redhat.com/support/cases/#/case/03670822 ( Sat 6.13 )
Version-Release number of selected component (if applicable):
6.11
6.12
6.13
How reproducible:
Create large CV to export/import
After that succeeds, create incremental export and try to import that version of CV
Actual results:
duplicate key value violates unique constraint "rpm_updatecollectionname_name_update_record_id_6ef33bed_uniq"
Expected results:
Incremental Content View imports successfully
Additional info:
Adding this note from internal Slack discussion so it can be referenced later if need be:
The errors in my traceback say they are for:
`pulp_rpm/copy.py` line 223
`pulp_rpm/repository.py` lines 1017, 312
`pulp_rpm/advisory.py` lines 136, 314, 218, 206, 329
Then some others in:
`django/django_lifecycle/mixins.py` line 134
`django/db/models/base.py` lines 739, 776, 881, 919
`django/db/models/manager.py` line 85
`django/db/models/query.py` line 1270
`django/db/models/sql/compiler.py` line 1416
`django/db/backends/utils.py` lines 66, 84, 75, 90
Created attachment 2018063[details]
RHEL 8 Hotfix RPM for Satellite 6.11.5.6
INSTALL INSTRUCTIONS (Satellite 6.11.5.6 on RHEL8):
1. Take a complete backup or snapshot of Satellite 6.11.5.6 server
2. Obtain the Hotfix RPM from this attachment
3. # dnf install ./python38-pulp-rpm-3.17.22-1.HOTFIXRHBZ2253381.el8pc.noarch.rpm --disableplugin=foreman-protector
4. # satellite-maintain service restart
Created attachment 2018064[details]
RHEL 7 Hotfix RPM for Satellite 6.11.5.6
INSTALL INSTRUCTIONS (Satellite 6.11.5.6 on RHEL7):
1. Take a complete backup or snapshot of Satellite 6.11.5.6 server
2. Obtain the Hotfix RPM from this attachment
3. # yum install ./tfm-pulpcore-python3-pulp-rpm-3.17.22-1.HOTFIXRHBZ2253381.el7pc.noarch.rpm --disableplugin=foreman-protector
4. # satellite-maintain service restart
Created attachment 2019044[details]
Hotfix RPM for Satellite 6.14.2
INSTALL INSTRUCTIONS
1. Take a complete backup or snapshot of Satellite 6.14.2 server
2. Obtain the Hotfix RPM from this attachment
3. # dnf install ./python39-pulp-rpm-3.19.11-3.HOTFIXRHBZ2253381.el8pc.noarch.rpm --disableplugin=foreman-protector
4. # satellite-maintain service restart
Verified.
Tested on Satellite 6.15.0 Snap 10.1
python3.11-pulp-rpm-3.23.3-1.el8pc.noarch
Steps followed:
1. Enable some repos, and sync them with the immediate download policy
2. Create a CV add the repos and publish it
3. Export complete the CV
4. Enable and sync some more repos, add them to the CV and publish it
5. Export the CV - incremental
6. Try to import the CV - complete and then incremental
Observation:
1. Content export was successful and no issues were observed
2. Content import was Successful and no issues were observed
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.15.0 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-2024:2010
Comment 31Red Hat Bugzilla
2024-09-03 04:25:02 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days