Bug 2265724
| Summary: | Product level Verify checksum action spawns unessasary checksum tasks for cloned repositories of the root repository | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Taft Sanders <tasander> |
| Component: | Repositories | Assignee: | Samir Jha <sajha> |
| Status: | CLOSED MIGRATED | QA Contact: | Vladimír Sedmík <vsedmik> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.14.0 | CC: | alsouza, iballou, rlavi, sajha, vsedmik |
| Target Milestone: | stream | Keywords: | MigratedToJIRA, Triaged |
| Target Release: | Unused | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2024-06-06 17:04:27 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: | |||
|
Description
Taft Sanders
2024-02-23 19:37:49 UTC
The issue is here: https://github.com/Katello/katello/blob/KATELLO-4.9/app/controllers/katello/api/v2/products_bulk_actions_controller.rb#L58 The repositories need to be filtered further to ignore the CV copies. Doing this filtering will technically halt the ability to repair older content view versions via the UI, however I'd argue the bug here for large environments is more inconvenient than triggering a repair from the "/repositories/:id/verify_checksum" endpoint. Perhaps as part of the bug fix we could offer a repair endpoint for content view versions. Created redmine issue https://projects.theforeman.org/issues/37259 from this bug Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/37259 has been resolved. Reproduced in 6.15.0 snap 10.1, verified in Stream snap 53.0 (rubygem-katello-4.13.0-0.1.pre.master.20240409152503gitd8b7638.el9sat.noarch): Product -> Select Action -> Verify Content Checksum - now spins only one task per repository present in the product (no matter the count of filtered CV versions). Two repos in product, 4 CV versions, dynflow bulk action task before fix: --- action_class: Actions::Katello::Repository::VerifyChecksum target_ids: - 211 - 212 - 214 - 217 - 215 - 219 - 216 - 218 - 213 - 220 target_class: Katello::Repository After fix: --- action_class: Actions::Katello::Repository::VerifyChecksum target_ids: - 6 - 1 target_class: Katello::Repository This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there. Due to differences in account names between systems, some fields were not replicated. Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information. To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "SAT-" followed by an integer. You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like: "Bugzilla Bug" = 1234567 In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information. |