Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1306822

Summary: --test-connection option shall not give connection failure message if the client is successfully registered to RHI service via sat 6.
Product: Red Hat Satellite Reporter: Anisha Narang <anarang>
Component: RH Cloud - InsightsAssignee: Katello Bug Bin <katello-bugs>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: UnspecifiedCC: kroberts
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-foreman-redhat_access-1.0.1-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-21 18:45:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Anisha Narang 2016-02-11 19:24:29 UTC
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
VQQGEwJVUzEXMBUGA1UECBMOTm9ydGggQ2Fyb2xpbmExEDAOBgNVBAcTB1JhbGVp
Z2gxEDAOBgNVBAoTB0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GluYTEQMA4GA1UEBxMHUmFsZWlnaDEQMA4G
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:

Comment 1 Keith Robertson 2016-03-21 18:45:10 UTC
Fixed in tfm-rubygem-foreman-redhat_access-1.0.1-1