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:
Â