Bug 2225364
| Summary: | Repositories cannot be deleted even if the "Allow deleting repositories in published content views" setting is set to "yes" | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Jayant Bhatia <jbhatia> |
| Component: | Repositories | Assignee: | satellite6-bugs <satellite6-bugs> |
| Status: | CLOSED DUPLICATE | QA Contact: | Satellite QE Team <sat-qe-bz-list> |
| Severity: | low | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.14.0 | CC: | ahumbe, iballou, rlavi, sajha |
| Target Milestone: | Unspecified | Keywords: | EasyFix, Triaged |
| Target Release: | Unused | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-12-11 15:12:35 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
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.