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 2225364 - Repositories cannot be deleted even if the "Allow deleting repositories in published content views" setting is set to "yes"
Summary: Repositories cannot be deleted even if the "Allow deleting repositories in pu...
Keywords:
Status: CLOSED DUPLICATE of bug 2087537
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Repositories
Version: 6.14.0
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Satellite QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-25 05:14 UTC by Jayant Bhatia
Modified: 2023-12-11 15:12 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-12-11 15:12:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SAT-19268 0 None None None 2023-07-31 15:53:50 UTC

Description Jayant Bhatia 2023-07-25 05:14:16 UTC
Description of problem:

Deleting a repository fails with below error when the repository is already present in the published version of content view and "Allow deleting repositories in published content views" setting is set to "yes".

~~~
Error
Repository Red Hat Satellite Client 6 for RHEL 9 x86_64 RPMs cannot be deleted since it has already been included in a published Content View.
~~~


Version-Release number of selected component (if applicable): Satellite-6.14


How reproducible: Always


Steps to Reproduce:

1. Install Satellite-6.14 and ensure subscription manifest is imported.

2. Enable any repository after navigating to Satellite WebUI -> Content -> Repositories page. (Say: Red Hat Satellite Client 6 for RHEL 9 x86_64 RPMs)

3. Synchronize the above enabled repository after navigating to Satellite WebUI -> Content -> Sync Status page.

4. Create a new content view and add the above enabled/synced repository to the content view. Publish a new version of content view. 

5. Navigate to Satellite WebUI -> Administer -> Settings -> Content -> set "Allow deleting repositories in published content views" to "yes".

6. Navigate to Satellite WebUI -> Products -> product_name -> Repositories -> Checkbox the repository to be deleted -> Remove Repositories.

OR

Satellite WebUI -> Content -> Red Hat Repositories page and then attempt to disable the repository.


Actual results: Repository fails to delete/disable with below error.
~~~
Error
Repository Red Hat Satellite Client 6 for RHEL 9 x86_64 RPMs cannot be deleted since it has already been included in a published Content View.
~~~


Expected results: The repository should get deleted successfully since "Allow deleting repositories in published content views" setting is set to "yes"


Additional info: 

(i) The repository can be deleted after going to Repository Details page ("Satellite WebUI -> Products -> product_name -> Repositories -> repository_name -> Select Action -> Remove Repository").

(ii) It should be allowed to delete the repository from "Satellite WebUI -> Products -> product_name -> Repositories" page.

(iii) It should also be allowed to disable the repository from Satellite WebUI -> Content -> Red Hat Repositories page.

Comment 2 Ian Ballou 2023-07-31 15:52:50 UTC
We purposefully don't allow users to "bulk delete" Red Hat repositories so that they see the warning on the repository page itself during deletion.

It's not a 6.13 regression.

I could see us improving the error message to instruct users on how to actually delete the RH repo (by going to the repository details page and deleting it from there).

Assuming that's the solution, I'll mark this as an easy fix.


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