Bug 2070535
Summary: | Content View publish fails with error PG::CardinalityViolation: ERROR: ON CONFLICT DO UPDATE command cannot affect row a second time. | |||
---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Gourav Padholia <gpadholi> | |
Component: | Content Views | Assignee: | Lucy Fu <lufu> | |
Status: | CLOSED ERRATA | QA Contact: | Jameer Pathan <jpathan> | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | 6.10.3 | CC: | ahumbe, iballou, jsenkyri, karnsing, lufu, pdwyer, phess, saydas, sbible, zhunting | |
Target Milestone: | 6.12.0 | Keywords: | PrioBumpGSS, 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: | ||||
: | 2112419 (view as bug list) | Environment: | ||
Last Closed: | 2022-11-16 13:33:45 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
Gourav Padholia
2022-03-31 11:53:48 UTC
To anyone looking for a workaround, in my experience working on support tickets this issue is related to the existing CV, where there is a row in foreman DB's katello_repository_references table linking a root_repository_id to a content_view_id by the time the CV publish task tries to add a new row with the exact same root_repository_id and content_view_id. This all means the issue is particular to the affected Content View. A quick workaround is to create a new Content View that mimics the original one, i.e. contains the same repositories, filters and all, and start using the new Content View instead of the old one, at least until the root cause is figured out and resolved. Created redmine issue https://projects.theforeman.org/issues/34779 from this bug Upstream bug assigned to lufu Upstream bug assigned to lufu Steps to retest: 1. Create a content view using the below repository ~~~ 1) Id: 1 Name: Red Hat Enterprise Linux 7 Server RPMs x86_64 7Server Label: Red_Hat_Enterprise_Linux_7_Server_RPMs_x86_64_7Server 2) Id: 9 Name: Red Hat Enterprise Linux 7 Server - RH Common RPMs x86_64 7Server Label: Red_Hat_Enterprise_Linux_7_Server_-_RH_Common_RPMs_x86_64_7Server 3) Id: 7 Name: Red Hat Enterprise Linux 7 Server - Optional RPMs x86_64 7Server Label: Red_Hat_Enterprise_Linux_7_Server_-_Optional_RPMs_x86_64_7Server 4) Id: 6 Name: Red Hat Enterprise Linux 7 Server - Extras RPMs x86_64 Label: Red_Hat_Enterprise_Linux_7_Server_-_Extras_RPMs_x86_64 5) Id: 4 Name: Red Hat Software Collections RPMs for Red Hat Enterprise Linux 7 Server x86_64 7Server Label: Red_Hat_Software_Collections_RPMs_for_Red_Hat_Enterprise_Linux_7_Server_x86_64_7Server ~~~ 2. Publish the content view Expected result: Content view should publish without errors Actual: content view does publish without errors Verified on 6.12 snap 6.1 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 |