Red Hat Bugzilla – Bug 1409856
Mirror on sync does not properly remove catalog entries from 'on_demand' repos
Last modified: 2018-09-19 11:09:08 EDT
Description of problem: When a repo is configured to use mirror on sync for a repo and that repo is using on_demand as a download policy, if the rpm is removed from the upstream repo pulp will still think it can be downloaded from there because it hasn't removed the catalog entries. Version-Release number of selected component (if applicable): 6.2.6 How reproducible: Always Steps to Reproduce: 1. Create two yum repos on some webserver: mkdir /var/www/html/pub/repoA mkdir /var/www/html/pub/repoB # Copy some rpm to repoA cp somerpm.rpm /var/www/html/pub/repoA createrepo /var/www/html/pub/repoA createrepo /var/www/html/pub/repoB 2. Create two products in the webUI. ProductA ProductB 3. Under each of these, create a repo with mirror on sync checked, download policy set to on_demand, and the url pointing to our webserver from above: ProductA -> RepoA -> http://mywebserver.com/pub/repoA ProductB -> RepoB -> http://mywebserver.com/pub/repoB 4. Sync both RepoA and RepoB 5. on the webserver mv the rpm from RepoA to RepoB and create the metadata mv /var/www/html/pub/repoA/somerpm.rpm /var/www/html/pub/repoB/somerpm.rpm createrepo /var/www/html/pub/repoA createrepo /var/www/html/pub/repoB 6. Resync RepoA and RepoB 7. register a client and assign it to the ProductB product 8. try to 'yum install somerpm' on the client Actual results: Will get a 404 Expected results: Should not get a 404 Additional info:
The Pulp upstream bug status is at NEW. Updating the external tracker on this bug.
The Pulp upstream bug priority is at High. Updating the external tracker on this bug.
The Pulp upstream bug status is at ASSIGNED. Updating the external tracker on this bug.
The Pulp upstream bug status is at POST. Updating the external tracker on this bug.
Does step "Resync RepoA and RepoB" includes the re-publish on metadata as well?
Ina, i don't think it matters, but in my reproducer steps it would have published (via auto publish)
The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug.
The Pulp upstream bug status is at MODIFIED. Updating the external tracker on this bug.
All upstream Pulp bugs are at MODIFIED+. Moving this bug to POST.
The Pulp upstream bug status is at ON_QA. Updating the external tracker on this bug.
The Pulp upstream bug status is at CLOSED - CURRENTRELEASE. Updating the external tracker on this bug.
Please add verifications steps for this bug to help QE verify
Requested backporting has been completed.
The Pulp upstream bug status is at CLOSED - COMPLETE. Updating the external tracker on this bug.
Verified in: satellite-6.2.9-2.0.el7sat.noarch Steps: Followed the specified steps, registered client and package installed successful.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:1191