Due to unknown circumstances the data in Satellite may get in an inconsistent state which blocks deleting a repository via the UI or hammer, resulting in a Paused delete task with the error: 2020-03-04T17:19:44 [E|bac|] Content with ID "*************" could not be found. (Katello::Errors::CandlepinError) The task then gets stuck in a Paused state and can only be completed by skipping the step that is stuck. We should change to a model where if it fails to delete the content in Candlepin, we do not fail the task and just skip that step and continue.
Connecting redmine issue https://projects.theforeman.org/issues/29316 from this bug
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/29316 has been resolved.
*** 6.7.0 Hotfix available *** 1) Download hotfix rpm: wget http://people.redhat.com/~mmccune/hotfix/tfm-rubygem-katello-3.14.0.20-2.HOTFIXRHBZ1810250RHBZ1810270.el7sat.noarch.rpm to your Satellite. 2) Install: rpm -Uvh tfm-rubygem-katello-3.14.0.20-2.HOTFIXRHBZ1810250RHBZ1810270.el7sat.noarch.rpm 3) restart: satellite-maintain service restart 4) resume operations
Steps to retest: 1. Create a product 2. Create 2 custom repos and sync them 3. Content -> products -> <product_name> 4. Remove one custom repo created in step 2 5. Check task page 6. On CLI use hammer and run following command: hammer repository delete --id=<repo_id> Expected result step 5. Should show up as successfully delete repo and should show no errors. Step 6. Running hammer repository list should not show deleted repo. Actual: step 5: Shows up as successfully deleted repo with no errors. step 6: "Repository deleted" message shows up after deleting repo. Deleted repo is not shown after running hammer list command. Note: For step 6, I also checked on UI to see no errors showing up in task page. Marking issue as verified in 6.8.0 snap 2.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.8 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-2020:4366