Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1409856 - Mirror on sync does not properly remove catalog entries from 'on_demand' repos
Mirror on sync does not properly remove catalog entries from 'on_demand' repos
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Pulp (Show other bugs)
6.2.5
Unspecified Unspecified
medium Severity medium (vote)
: 6.2.9
: Unused
Assigned To: satellite6-bugs
Bruno Rocha
: Triaged
Depends On:
Blocks: 1426408
  Show dependency treegraph
 
Reported: 2017-01-03 11:10 EST by Justin Sherrill
Modified: 2018-09-19 11:09 EDT (History)
15 users (show)

See Also:
Fixed In Version: pulp-2.8.7.7-1,pulp-rpm-2.8.7.9-1
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1426408 (view as bug list)
Environment:
Last Closed: 2017-05-01 09:57:43 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Pulp Redmine 2503 High CLOSED - CURRENTRELEASE remove_missing does not seem to remove on_demand catalog entries 2017-02-23 16:01 EST
Pulp Redmine 2542 Normal CLOSED - CURRENTRELEASE Streamer needs to try all available catalog entries. 2017-02-23 16:01 EST
Pulp Redmine 2646 Normal CLOSED - COMPLETE Backport #2542, Streamer needs to try all available catalog entries 2017-03-30 19:09 EDT
Pulp Redmine 2647 Normal CLOSED - COMPLETE Backport #2503, remove_missing does not remove on_demand catalog entries 2017-03-30 19:09 EDT
Red Hat Product Errata RHBA-2017:1191 normal SHIPPED_LIVE Satellite 6.2.9 Async Bug Release 2017-05-01 13:49:42 EDT

  None (edit)
Description Justin Sherrill 2017-01-03 11:10:58 EST
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 1 pulp-infra@redhat.com 2017-01-03 11:32:04 EST
The Pulp upstream bug status is at NEW. Updating the external tracker on this bug.
Comment 2 pulp-infra@redhat.com 2017-01-03 11:32:07 EST
The Pulp upstream bug priority is at High. Updating the external tracker on this bug.
Comment 4 pulp-infra@redhat.com 2017-01-04 11:01:52 EST
The Pulp upstream bug status is at ASSIGNED. Updating the external tracker on this bug.
Comment 5 pulp-infra@redhat.com 2017-01-05 15:01:38 EST
The Pulp upstream bug status is at POST. Updating the external tracker on this bug.
Comment 6 Ina Panova 2017-01-23 07:48:11 EST
Does step "Resync RepoA and RepoB" includes the re-publish on metadata as well?
Comment 7 Justin Sherrill 2017-01-23 10:51:49 EST
Ina, i don't think it matters, but in my reproducer steps it would have published (via auto publish)
Comment 8 pulp-infra@redhat.com 2017-01-24 13:31:29 EST
The Pulp upstream bug status is at NEW. Updating the external tracker on this bug.
Comment 9 pulp-infra@redhat.com 2017-01-24 13:31:33 EST
The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug.
Comment 10 pulp-infra@redhat.com 2017-01-24 15:01:25 EST
The Pulp upstream bug status is at ASSIGNED. Updating the external tracker on this bug.
Comment 13 pulp-infra@redhat.com 2017-01-25 10:31:48 EST
The Pulp upstream bug status is at MODIFIED. Updating the external tracker on this bug.
Comment 14 pulp-infra@redhat.com 2017-01-27 18:01:27 EST
The Pulp upstream bug status is at POST. Updating the external tracker on this bug.
Comment 15 pulp-infra@redhat.com 2017-02-10 15:31:28 EST
The Pulp upstream bug status is at MODIFIED. Updating the external tracker on this bug.
Comment 16 pulp-infra@redhat.com 2017-02-10 15:31:38 EST
All upstream Pulp bugs are at MODIFIED+. Moving this bug to POST.
Comment 17 pulp-infra@redhat.com 2017-02-16 15:32:12 EST
The Pulp upstream bug status is at ON_QA. Updating the external tracker on this bug.
Comment 18 pulp-infra@redhat.com 2017-02-16 15:32:21 EST
The Pulp upstream bug status is at ON_QA. Updating the external tracker on this bug.
Comment 19 pulp-infra@redhat.com 2017-02-23 16:01:49 EST
The Pulp upstream bug status is at CLOSED - CURRENTRELEASE. Updating the external tracker on this bug.
Comment 20 pulp-infra@redhat.com 2017-02-23 16:01:58 EST
The Pulp upstream bug status is at CLOSED - CURRENTRELEASE. Updating the external tracker on this bug.
Comment 21 pm-sat@redhat.com 2017-02-23 16:10:54 EST
Please add verifications steps for this bug to help QE verify
Comment 23 Michael Hrivnak 2017-03-23 08:37:13 EDT
Requested backporting has been completed.
Comment 24 pulp-infra@redhat.com 2017-03-29 21:33:18 EDT
The Pulp upstream bug status is at POST. Updating the external tracker on this bug.
Comment 25 pulp-infra@redhat.com 2017-03-29 21:33:23 EDT
The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug.
Comment 26 pulp-infra@redhat.com 2017-03-29 21:33:29 EDT
The Pulp upstream bug status is at POST. Updating the external tracker on this bug.
Comment 27 pulp-infra@redhat.com 2017-03-29 21:33:33 EDT
The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug.
Comment 28 pulp-infra@redhat.com 2017-03-30 19:09:32 EDT
The Pulp upstream bug status is at CLOSED - COMPLETE. Updating the external tracker on this bug.
Comment 29 pulp-infra@redhat.com 2017-03-30 19:09:51 EDT
The Pulp upstream bug status is at CLOSED - COMPLETE. Updating the external tracker on this bug.
Comment 30 Bruno Rocha 2017-04-13 19:00:02 EDT
Verified in:

satellite-6.2.9-2.0.el7sat.noarch


Steps:

Followed the specified steps, registered client and package installed successful.
Comment 32 errata-xmlrpc 2017-05-01 09:57:43 EDT
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

Note You need to log in before you can comment on or make changes to this bug.