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 790064 - Better error message when content url for red hat provider is not accessible
Summary: Better error message when content url for red hat provider is not accessible
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: WebUI
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: Unspecified
Assignee: Marek Hulan
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-13 15:20 UTC by Jeff Weiss
Modified: 2014-11-09 22:52 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-22 16:35:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jeff Weiss 2012-02-13 15:20:22 UTC
Description of problem:


Version-Release number of selected component (if applicable):
katello-0.1.236-1.git.1.c7be00c.el6.noarch

How reproducible:


Steps to Reproduce:
1. Download the zoo manifest here: http://inecas.fedorapeople.org/fakerepos/cds/
2. Import the manifest without first updating the CDN url.
3.
  
Actual results:
500 error

Expected results:
Should say something about the content url being inaccessible, which is the root cause.

Additional info:

Comment 2 Marek Hulan 2013-01-10 12:01:44 UTC
I cannot reproduce this. If I don't touch CDN and leave default https://cdn.redhat.com then import finishes with success. I also tried to use invalid URL like "http://" (avoiding validation) and I received error notification as expected.

Error message: "Subscription manifest upload for provider 'Red Hat' failed.
Reason: bad URI(absolute but no path): https://
bad URI(absolute but no path): https:// (URI::InvalidURIError)"

Could you please retest with current version? In case you still think there's a bug please provide more detailed instructions to reproduce.

Comment 3 Jeff Weiss 2013-01-10 14:17:46 UTC
If the import succeeds with the zoo manifest but the content URL pointing to CDN, then that is a problem, isn't it?  The content defined in the zoo manifest is not present on the cdn, katello should say so.

Comment 4 Mike McCune 2013-01-22 16:33:00 UTC
it fails for me with the zoo manifest:

Subscription manifest upload for provider 'Red Hat' failed.
Reason: CDN loading error: access denied to https://cdn.redhat.com/content/zoo/listing
CDN loading error: access denied to https://cdn.redhat.com/content/zoo/listing (Errors::SecurityViolation)

Comment 5 Mike McCune 2013-01-22 16:35:49 UTC
based on the fact that it correctly generates an error message now we are closing this.

Comment 6 Marek Hulan 2013-01-29 15:11:20 UTC
I changed this behavior in commit https://github.com/Katello/katello/commit/f7938ea06c40d50e16f3923b90d927a7b200ec75 so now it won't raise error, just inform user via green notification.

More info in pull request https://github.com/Katello/katello/pull/1456 and wiki https://fedorahosted.org/katello/wiki/ManifestImportErrorHandlingDesign

Comment 7 Marek Hulan 2013-01-30 14:12:44 UTC
I just realized that this merge made Red Hat repositories page not working in headpin mode. Fix is in new PR https://github.com/Katello/katello/pull/1479 that is awaiting for review and merge.


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