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
2016-09-06 22:00:57 UTC
Description of problem:
When syncing a repository from the cdn or anywhere, if the webserver returns Forbidden pulp seems to interpret this as "Not Found".
Version-Release number of selected component (if applicable):
6.2.1
How reproducible:
Always
Steps to Reproduce:
1. Create a custom repo with a feed of https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/sat-tools/6.2/os
2. Sync the repo
Actual results:
Error will be reported as "Not found"
Expected results:
Error is reported as "Forbidden"
Additional info:
I had to add some extra debugging to pulp to realize "Forbidden" was being thrown and then something was eating that and throwing 'Not Found'.
This appears to work correctly on pulp master, which will become 2.11. I didn't test anything earlier. If you need more detail on exactly when this behavior may have changed, or anything else, please NEEDSINFO me again.
[vagrant@dev ~]$ pulp-admin rpm repo create --repo-id=rhel --verify-feed-ssl=false --feed=https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/sat-tools/6.2/os
Successfully created repository [rhel]
[vagrant@dev ~]$ pulp-admin rpm repo sync run --repo-id=rhel
+----------------------------------------------------------------------+
Synchronizing Repository [rhel]
+----------------------------------------------------------------------+
This command may be exited via ctrl+c without affecting the request.
Downloading metadata...
[\]
... completed
Downloading repository content...
[-]
[==================================================] 100%
RPMs: 0/0 items
Delta RPMs: 0/0 items
... completed
Downloading distribution files...
[==================================================] 100%
Distributions: 0/0 items
Task Failed
Error retrieving metadata: Forbidden
This is the relevant excerpt of the TaskStatus report:
"error": {
"code": "RPM1004",
"data": {
"reason": "Forbidden"
},
"description": "Error retrieving metadata: Forbidden",
"sub_errors": []
Since https://bugzilla.redhat.com/show_bug.cgi?id=1364712 was delivered in an errata, I am moving this to CLOSED/CURRENT RELEASE. If customers still see this issue after upgrading to that errata, please feel free to re-open with additional data.