Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1832584

Summary: Unable to delete repository - Content with ID could not be found
Product: Red Hat Satellite Reporter: Mike McCune <mmccune>
Component: Content ManagementAssignee: Jonathon Turel <jturel>
Status: CLOSED ERRATA QA Contact: Lai <ltran>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.6.0CC: zhunting
Target Milestone: 6.7.1Keywords: Reopened, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-3.14.0.21-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1810250 Environment:
Last Closed: 2020-06-08 13:18:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 5 Lai 2020-05-18 15:56:54 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.7.1_01.

Comment 8 errata-xmlrpc 2020-06-08 13:18:03 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, 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-2020:2422