Bug 1396976 - Insights unable to make a test connection in 5.8 compose
Summary: Insights unable to make a test connection in 5.8 compose
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: redhat-access-plugin-sat5
Version: 580
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
Assignee: Chris Kyrouac
QA Contact: Radovan Drazny
URL:
Whiteboard:
Depends On:
Blocks: 1400201 1427060
TreeView+ depends on / blocked
 
Reported: 2016-11-21 10:12 UTC by Radovan Drazny
Modified: 2017-06-21 12:16 UTC (History)
8 users (show)

Fixed In Version: redhat-access-plugin-sat5-2.1.0-54.el6sat
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-06-21 12:16:57 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Radovan Drazny 2016-11-21 10:12:20 UTC
Description of problem:
In the latest Sat 5.8 compose the Insights service cannot make a test connection to the Red Hat Access Insights API.

Version-Release number of selected component (if applicable):
Satellite-5.8-RHEL-6-20161120.n.0

How reproducible:
always


Steps to Reproduce:
1. On freshly installed Sat 5.8 server go to Admin -> Insights page.
2. Check "Enable Access Insights Service" and "Debug Mode", and press "Update"
3. Press the "Test Connection To Red Hat Access Insights API" button.

Actual results:
Red notification icon displayed with a message "Unable to connect to Red Hat Access Insights API"

Expected results:
Successful test connection


Additional info:
The debug windows shows the following output:
2016-11-21 05:01:02,936 13829 [TP-Processor11] DEBUG c.r.t.i.sat5.rest.ConfigService - Verifying connection to customer portal.
2016-11-21 05:01:02,968 13861 [TP-Processor11] DEBUG c.r.t.integration.sat5.util.Util - Loading rhai.keystore
2016-11-21 05:01:03,411 14304 [TP-Processor11] DEBUG c.r.t.i.s.portal.InsightsApiClient - Accept header: application/json
2016-11-21 05:01:03,535 14428 [TP-Processor11] ERROR c.r.t.i.sat5.rest.ConfigService - Unable to verify connection to Red Hat Customer Portal.

Comment 1 Radovan Drazny 2016-11-30 16:48:46 UTC
To extend the information - beside the test connection, Insights service doesn't work at all. After enabling the Insights service on the Satellite 5.8 and attempting to register a machine to Insights (machine is registered to the Satellite), there is the following output:

# redhat-access-insights --register
ERROR: Upload failed!
Debug Information:
HTTP Status Code: 500
HTTP Status Text: Internal Server Error
[root@ibm-x3650m4-01-vm-01 ~]# redhat-access-insights --register --verbose
Logging initialized
invoked with args: {'status': False, 'reregister': False, 'conf': '/etc/redhat-access-insights/redhat-access-insights.conf', 'from_stdin': False, 'no_gpg': False, 'verbose': True, 'display_name': None, 'silent': False, 'support': False, 'just_upload': None, 'version': False, 'no_tar_file': False, 'offline': False, 'test_connection': False, 'keep_archive': False, 'update': False, 'to_stdout': False, 'compressor': 'gz', 'no_upload': False, 'group': None, 'validate': False, 'from_file': False, 'retries': 1, 'unregister': False, 'register': True, 'quiet': False, 'no_schedule': False}
Version: 1.0.11
Found /etc/redhat-access-insights/machine-id
Machine-ID: b432068b-ba6d-447d-9632-703a6783c13f
app_name:redhat-access-insights
branch_info_url:None
systemid:None
upload_url:None
display_name:None
api_url:None
auto_update:True
gpg:True
base_url:cert-api.access.redhat.com/r/insights
username:
collection_rules_url:None
trace:False
obfuscate_hostname:False
insecure_connection:False
cert_verify:/etc/redhat-access-insights/cert-api.access.redhat.com.pem
loglevel:DEBUG
auto_config:True
authmethod:BASIC
obfuscate:False
no_schedule:False
Trying to auto-configure Satellite 6...
[Errno 2] No such file or directory: '/etc/pki/consumer/cert.pem'
System is not registered to Satellite 6
Trying to auto-configure Satellite 5...
Found Satellite 5 config
Found hostname hp-dl120gen9-05.rhts.eng.bos.redhat.com/redhat_access
System is registered to Satellite 5.
Attempting to auto configure!  
Attempting to auto configure hostname: hp-dl120gen9-05.rhts.eng.bos.redhat.com/redhat_access
Attempting to auto configure CA cert: /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
Attempting to auto configure proxy: None
Verifying Connectivity
app_name:redhat-access-insights
branch_info_url:None
upload_url:None
display_name:None
api_url:None
auto_update:True
gpg:True
base_url:hp-dl120gen9-05.rhts.eng.bos.redhat.com/redhat_access/r/insights
username:
collection_rules_url:None
trace:False
obfuscate_hostname:False
insecure_connection:False
cert_verify:/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT
loglevel:DEBUG
auto_config:True
authmethod:BASIC
obfuscate:False
no_schedule:False
hostname: hp-dl120gen9-05.rhts.eng.bos.redhat.com ip: 10.16.65.162
Obtaining branch information from https://hp-dl120gen9-05.rhts.eng.bos.redhat.com/redhat_access/r/insights/v1/branch_info
GET branch_info status: 200
Branch information: {"product": {"major_version": "5", "type": "SAT", "minor_version": "7"}, "hostname": "hp-dl120gen9-05.rhts.eng.bos.redhat.com", "remote_branch": "hp-dl120gen9-05.rhts.eng.bos.redhat.com", "remote_leaf": -1}
Remote branch not -1 but remote leaf is -1, must be Satellite 5
Found systemid file
Found member 'system_id'
Found leaf id: 1000010002
hostname: hp-dl120gen9-05.rhts.eng.bos.redhat.com ip: 10.16.65.162
Found /etc/redhat-access-insights/machine-id
hostname: hp-dl120gen9-05.rhts.eng.bos.redhat.com ip: 10.16.65.162
API: Create system
Found /etc/redhat-access-insights/machine-id
Obtaining branch information from https://hp-dl120gen9-05.rhts.eng.bos.redhat.com/redhat_access/r/insights/v1/branch_info
GET branch_info status: 200
Branch information: {"product": {"major_version": "5", "type": "SAT", "minor_version": "7"}, "hostname": "hp-dl120gen9-05.rhts.eng.bos.redhat.com", "remote_branch": "hp-dl120gen9-05.rhts.eng.bos.redhat.com", "remote_leaf": -1}
Remote branch not -1 but remote leaf is -1, must be Satellite 5
Found systemid file
Found member 'system_id'
Found leaf id: 1000010002
POST System: https://hp-dl120gen9-05.rhts.eng.bos.redhat.com/redhat_access/r/insights/v1/systems
{"machine_id": "b432068b-ba6d-447d-9632-703a6783c13f", "remote_branch": "hp-dl120gen9-05.rhts.eng.bos.redhat.com", "hostname": "ibm-x3650m4-01-vm-01.lab.eng.bos.redhat.com", "remote_leaf": "1000010002"}
POST System status: 500
ERROR: Upload failed!
Debug Information:
HTTP Status Code: 500
HTTP Status Text: Internal Server Error

/var/log/rhn/rhai.log on the server contains following traceback:

2016-11-30 11:37:10,610 1632699 [TP-Processor2] ERROR c.r.t.i.sat5.rest.ProxyService - Exception in ProxyService POST /*
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
        at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404) ~[commons-exec-1.3.jar:1.3]
        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166) ~[commons-exec-1.3.jar:1.3]
        at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:153) ~[commons-exec-1.3.jar:1.3]
        at com.redhat.telemetry.integration.sat5.portal.InsightsApiClient.getSatelliteSystemId(InsightsApiClient.java:123) ~[InsightsApiClient.class:na]
        at com.redhat.telemetry.integration.sat5.portal.InsightsApiClient.makeRequest(InsightsApiClient.java:98) ~[InsightsApiClient.class:na]
        at com.redhat.telemetry.integration.sat5.rest.ProxyService.proxy(ProxyService.java:249) ~[ProxyService.class:na]
        at com.redhat.telemetry.integration.sat5.rest.ProxyService.proxyPost(ProxyService.java:153) ~[ProxyService.class:na]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95) ~[na:1.7.0]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56) ~[na:1.7.0]
        at java.lang.reflect.Method.invoke(Method.java:620) ~[na:2.6 (04-06-2016)]
        at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:167) [resteasy-jaxrs-2.3.7.Final.jar:na]
        at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:269) [resteasy-jaxrs-2.3.7.Final.jar:na]
        at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:227) [resteasy-jaxrs-2.3.7.Final.jar:na]
        at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:216) [resteasy-jaxrs-2.3.7.Final.jar:na]
        at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:542) [resteasy-jaxrs-2.3.7.Final.jar:na]
        at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:524) [resteasy-jaxrs-2.3.7.Final.jar:na]
        at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:126) [resteasy-jaxrs-2.3.7.Final.jar:na]
        at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208) [resteasy-jaxrs-2.3.7.Final.jar:na]
        at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55) [resteasy-jaxrs-2.3.7.Final.jar:na]
        at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50) [resteasy-jaxrs-2.3.7.Final.jar:na]
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:723) [tomcat6-servlet-2.5-api-6.0.24.jar:na]
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) [catalina-6.0.24.jar:na]
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina-6.0.24.jar:na]
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) [catalina-6.0.24.jar:na]
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [catalina-6.0.24.jar:na]
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [catalina-6.0.24.jar:na]
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [catalina-6.0.24.jar:na]
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [catalina-6.0.24.jar:na]
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:299) [catalina-6.0.24.jar:na]
        at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) [tomcat-coyote-6.0.24.jar:na]
        at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291) [tomcat-coyote-6.0.24.jar:na]
        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769) [tomcat-coyote-6.0.24.jar:na]
        at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698) [tomcat-coyote-6.0.24.jar:na]
        at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891) [tomcat-coyote-6.0.24.jar:na]
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690) [tomcat-coyote-6.0.24.jar:na]
        at java.lang.Thread.run(Thread.java:809) [na:1.7.0]

Comment 3 Radovan Drazny 2017-01-31 11:40:53 UTC
Tested the new version of Insights integrated into Satellite 5.8 Beta (Satellite-5.8-RHEL-6-20170118.0). Satellite is registered against Prod. When clicking the "Test connection to Red Hat Insights API" button, there is following message: "Unable to connect to Red Hat Servers. Please view the Test Connection Log below for more info."

Debug log contains following output:

2017-01-31 06:15:32,911 6197286 [TP-Processor8] DEBUG c.r.t.integration.sat5.util.Util - -----BEGIN CERTIFICATE-----
MIIFqjCCA5KgAwIBAgIIZQklWTPm3D0wDQYJKoZIhvcNAQEFBQAwgaQxCzAJBgNVBAYTAlVTMRcwFQYDVQQIDA5Ob3J0aCBDYXJvbGluYTEWMBQGA1UECgwNUmVkIEhhdCwgSW5jLjEYMBYGA1UECwwPUmVkIEhhdCBOZXR3b3JrMSQwIgYDVQQDDBtSZWQgSGF0IENhbmRsZXBpbiBBdXRob3JpdHkxJDAiBgkqhkiG9w0BCQEWFWNhLXN1cHBvcnRAcmVkaGF0LmNvbTAeFw0xNjA2MTcxNTQxNTdaFw0xNzA2MTcxNTQxNTdaMC8xLTArBgNVBAMTJGViODNhNzhhLWNhYTctNGQzOC04ZDVhLTY4YTMzNWExYThhMjCCASIwDQYJKo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accept header: application/json
2017-01-31 06:15:32,941 6197316 [TP-Processor8] DEBUG c.r.t.integration.sat5.util.Util - Proxyuser: 

When trying to register a system registered to Satellite to the Insigts service, there is following output:

# redhat-access-insights --register --verbose
Logging initialized
invoked with args: {'status': False, 'reregister': False, 'conf': '/etc/redhat-access-insights/redhat-access-insights.conf', 'from_stdin': False, 'no_gpg': False, 'verbose': True, 'display_name': None, 'silent': False, 'support': False, 'just_upload': None, 'version': False, 'no_tar_file': False, 'offline': False, 'test_connection': False, 'keep_archive': False, 'update': False, 'to_stdout': False, 'compressor': 'gz', 'no_upload': False, 'group': None, 'validate': False, 'from_file': False, 'retries': 1, 'unregister': False, 'register': True, 'quiet': False, 'no_schedule': False}
Version: 1.0.11
Found /etc/redhat-access-insights/machine-id
Machine-ID: dfa6a0e1-acbc-4870-92d3-05b4d4de4775
app_name:redhat-access-insights
branch_info_url:None
systemid:None
upload_url:None
display_name:None
api_url:None
auto_update:True
gpg:True
base_url:cert-api.access.redhat.com/r/insights
username:
collection_rules_url:None
trace:False
obfuscate_hostname:False
insecure_connection:False
cert_verify:/etc/redhat-access-insights/cert-api.access.redhat.com.pem
loglevel:DEBUG
auto_config:True
authmethod:BASIC
obfuscate:False
no_schedule:False
Trying to auto-configure Satellite 6...
[Errno 2] No such file or directory: '/etc/pki/consumer/cert.pem'
System is not registered to Satellite 6
Trying to auto-configure Satellite 5...
Found Satellite 5 config
Found hostname hp-bl260cg5-01.rhts.eng.bos.redhat.com/redhat_access
System is registered to Satellite 5.
Attempting to auto configure!  
Attempting to auto configure hostname: hp-bl260cg5-01.rhts.eng.bos.redhat.com/redhat_access
Attempting to auto configure CA cert: /usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT.prod
Attempting to auto configure proxy: None
Verifying Connectivity
app_name:redhat-access-insights
branch_info_url:None
upload_url:None
display_name:None
api_url:None
auto_update:True
gpg:True
base_url:hp-bl260cg5-01.rhts.eng.bos.redhat.com/redhat_access/r/insights
username:
collection_rules_url:None
trace:False
obfuscate_hostname:False
insecure_connection:False
cert_verify:/usr/share/rhn/RHN-ORG-TRUSTED-SSL-CERT.prod
loglevel:DEBUG
auto_config:True
authmethod:BASIC
obfuscate:False
no_schedule:False
hostname: hp-bl260cg5-01.rhts.eng.bos.redhat.com ip: 10.16.64.42
Obtaining branch information from https://hp-bl260cg5-01.rhts.eng.bos.redhat.com/redhat_access/r/insights/v1/branch_info
GET branch_info status: 200
Branch information: {"product": {"major_version": "5", "type": "SAT", "minor_version": "7"}, "hostname": "hp-bl260cg5-01.rhts.eng.bos.redhat.com", "remote_branch": "hp-bl260cg5-01.rhts.eng.bos.redhat.com", "remote_leaf": -1}
Remote branch not -1 but remote leaf is -1, must be Satellite 5
Found systemid file
Found member 'system_id'
Found leaf id: 1000010001
hostname: hp-bl260cg5-01.rhts.eng.bos.redhat.com ip: 10.16.64.42
Found /etc/redhat-access-insights/machine-id
hostname: hp-bl260cg5-01.rhts.eng.bos.redhat.com ip: 10.16.64.42
API: Create system
Found /etc/redhat-access-insights/machine-id
Obtaining branch information from https://hp-bl260cg5-01.rhts.eng.bos.redhat.com/redhat_access/r/insights/v1/branch_info
GET branch_info status: 200
Branch information: {"product": {"major_version": "5", "type": "SAT", "minor_version": "7"}, "hostname": "hp-bl260cg5-01.rhts.eng.bos.redhat.com", "remote_branch": "hp-bl260cg5-01.rhts.eng.bos.redhat.com", "remote_leaf": -1}
Remote branch not -1 but remote leaf is -1, must be Satellite 5
Found systemid file
Found member 'system_id'
Found leaf id: 1000010001
POST System: https://hp-bl260cg5-01.rhts.eng.bos.redhat.com/redhat_access/r/insights/v1/systems
{"machine_id": "dfa6a0e1-acbc-4870-92d3-05b4d4de4775", "remote_branch": "hp-bl260cg5-01.rhts.eng.bos.redhat.com", "hostname": "ibm-x3650m4-02-vm-05.lab.eng.bos.redhat.com", "remote_leaf": "1000010001"}
POST System status: 401
ERROR: Upload failed!
Debug Information:
HTTP Status Code: 401
HTTP Status Text: Unauthorized 
Authorization Required.
Please ensure correct credentials in /etc/redhat-access-insights/redhat-access-insights.conf
HTTP Response Text: {"message":"Unauthorized: null user"}

Comment 5 Radovan Drazny 2017-01-31 12:21:08 UTC
Ok, according to https://access.redhat.com/products/red-hat-insights/#satellite5 this should work out of the box. Unfortunately, right now it doesn't.
FailsQA


Note You need to log in before you can comment on or make changes to this bug.