Unable to sync Repositories on Satellite 6 behind proxy with error 'Errors: PLP0000: Importer indicated a failed response'.

Solution Verified - Updated

Environment

  • Red Hat Satellite 6.x.

Issue

  • Trying to sync any repositories , getting the below error on Satellite server:

    - Yum Metadata: A connection error occurred
    - PLP0000: Importer indicated a failed response
    
  • Getting below error in the Sync task initiated on Satellite server:

    "ERRORS: There was an error attempting to retrieve the repository list: getaddrinfo: Name or service not known"
    <img src="/sites/default/files/styles/large/public/images/image001_1.png?itok=NjUNZnwi" width="435" height="198" alt=""  class="image-large" />
    

Resolution

Satellite 6.7 or newer

Follow this documentation directly.

Satellite 6.6 or older:

  • Verify the correct proxy settings in /etc/rhsm/rhsm.conf on Satellite server :

    #http proxy server to use
    proxy_hostname = proxyserver.com
    # port for http proxy server
    proxy_port = 80
    
  • Update the proxy details into foreman :

      # katello-installer --katello-proxy-url=http://proxyserver.com --katello-proxy-port=80
    
      OR 
    
      # satellite-installer --katello-proxy-url=http://proxyserver.com --katello-proxy-port=80 --katello-proxy-username redhat --katello-proxy-password xxxxx
    
      Where:
        --katello-proxy-password      Proxy password for authentication (default: nil)
        --katello-proxy-port               Port the proxy is running on (default: nil)
        --katello-proxy-url                  URL of the proxy server (default: nil)
        --katello-proxy-username      Proxy username for authentication (default: nil)
    
  • Check the below files are updated with the correct proxy details:

    # cat /etc/pulp/server/plugins.conf.d/yum_importer.json
    # cat /etc/pulp/server/plugins.conf.d/puppet_importer.json
    # cat /etc/pulp/server/plugins.conf.d/iso_importer.json
    # cat /etc/foreman/plugins/katello.yaml
    

For more KB articles/solutions related to Red Hat Satellite 6.x Repository Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Repository Issues.

Root Cause

  • The proxy server configured in foreman does not match with rhsm.conf file.

    • Check the answer /etc/katello-installer/answers.katello-installer.yaml file on Satellite server:

          # vi /etc/katello-installer/answers.katello-installer.yaml
      
          proxy_url: "http://10.10.10.10"
          proxy_port: "80"
      
    • Compare the proxy server details with rhsm.conf file

      # vi /etc/rhsm/rhsm.conf
      proxy_hostname = proxyserver.com
      # port for http proxy server
      proxy_port = 80
      
    • Check the proxy value set for CDN

      # vi /etc/foreman/plugins/katello.yaml
      cdn_proxy:
      host: http://10.10.10.10
      port: 80
      

Diagnostic Steps

  • Repo Sync task status :

    Label: Actions::Katello::Repository::Sync
    Name: Synchronize
    Owner: foreman_admin
    Started at: 2016-01-01 11:00:02 UTC
    Ended at: 2016-01-01 11:00:06 UTC
    State: stopped
    Result: warning
    Params: repository 'Red Hat Satellite Capsule 6.1 for RHEL 7 Server RPMs x86_64'; product 'Red Hat Satellite Capsule'; organization 'Orgnaization'
    100.0% Complete
    100%
    Output:  Yum Metadata: A connection error occurred
    Errors:  PLP0000: Importer indicated a failed response
    
  • Manifest refresh task status :

    Label: Actions::Katello::Provider::ManifestRefresh
    Name: Refresh Manifest
    Owner: admin
    Started at: 2016-01-01 01:11:10 UTC
    Ended at: 2016-01-11 01:11:11 UTC
    State: stopped
    Result: warning
    Params: organization 'Orgnaization'
    100% Complete
    100%
    Errors:  302 "Moved Temporarily"
    
  • Production log shows connection issue

      # vi /var/log/foreman/production.log 
    
      Feb 18 19:41:17 satellite.example.com pulp: nectar.downloaders.threaded:WARNING: Connection Error - https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/sat-tools/6.1/os/repodata/repomd.xml could not be reached.
      Feb 18 19:41:17 satellite.example.com pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (29729-73600) sync failed
      Feb 18 19:41:17 satellite.example.com pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (29729-73600) Traceback (most recent call last):
      Feb 18 19:41:17 satellite.example.com pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (29729-73600)   File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/sync.py", line 141, in run
      Feb 18 19:41:17 satellite.example.com pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (29729-73600)     metadata_files = self.get_metadata()
      Feb 18 19:41:17 satellite.example.com pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (29729-73600)   File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/importers/yum/sync.py", line 221, in get_metadata
      Feb 18 19:41:17 satellite.example.com pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (29729-73600)     raise FailedException(str(e))
      Feb 18 19:41:17 satellite.example.com pulp: pulp_rpm.plugins.importers.yum.sync:ERROR: (29729-73600) FailedException: A connection error occurred
    
  • Check if yum command works from client . If yum works , it means, rhsm.conf proxy is working properly

    # yum check-update
    
SBR
Product(s)
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.