Red Hat Bugzilla – 2225364 – Repositories cannot be deleted even if the "Allow deleting repositories in published content views" setting is set to "yes"
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.
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.
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.
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.