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 1810250 - Unable to delete repository - Content with ID could not be found
Summary: Unable to delete repository - Content with ID could not be found
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.6.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: 6.8.0
Assignee: Jonathon Turel
QA Contact: Lai
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-04 19:36 UTC by Mike McCune
Modified: 2023-10-06 19:20 UTC (History)
1 user (show)

Fixed In Version: tfm-rubygem-katello-3.16.0-0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1832584 (view as bug list)
Environment:
Last Closed: 2020-10-27 13:00:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 29316 0 Normal Closed Ignore missing candlepin content on product delete 2021-02-17 04:20:22 UTC
Red Hat Product Errata RHSA-2020:4366 0 None None None 2020-10-27 13:00:48 UTC

Description Mike McCune 2020-03-04 19:36:54 UTC
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.

Comment 5 Justin Sherrill 2020-03-11 01:54:12 UTC
Connecting redmine issue https://projects.theforeman.org/issues/29316 from this bug

Comment 6 Bryan Kearney 2020-03-11 04:05:07 UTC
Moving this bug to POST for triage into Satellite 6 since the upstream issue https://projects.theforeman.org/issues/29316 has been resolved.

Comment 7 Mike McCune 2020-04-17 18:05:55 UTC
*** 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

Comment 8 Lai 2020-06-02 18:29:08 UTC
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

Comment 11 errata-xmlrpc 2020-10-27 13:00:31 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 (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


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