Bug 1231701 - Cannot access Red Hat repositories
Summary: Cannot access Red Hat repositories
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.1.0
Hardware: x86_64
OS: All
unspecified
high
Target Milestone: Unspecified
Assignee: Katello Bug Bin
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-06-15 09:19 UTC by Oleksandr Shtaier
Modified: 2017-02-23 19:55 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-06-29 16:00:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
RHST6_works_RHST7_fail (47.59 KB, image/png)
2015-06-15 09:19 UTC, Oleksandr Shtaier
no flags Details
RHST6_fail_RHST7_works (opposite to 1 screenshot) (32.78 KB, image/png)
2015-06-15 09:21 UTC, Oleksandr Shtaier
no flags Details
One more behavior for defect (124.62 KB, image/png)
2015-06-15 09:22 UTC, Oleksandr Shtaier
no flags Details
RHE Virtualization Agent repo (34.57 KB, image/png)
2015-06-15 09:23 UTC, Oleksandr Shtaier
no flags Details
Log with failure (35.77 KB, text/plain)
2015-06-16 08:05 UTC, Oleksandr Shtaier
no flags Details

Description Oleksandr Shtaier 2015-06-15 09:19:46 UTC
Created attachment 1038856 [details]
RHST6_works_RHST7_fail

Description of problem:
Cannot access different Red Hat repositories with next types of errors:

API:
1) CDN loading error: access forbidden to https://cdn.redhat.com:443/content/beta/rhel/server/7/x86_64/sat-tools/6/os/repodata/repomd.xml

CLI:
1) [ERROR 2015-06-13 13:41:58 Exception] Forbidden - server refused to process the request
Could not enable repository:
  Forbidden - server refused to process the request

[ERROR 2015-06-13 13:42:02 Exception] Error: repository not found
Could not synchronize the repository:
  Error: repository not found

UI:
1) CDN loading error: access forbidden to https://cdn.redhat.com:443/content/dist/rhel/server/7/listing

2) No repositories accessible. Check that Red Hat Subscriptions have been imported.

Some details from "Monitor->Task" for one of the failure:
Action:
Actions::Katello::RepositorySet::ScanCdn

Input:
{"product_id"=>373,
 "content_id"=>"2396",
 "remote_user"=>"admin-518dfd54",
 "remote_cp_user"=>"admin",
 "locale"=>"en"}

Output:
{}

Exception:
Katello::Errors::SecurityViolation: CDN loading error: access forbidden to https://cdn.redhat.com:443/content/dist/rhel/server/6/listing

Backtrace:
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.49/app/lib/katello/resources/cdn.rb:109:in `rescue in get'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.49/app/lib/katello/resources/cdn.rb:83:in `get'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.49/app/lib/katello/util/cdn_var_substitutor.rb:147:in `get_substitutions_from'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.49/app/lib/katello/util/cdn_var_substitutor.rb:137:in `for_each_substitute_of_next_var'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.49/app/lib/katello/util/cdn_var_substitutor.rb:84:in `substitute_vars_in_prefix'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.49/app/lib/katello/util/cdn_var_substitutor.rb:60:in `substitute_vars'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.49/app/lib/actions/katello/repository_set/scan_cdn.rb:46:in `fetch_results'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.49/app/lib/actions/katello/repository_set/scan_cdn.rb:38:in `run'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/action.rb:481:in `block (3 levels) in execute_run'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/middleware/stack.rb:26:in `call'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/middleware/stack.rb:26:in `pass'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.7.7/lib/dynflow/middleware.rb:16:in `pass'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.49/app/lib/actions/middleware/remote_action.rb:27:in `block in run'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.49/app/lib/actions/middleware/remote_action.rb:57:in `block (2 levels) in as_remote_user'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.49/app/lib/katello/util/thread_session.rb:84:in `pulp_config'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.49/app/lib/actions/middleware/remote_action.rb:43:in `as_pulp_user'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.49/app/lib/actions/middleware/remote_action.rb:56:in `block in as_remote_user'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.49/app/lib/katello/util/thread_session.rb:91:in `cp_config'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.49/app/lib/actions/middleware/remote_action.rb:38:in `as_cp_user'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.49/app/lib/actions/middleware/remote_action.rb:55:in `as_remote_user'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.49/app/lib/actions/middleware/remote_action.rb:27:in `run'
...

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

How reproducible:
50-90%

Steps to Reproduce:
1. Create new organization
2. Clone and upload manifest for it
3. Try to enable RepositorySet (it is not so important what reposet should be used specifically as issue seems pretty generic, but anyway, let's it be "'Red Hat Enterprise Virtualization Agents for RHEL 6 Workstation (RPMs)'" from "Red Hat Enterprise Linux Workstation" or "Red Hat Satellite Tools 6 Beta (for RHEL 7 Server) (RPMs)" from "Red Hat Enterprise Linux Server")

Actual results:
Reposet cannot be selected from the list

Expected results:
Reposet can be selected and enabled

Additional info:

Comment 1 Oleksandr Shtaier 2015-06-15 09:21:17 UTC
Created attachment 1038857 [details]
RHST6_fail_RHST7_works (opposite to 1 screenshot)

Comment 2 Oleksandr Shtaier 2015-06-15 09:22:12 UTC
Created attachment 1038858 [details]
One more behavior for defect

Comment 3 Oleksandr Shtaier 2015-06-15 09:23:26 UTC
Created attachment 1038859 [details]
RHE Virtualization Agent repo

Comment 4 RHEL Program Management 2015-06-15 09:32:41 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 7 Oleksandr Shtaier 2015-06-16 08:05:00 UTC
Created attachment 1039301 [details]
Log with failure

Comment 8 Corey Welton 2015-06-29 16:00:31 UTC
Closing this out as it is probably an intermittent hosted issue.  We can reopen if we see it more readily/have a real repro.


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