Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/33019 has been resolved.
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
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