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 2266147 - Postgresql logs contain PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "katello_available_module_streams_name_stream_context"
Summary: Postgresql logs contain PG::UniqueViolation: ERROR: duplicate key value viola...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hosts - Content
Version: 6.13.2
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: 6.14.3
Assignee: Jeremy Lenz
QA Contact: visawant
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-02-26 19:11 UTC by Odilon Sousa
Modified: 2024-03-27 13:19 UTC (History)
11 users (show)

Fixed In Version: rubygem-katello-4.9.0.23-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2223567
Environment:
Last Closed: 2024-03-27 13:19:21 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 37137 0 High Ready For Testing Postgresql logs contain PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "katello_available_mo... 2024-02-26 19:11:31 UTC
Red Hat Bugzilla 2139545 0 high CLOSED Registration error: PG::UniqueViolation: ERROR: duplicate key value violates unique constraint "katello_available_modul... 2024-05-17 12:44:30 UTC
Red Hat Issue Tracker SAT-19116 0 None None None 2024-02-26 19:11:31 UTC
Red Hat Issue Tracker SAT-23586 0 None None None 2024-02-26 19:15:41 UTC
Red Hat Product Errata RHSA-2024:1536 0 None None None 2024-03-27 13:19:24 UTC

Comment 1 Bryan Kearney 2024-02-28 20:03:50 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/37137 has been resolved.

Comment 2 visawant 2024-03-06 12:13:26 UTC
Verified
Tested on 6.14.3 snap 1.0


Steps performed:
1. re-register RHEL8 host


#tail -f /var/log/foreman/production.log
...
2024-03-06T07:04:08 [I|app|222d4012] Started PUT "/rhsm/consumers/abfcbf52-abdc-437c-94fa-4c678fd18a34/profiles" for 10.0.168.31 at 2024-03-06 07:04:08 -0500
2024-03-06T07:04:08 [I|app|222d4012] Processing by Katello::Api::Rhsm::CandlepinDynflowProxyController#upload_profiles as JSON
2024-03-06T07:04:08 [I|app|222d4012]   Parameters: {"id"=>"abfcbf52-abdc-437c-94fa-4c678fd18a34"}
2024-03-06T07:04:08 [I|app|222d4012] Completed 200 OK in 128ms (Views: 1.4ms | ActiveRecord: 42.7ms | Allocations: 49922)
2024-03-06T07:04:08 [I|app|f221f864] Started GET "/rhsm/consumers/abfcbf52-abdc-437c-94fa-4c678fd18a34/compliance" for 10.0.168.31 at 2024-03-06 07:04:08 -0500
...

# grep -ri "duplicate key value violates unique constraint \"katello_available_module_streams_name_stream_context\"" /var/lib/pgsql/data/log/
# tail -f /var/lib/pgsql/data/log/postgresql-Wed.log 
^C
#

Observation: Don't see any log inside /var/lib/pgsql/data/log/ related to index violation.

Comment 7 errata-xmlrpc 2024-03-27 13:19:21 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.14.3 Async Security 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-2024:1536


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