Bug 2224031
Summary: | Repository sync failed with error "ERROR: insert or update on table "katello_repository_rpms" | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | mithun kalyat <mkalyat> |
Component: | Repositories | Assignee: | Samir Jha <sajha> |
Status: | CLOSED ERRATA | QA Contact: | Cole Higgins <chiggins> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 6.14.0 | CC: | ahumbe, amahindr, amiagarw, chiggins, iballou, rlavi, sajha, vijsingh |
Target Milestone: | 6.14.0 | Keywords: | 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: | 2023-11-08 14:19:57 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
mithun kalyat
2023-07-19 15:52:30 UTC
I was able to reproduce it. It's on our board to fix. Adding 6.14.0+. I reproduced the issue by syncing 4 RHEL repos (RHEL 8 and RHEL 9 AppStream + BaseOS) at the same time like noted in the BZ description. Bumping priority since it's a sync blocker. Looking at the error and failure in index action when reproducing, the reason the RPM might have been deleted before a RepositoryRPM is created as the error says is because we had a delete_orphan task being invoked in index_action which would delete all content which hadn't been associated to a repository. Looks like a race condition side effect from that. We have removed delete_orphan from index action in snap 8 as part of this BZ: https://bugzilla.redhat.com/show_bug.cgi?id=2221291 so this should be resolved. Currently testing on a second snap 8 instance. *** Bug 2224738 has been marked as a duplicate of this bug. *** *** Bug 2226667 has been marked as a duplicate of this bug. *** 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 |