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 2266145 - CertificateCleanupJob fails with foreign key constraint violation on table cp_certificate
Summary: CertificateCleanupJob fails with foreign key constraint violation on table cp...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Candlepin
Version: 6.11.5
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: 6.14.3
Assignee: Barnaby Court
QA Contact: amolpati
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-02-26 19:05 UTC by Odilon Sousa
Modified: 2024-03-27 13:19 UTC (History)
13 users (show)

Fixed In Version: candlepin-4.3.12-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 2229095
Environment:
Last Closed: 2024-03-27 13:19:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker CANDLEPIN-643 0 None None None 2024-02-26 19:06:05 UTC
Red Hat Issue Tracker CANDLEPIN-741 0 None None None 2024-02-26 19:06:05 UTC
Red Hat Issue Tracker RHINRULE-573 0 None None None 2024-02-26 19:06:05 UTC
Red Hat Issue Tracker SAT-20446 0 None None None 2024-02-26 19:06:05 UTC
Red Hat Issue Tracker SAT-23581 0 None None None 2024-02-26 19:06:40 UTC
Red Hat Knowledge Base (Solution) 7048429 0 None None None 2024-02-26 19:06:05 UTC
Red Hat Product Errata RHSA-2024:1536 0 None None None 2024-03-27 13:19:26 UTC

Comment 2 amolpati 2024-03-07 06:54:16 UTC
Verified.

Tested on: Satellite 6.14.3

Steps followed:

1) Import a manifest on satellite -> create activation key -> register host
2) Schedule CertificateCleanupJob to run every minute using command "candlepin.async.jobs.CertificateCleanupJob.schedule=1 * * * * ?" in /etc/candlepin/candlepin.conf and restart tomcat.
3) Find the id using query (su - postgres -c "psql candlepin -c \"select cs.*, c.id as certificate_id from cp_cert_serial cs inner join cp_certificate c on c.serial_id = cs.id;\"")
4) Update that id to be revoked using command "UPDATE cp_cert_serial SET revoked=true, expiration='2022-01-15 00:00:00.000000' WHERE id=<one of the ids returned by the previous query>;"
5) Monitor "/var/log/candlepin/candlepin.log" for Foreign Key violations.
    

Observation:

No Foreign Key violations are observed in candlepin logs.

Comment 3 amolpati 2024-03-07 07:12:09 UTC
addition to above verification  - snap version 1.0

Comment 8 errata-xmlrpc 2024-03-27 13:19:24 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.