Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-30973

insights-client fails to upload with error "Authentication to the Insights Service failed"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Undefined Undefined
    • None
    • 6.17.0
    • RH Cloud
    • False
    • Critical
    • None
    • None
    • None
    • None

      Description of problem:

       

      How reproducible:

      Always

      Is this issue a regression from an earlier version:

      yes, it worked on earlier snaps of Satellite 6.17.0/stream

      Steps to Reproduce:

      1. Register a RHEL host to Satellite with setup_insights=True 

      2. # insights-client --test-connection

      # insights-client --test-connection
      GET https://satellite.redhat.com:443/redhat_access/r/insights/v1/branch_info
      HTTP Status: 200 OK
      HTTP Response Text: {"remote_leaf":"4104e451-1e5e-4b52-9b86-a541d138174e","remote_branch":"8055a76d-7692-4517-889d-911e6783278b","display_name":"Default Organization","hostname":"satellite.redhat.com","product":{"type":"Satellite","major_version":"6","minor_version":"17"},"organization_id":1,"satellite_instance_id":"0e51c7f8-8b3d-5a37-a0b9-9311ed7a2d0c","labels":[{"namespace":"satellite","key":"location","value":"Default Location"},{"namespace":"satellite","key":"location","value":"Default Location"},{"namespace":"satellite","key":"organization","value":"Default Organization"},{"namespace":"satellite","key":"lifecycle_environment","value":"Library"},{"namespace":"satellite","key":"activation_key","value":"test_ak_el10_internal"},{"namespace":"satellite","key":"content_view","value":"test_cv_el10_internal"},{"namespace":"satellite","key":"satellite_instance_id","value":"0e51c7f8-8b3d-5a37-a0b9-9311ed7a2d0c"},{"namespace":"satellite","key":"organization_id","value":"1"}]}
      Running Connection Tests...
      === Begin Upload URL Connection Test ===
      Testing: https://satellite.redhat.com:443/redhat_access/r/insights/uploads/
      POST https://satellite.redhat.com:443/redhat_access/r/insights/uploads/ data={'test': 'test'}
      HTTP Status: 502 Bad Gateway
      HTTP Response Text: {"message":"Authentication to the Insights Service failed.","headers":{}}
      Connection failed
      === End Upload URL Connection Test: FAILURE ====== Begin API URL Connection Test ===
      Testing: https://satellite.redhat.com:443/redhat_access/r/insights/
      GET https://satellite.redhat.com:443/redhat_access/r/insights/
      HTTP Status: 502 Bad Gateway
      HTTP Response Text: {"message":"Authentication to the Insights Service failed.","headers":{}}
      Connection failed
      === End API URL Connection Test: FAILURE ===

      Actual behavior:
      insights-client fails to upload with error "Authentication to the Insights Service failed" during registration, and test-connection

      Expected behavior:
      RHEL host is registered successfully and insights-client works as expected

      Business Impact / Additional info:

       

              rhn-engineering-sshtein Shimon Shtein
              gtalreja@redhat.com Gaurav Talreja
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: