RHEL 7 Content Download

Problem: Unable to download the RHEL Content

Expected outcome:

**Foreman and Proxy versions:Forman 1.15 & Proxy 1.15

Foreman and Proxy plugin versions:

Other relevant data:
[e.g. logs from Foreman and/or the Proxy, modified templates, commands issued, etc]

Problem: Unable to download the RHEL Content

Expected outcome:

**Foreman and Proxy versions:Forman 1.15 & Proxy 1.15

Foreman and Proxy plugin versions:

Other relevant data:

# cat /etc/pulp/server/plugins.conf.d/yum_importer.json
{
    "proxy_host": "http://xxxx.xx.com",
    "proxy_port": xxx,
}

# cat /etc/rhsm/rhsm.conf 

proxy_hostname = proxyca.xxx.com
proxy_port = xxxx

# cat /etc/foreman/plugins/katello.yaml
:cdn_proxy:
    :host: https://proxyca.xxx.com
    :port: xxx
    :user:
    :password
"error"=>
     {"code"=>"RPM1004",
      "data"=>{"reason"=>"A connection error occurred"},
      "description"=>"Error retrieving metadata: A connection error occurred",
      "sub_errors"=>[]},
    "_id"=>{"$oid"=>"5abe6b4e4e1d30e83b9f91f8"},
    "id"=>"5abe6b4e4e1d30e83b9f91f8"}],
 "contents_changed"=>true,
 "poll_attempts"=>{"total"=>38, "failed"=>1}}

======================================================
Mar 30 11:53:01  pulp: requests.packages.urllib3.connectionpool:INFO: Starting new HTTPS connection (6): cdn.redhat.com
Mar 30 11:53:01  pulp: nectar.downloaders.threaded:ERROR: Skipping requests to cdn.redhat.com due to repeated connection failures: HTTPSConnectionPool(host='cdn.redhat.com', port=443): Max retries exceeded with url: /content/dist/rhel/server/7/7Server/x86_64/extras/os/repodata/repomd.xml (Caused by ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 400 Bad Request',)))
Mar 30 11:53:01  pulp: py.warnings:WARNING: [56646fd5] (15828-78048) /usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/sync.py:394: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
Mar 30 11:53:01  pulp: py.warnings:WARNING: [56646fd5] (15828-78048)   self.repomd_not_found_reason = e.message
Mar 30 11:53:01  pulp: py.warnings:WARNING: [56646fd5] (15828-78048)
Mar 30 11:53:01  pulp: requests.packages.urllib3.connectionpool:INFO: [56646fd5] Starting new HTTPS connection (1): cdn.redhat.com
Mar 30 11:53:01  pulp: requests.packages.urllib3.connectionpool:WARNING: [56646fd5] Retrying (Retry(total=4, connect=5, read=5, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 400 Bad Request',))': /content/dist/rhel/server/7/7Server/x86_64/extras/os
Mar 30 11:53:01  pulp: requests.packages.urllib3.connectionpool:INFO: [56646fd5] Starting new HTTPS connection (2): cdn.redhat.com
Mar 30 11:53:03 pulp: requests.packages.urllib3.connectionpool:WARNING: [56646fd5] Retrying (Retry(total=3, connect=5, read=5, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 400 Bad Request',))': /content/dist/rhel/server/7/7Server/x86_64/extras/os
=================================================

cat /etc/pulp/server/plugins.conf.d/yum_importer.json
{
“proxy_host”: “https://xxxx.xx.com”,
“proxy_port”: xxx,
}

Lots of stuff here, none of it very helpful. Here’s some general advice:

  1. To get ahold of RHEL content you need a Subscription Manifest downloaded from RHEL and imported into Katello.

  2. Do you have complete access to the outside world? Are you having to go through some kind of proxy? Is your firewall (corporate or otherwise) allowing access to these outside entities?

Looks like probably an issue on your end…I know I’m not seeing any issues with katello 3.5 downloading RHEL content and my katello 3.4 installation also is having no issues.

Yes, downloaded the Manifest form RHEL and imported into Katello and I can see the Redhat Subscriptions and enabled the RHEL7 RPMS software channel

Don’t have complete access to outside world… have to use Proxy to connect the outside repos.

So I did manage to run across an RHEL Forum post pretty much identfying what others have done.

https://access.redhat.com/discussions/1348283

I realize it’s a satellite 6 discussion, but it’s basically the same thing.

Hopefully you haven’t already run across this already, this is about the best I can do to help.