katello
katello copied to clipboard
Fixes #35120 - Indexing with additive content
What are the changes introduced in this pull request?
We should not enforce "additive" indexing. Sync_policy (mirroring_policy on the UI) should be enforced at the time of sync and passed to pulp.(Happens currently). Once pulp syncs according to the provided policy, katello should trust pulp as source of truth and not force additive content beyond what pulp does.
Considerations taken when implementing this change?
What are the testing steps for this pull request?
- Create a yum repo with URL : https://fixtures.pulpproject.org/rpm-unsigned/
- Set Mirroring Policy to "Additive" and Retain package versions to 5
- Sync repo.
- You should have 35 rpms.
- Edit repo and set Retain package versions to 1.
- Complete sync the repo
Without change: Pulp will have a new version of repo with 31 rpms. Katello still shows 35 rpms. With change: Pulp and katello rpms count will match.
Issues: #35120
Code looks fine, starting to test