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.
Description of problem:
When user gets an access denied message from CDN, a trace is thrown. We catch this and return a user-friendly error.
Version-Release number of selected component (if applicable):
katello-utils-1.4.3-1.git.5.bf18eee.el6.noarch
How reproducible:
Steps to Reproduce:
1. Attempt to import a manifest, possibly an old one, that for whatever reason triggers an access denied from CDN.
2. View results.
Actual results:
[root@ibm-x3250m4-06 ~]# katello-disconnected import --manifest old_eus_manifest.zip
/opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require': iconv will be deprecated in the future, use String#encode instead.
Access denied to https://cdn.redhat.com/content/eus/rhel/power/5/listing
/usr/share/katello-disconnected/lib/manifest_reader.rb:72:in `block in get': Access denied to https://cdn.redhat.com/content/eus/rhel/power/5/listing (RuntimeError)
from /opt/rh/ruby193/root/usr/share/ruby/net/http.rb:745:in `start'
from /usr/share/katello-disconnected/lib/manifest_reader.rb:62:in `get'
from /usr/share/katello/app/lib/util/cdn_var_substitutor.rb:123:in `get_substitutions_from'
from /usr/share/katello/app/lib/util/cdn_var_substitutor.rb:112:in `for_each_substitute_of_next_var'
from /usr/share/katello/app/lib/util/cdn_var_substitutor.rb:81:in `substitute_vars_in_prefix'
from /usr/share/katello/app/lib/util/cdn_var_substitutor.rb:57:in `substitute_vars'
from /usr/share/katello-disconnected/lib/manifest_reader.rb:372:in `block (3 levels) in populate_repositories'
from /usr/share/katello-disconnected/lib/manifest_reader.rb:369:in `each_value'
from /usr/share/katello-disconnected/lib/manifest_reader.rb:369:in `block (2 levels) in populate_repositories'
from /usr/share/katello-disconnected/lib/manifest_reader.rb:366:in `each'
from /usr/share/katello-disconnected/lib/manifest_reader.rb:366:in `block in populate_repositories'
from /usr/share/katello-disconnected/lib/manifest_reader.rb:356:in `each_value'
from /usr/share/katello-disconnected/lib/manifest_reader.rb:356:in `populate_repositories'
from /usr/bin/katello-disconnected:315:in `import'
from /usr/bin/katello-disconnected:405:in `<main>'
Expected results:
Catch the error and indicate that the user (for whatever reason) does not appear to have access to the content on the CDN.
Additional info:
This behavior causes UI bugs in the repo list URL (e.g. /katello/providers/redhat_provider). The 500 error page is returned instead of JSON as expected, causing JavaScript exceptions to be thrown.
While the javascript bug may need it's own bug report, it seems the behavior could be remedied by fixing this behavior so it returns the expected results.
The katello-disconnected server synchronization and export functions are being moved into the Satellite server itself. With 6.2, the katello-disconnected command will no longer be delivered and instead will be replaced with a new export and import functions delivered via the UI and hammer CLI. This bug is being closed as "WONTFIX" since it relates only to the existing katello-disconnected tooling. Please check the Satellite docs with the release of Satellite 6.2 on how to use the new content export and import features.