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.
DescriptionJustin Sherrill
2017-01-03 16:10:58 UTC
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:
Comment 1pulp-infra@redhat.com
2017-01-03 16:32:04 UTC
The Pulp upstream bug status is at NEW. Updating the external tracker on this bug.
Comment 2pulp-infra@redhat.com
2017-01-03 16:32:07 UTC
The Pulp upstream bug priority is at High. Updating the external tracker on this bug.
Comment 4pulp-infra@redhat.com
2017-01-04 16:01:52 UTC
The Pulp upstream bug status is at ASSIGNED. Updating the external tracker on this bug.
Comment 5pulp-infra@redhat.com
2017-01-05 20:01:38 UTC
The Pulp upstream bug status is at POST. Updating the external tracker on this bug.
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