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.

Bug 805713

Summary: Pulp fails to generate metadata for a repo with a filter the second time it gets promoted
Product: Red Hat Satellite Reporter: Og Maciel <omaciel>
Component: Content ManagementAssignee: Mike McCune <mmccune>
Status: CLOSED CURRENTRELEASE QA Contact: Og Maciel <omaciel>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: cpelland, hbrock, jsherril, mmccune, pkilambi
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 805740 (view as bug list) Environment:
Last Closed: 2012-08-22 18:31:37 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 805740    
Attachments:
Description Flags
yum install log none

Description Og Maciel 2012-03-21 21:21:38 UTC
Description of problem:

Basically pulp is failing to generate the metadata for a repo with a filter the second time I promote it. If you run the attached script, by the end of the script, if I register and subscribe a system to this repo, when I try to yum install the filtered package, I get a 404. The correct behavior should be to notify the user that said package does not exist.

Version-Release number of selected component (if applicable):

* candlepin-0.5.26-1.el6.noarch
* candlepin-tomcat6-0.5.26-1.el6.noarch
* katello-0.1.305-1.el6.noarch
* katello-all-0.1.305-1.el6.noarch
* katello-candlepin-cert-key-pair-1.0-1.noarch
* katello-certs-tools-1.0.4-1.el6.noarch
* katello-cli-0.1.105-1.el6.noarch
* katello-cli-common-0.1.105-1.el6.noarch
* katello-common-0.1.305-1.el6.noarch
* katello-configure-0.1.106-1.el6.noarch
* katello-glue-candlepin-0.1.305-1.el6.noarch
* katello-glue-foreman-0.1.305-1.el6.noarch
* katello-glue-pulp-0.1.305-1.el6.noarch
* katello-qpid-broker-key-pair-1.0-1.noarch
* katello-qpid-client-key-pair-1.0-1.noarch
* katello-selinux-0.1.9-1.el6.noarch
* pulp-1.0.0-5.el6.noarch
* pulp-admin-1.0.0-5.el6.noarch
* pulp-client-lib-1.0.0-5.el6.noarch
* pulp-common-1.0.0-5.el6.noarch
* pulp-selinux-server-1.0.0-5.el6.noarch

How reproducible:


Steps to Reproduce:
1. Run the attached script.
2.
3.
  
Actual results:

https://qetello01.usersys.redhat.com/pulp/repos/Juno/Dev1/custom/SystemEngine/Agent/katello-agent-0.16-1.el6.noarch.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404"
Trying other mirror.

Expected results:


Additional info:

See attached output of yum install command.

Comment 2 Og Maciel 2012-03-21 21:23:15 UTC
Created attachment 571868 [details]
yum install log

yum install log

Comment 3 Og Maciel 2012-03-21 21:25:04 UTC
# pulp-admin -u admin -p ****** task list
Task: c46d8070-7390-11e1-9726-525400e00788
    Job: None
    Scheduler: immediate
    Call: _sync
    Arguments: Moscow-SystemEngine-Agent
    State: finished
    Start time: 2012-03-21T16:02:20-04:00
    Finish time: 2012-03-21T16:02:25-04:00
    Scheduled time: None
    Result: True
    Exception: None
    Traceback: None

Comment 4 Og Maciel 2012-03-21 21:28:15 UTC
First time performing promotions for Dev1:

# md5sum ./Library/custom/SystemEngine/Agent/repodata/primary.xml.gz ./Dev1/custom/SystemEngine/Agent/repodata/primary.xml.gz

9a0300273fea52f490bb5debaa111f4d  ./Library/custom/SystemEngine/Agent/repodata/primary.xml.gz
a1020c8fd2e8f6fc73bb71120867f4af  ./Dev1/custom/SystemEngine/Agent/repodata/primary.xml.gz

Second time performing promotions for Dev1:

# md5sum ./Library/custom/SystemEngine/Agent/repodata/primary.xml.gz ./Dev1/custom/SystemEngine/Agent/repodata/primary.xml.gz

9a0300273fea52f490bb5debaa111f4d  ./Library/custom/SystemEngine/Agent/repodata/primary.xml.gz
9a0300273fea52f490bb5debaa111f4d  ./Dev1/custom/SystemEngine/Agent/repodata/primary.xml.gz

Comment 6 Og Maciel 2012-03-23 20:04:05 UTC
What version of pulp will have this fix?

Comment 9 Og Maciel 2012-04-02 03:52:14 UTC
After sync:
# md5sum ./Library/custom/SystemEngine/Agent/repodata/primary.xml.gz
d109c15670dcdc760215fcc2f8ec010a  ./Library/custom/SystemEngine/Agent/repodata/primary.xml.gz

After Library -> Dev1 promotion:
# md5sum ./Library/custom/SystemEngine/Agent/repodata/primary.xml.gz
d109c15670dcdc760215fcc2f8ec010a  ./Library/custom/SystemEngine/Agent/repodata/primary.xml.gz
# md5sum ./Dev1/custom/SystemEngine/Agent/repodata/primary.xml.gz
8650f99ca7dc08055c0c10dd382b3814  ./Dev1/custom/SystemEngine/Agent/repodata/primary.xml.gz

After Dev1 --> QA1 promotion:
# md5sum ./Library/custom/SystemEngine/Agent/repodata/primary.xml.gzd109c15670dcdc760215fcc2f8ec010a  ./Library/custom/SystemEngine/Agent/repodata/primary.xml.gz
# md5sum ./Dev1/custom/SystemEngine/Agent/repodata/primary.xml.gz
8650f99ca7dc08055c0c10dd382b3814  ./Dev1/custom/SystemEngine/Agent/repodata/primary.xml.gz
# md5sum ./QA1/custom/SystemEngine/Agent/repodata/primary.xml.gz
8650f99ca7dc08055c0c10dd382b3814  ./QA1/custom/SystemEngine/Agent/repodata/primary.xml.gz

After QA1 -> GA1 promotion:
# md5sum ./Library/custom/SystemEngine/Agent/repodata/primary.xml.gzd109c15670dcdc760215fcc2f8ec010a  ./Library/custom/SystemEngine/Agent/repodata/primary.xml.gz
# md5sum ./Dev1/custom/SystemEngine/Agent/repodata/primary.xml.gz8650f99ca7dc08055c0c10dd382b3814  ./Dev1/custom/SystemEngine/Agent/repodata/primary.xml.gz
# md5sum ./QA1/custom/SystemEngine/Agent/repodata/primary.xml.gz8650f99ca7dc08055c0c10dd382b3814  ./QA1/custom/SystemEngine/Agent/repodata/primary.xml.gz
# md5sum ./GA1/custom/SystemEngine/Agent/repodata/primary.xml.gz
8650f99ca7dc08055c0c10dd382b3814  ./GA1/custom/SystemEngine/Agent/repodata/primary.xml.gz

After Library -> Dev1 promotion, second time:
# md5sum ./Library/custom/SystemEngine/Agent/repodata/primary.xml.gz
d109c15670dcdc760215fcc2f8ec010a  ./Library/custom/SystemEngine/Agent/repodata/primary.xml.gz
# md5sum ./Dev1/custom/SystemEngine/Agent/repodata/primary.xml.gz
8650f99ca7dc08055c0c10dd382b3814  ./Dev1/custom/SystemEngine/Agent/repodata/primary.xml.gz
# md5sum ./QA1/custom/SystemEngine/Agent/repodata/primary.xml.gz
8650f99ca7dc08055c0c10dd382b3814  ./QA1/custom/SystemEngine/Agent/repodata/primary.xml.gz
# md5sum ./GA1/custom/SystemEngine/Agent/repodata/primary.xml.gz
8650f99ca7dc08055c0c10dd382b3814  ./GA1/custom/SystemEngine/Agent/repodata/primary.xml.gz

Comment 10 Og Maciel 2012-04-02 03:53:01 UTC
Verified:
* candlepin-0.5.26-1.el6.noarch
* candlepin-tomcat6-0.5.26-1.el6.noarch
* katello-0.1.307-1.el6.noarch
* katello-all-0.1.307-1.el6.noarch
* katello-candlepin-cert-key-pair-1.0-1.noarch
* katello-certs-tools-1.0.4-1.el6.noarch
* katello-cli-0.1.107-1.el6.noarch
* katello-cli-common-0.1.107-1.el6.noarch
* katello-common-0.1.307-1.el6.noarch
* katello-configure-0.1.107-1.el6.noarch
* katello-glue-candlepin-0.1.307-1.el6.noarch
* katello-glue-foreman-0.1.307-1.el6.noarch
* katello-glue-pulp-0.1.307-1.el6.noarch
* katello-qpid-broker-key-pair-1.0-1.noarch
* katello-qpid-client-key-pair-1.0-1.noarch
* katello-selinux-0.1.10-1.el6.noarch
* pulp-1.0.2-1.el6.noarch
* pulp-common-1.0.2-1.el6.noarch
* pulp-selinux-server-1.0.2-1.el6.noarch