Bug 1985318 - Introduce a valid solution to fix the error "Katello::Errors::CandlepinError: Environment with id XXXX could not be found" in Satellite 6
Summary: Introduce a valid solution to fix the error "Katello::Errors::CandlepinError:...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Views
Version: 6.8.0
Hardware: All
OS: Linux
high
medium
Target Milestone: 6.9.5
Assignee: Jonathon Turel
QA Contact: Lai
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-07-23 11:42 UTC by James Jeffers
Modified: 2024-03-25 18:17 UTC (History)
5 users (show)

Fixed In Version: tfm-rubygem-katello-3.18.1.35-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1951878
Environment:
Last Closed: 2021-08-31 12:04:00 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 33019 0 High Ready For Testing Introduce a valid solution to fix the error "Katello::Errors::CandlepinError: Environment with id XXXX could not be foun... 2021-07-23 11:42:39 UTC
Red Hat Knowledge Base (Solution) 2931671 0 None None None 2021-07-23 11:42:39 UTC
Red Hat Knowledge Base (Solution) 3389101 0 None None None 2021-07-23 11:42:39 UTC
Red Hat Knowledge Base (Solution) 4323801 0 None None None 2021-07-23 11:42:39 UTC
Red Hat Product Errata RHBA-2021:3387 0 None None None 2021-08-31 12:04:18 UTC

Comment 2 Bryan Kearney 2021-07-27 16:05:39 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/33019 has been resolved.

Comment 7 Lai 2021-08-05 18:22:59 UTC
Steps to retest:

1. Create a new LCE
2. Create a custom product with custom repo and sync
3. Create a cv and add the repo from step 2
4. Tail candlepin.log
5. Publish cv from 3 and do a promote
6. Confirm that new environment was created in log
7. Delete environment from rails console: Katello::Resources::Candlepin::Environment.destroy('<environment id from candlepin.log>')
8. Publish cv again and promote and see the environment is recreated in candlepin.log
9. Delete the environment again from Rails console (the new lce created from step 1)
10. Delete the LCE that you created in step 1 from UI as well.
11. Ensure that no error appear in candlepin.log


Expected result:
6) Should be able to see new environment being created in log
8) Should be able to see environment is created in log
11) Should not see any errors being raised in log

Actual:
6) Able to see new environment being created in log
8) Able to see environment being recreated in log
org.candlepin.common.filter.LoggingFilter - Request: verb=GET, uri=/candlepin/environments/a281582d8bb77cb49caf517541472e74
11) There was no errors appearing in log after deleting environments on both rake console and the webUI

Verified in 6.9.5_01 with tfm-rubygem-katello-3.18.1.36-1.el7sat.noarch

Comment 12 errata-xmlrpc 2021-08-31 12:04:00 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 (Satellite 6.9.5 Async 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/RHBA-2021:3387


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