Hide Forgot
Description of problem: When a client is registered to RHI via sat6 and executes 'redhat-access-insights --test-connection', the result shows 'Connection failure' though the connection is established successfully. If the system is registered successfully to the RHI service, there should be no connectivity errors listed. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. Register a client machine(via sat6) to RHI service using 'redhat-access-insights --register'. 2. Make sure that the system appears on Sat6 dashboard > RHI> Systems. 3. From the client machine, execute "redhat-access-insights --test-connection' Actual results: $redhat-access-insights --test-connection Successfully registered 59478992.lab.eng.rdu2.redhat.com Starting to collect Insights data Uploading Insights data, this may take a few minutes Upload completed successfully! 2016-02-11 17:30:58 - robottelo.ssh - DEBUG - >>> [10.8.30.250] redhat-access-insights --test-connection 2016-02-11 17:30:58 - robottelo.ssh - INFO - Instantiated Paramiko client 0x38ae690 2016-02-11 17:30:59 - robottelo.ssh - INFO - Destroying Paramiko client 0x38ae690 2016-02-11 17:30:59 - robottelo.ssh - INFO - Destroyed Paramiko client 0x38ae690 2016-02-11 17:30:59 - robottelo.ssh - DEBUG - <<< stdout Connection test config: Proxy config: None Certificate Verification: /etc/rhsm/ca/katello-server-ca.pem === Begin Certificate Chain Test === depth=1 verify error:num=0 verify return:1 depth=0 verify error:num=0 verify return:1 --- Certificate chain 0 s :/C=US/ST=North Carolina/O=Katello/OU=SomeOrgUnit/CN=sat6-rhai-ci.rhaitest.cee.redhat.com i :/C=US/ST=North Carolina/L=Raleigh/O=Katello/OU=SomeOrgUnit/CN=sat6-rhai-ci.rhaitest.cee.redhat.com 1 s :/C=US/ST=North Carolina/L=Raleigh/O=Katello/OU=SomeOrgUnit/CN=sat6-rhai-ci.rhaitest.cee.redhat.com i :/C=US/ST=North Carolina/L=Raleigh/O=Katello/OU=SomeOrgUnit/CN=sat6-rhai-ci.rhaitest.cee.redhat.com --- Server certificate -----BEGIN CERTIFICATE----- MIIFLjCCBBagAwIBAgIJAPXL3RmCF4OsMA0GCSqGSIb3DQEBBQUAMIGPMQswCQYD VQQGEwJVUzEXMBUGA1UEC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8xCzAJBgNVBAYTAlVT MRcwFQYDVQQIEw5Ob3J0aCBDYXJvbGluYTEQMA4GA1UEBxMHUmFsZWlnaDEQMA4G A1UEChMHS2F0ZWxsbzEUMBIGA1UECxMLU29tZU9yZ1VuaXQxLTArBgNVBAMTJHNh dDYtcmhhaS1jaS5yaGFpdGVzdC5jZWUucmVkaGF0LmNvbYIJAPXL3RmCF4OnMC8G A1UdEQQoMCaCJHNhdDYtcmhhaS1jaS5yaGFpdGVzdC5jZWUucmVkaGF0LmNvbTAN BgkqhkiG9w0BAQUFAAOCAQEALiwedL6G+VsdeGk/X/W246m6SKEJNW+W+Uu0hoiy E/gkARRJMDN/FRCizyizFHuJqnEiJPBafJI+NlSKKTiLlsHiZnrhMW38lhh6iFzP O3j1ZxdujrHXaxjhPePTF/oswOaq5jOnfqxa5CXguDiM8ewSoHRP3cR8xIoKV7o0 xN+JYrB3cIkm/shmg4xLkw+FWbTdH8NTfuJGPu4OV2gTba8ek/fRSboX4+dO/G3C ROk7nBzGh7e5xMaFkC1Vz+QVZa5286a9rEcbW7SUtdgezBCpF4Wb24rytlrIDIIl LWQg8jZKSjl7cytrGzzARN4fxjEAl5fvk3Or52Hlk2FQCQ== -----END CERTIFICATE----- subject=/C=US/ST=North Carolina/O=Katello/OU=SomeOrgUnit/CN=sat6-rhai-ci.rhaitest.cee.redhat.com issuer=/C=US/ST=North Carolina/L=Raleigh/O=Katello/OU=SomeOrgUnit/CN=sat6-rhai-ci.rhaitest.cee.redhat.com --- === End Certificate Chain Test: SUCCESS === === Begin Upload URL Connection Test === Testing: https://sat6-rhai-ci.rhaitest.cee.redhat.com:443/redhat_access/r/insights/uploads/ HTTP Status Code: 400 HTTP Status Text: Bad Request Connection failed === End Upload URL Connection Test: FAILURE === === Begin API URL Connection Test === Testing: https://sat6-rhai-ci.rhaitest.cee.redhat.com:443/redhat_access/r/insights/ HTTP Status Code: 401 HTTP Status Text: Unauthorized Connection failed === End API URL Connection Test: FAILURE === Connectivity tests completed with some errors Expected results: As the system was registered successfully to the RHI service, there should be no connectivity errors listed. Additional info:
Fixed in tfm-rubygem-foreman-redhat_access-1.0.1-1