You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@metron.apache.org by "Nick Allen (JIRA)" <ji...@apache.org> on 2018/01/17 13:52:00 UTC

[jira] [Updated] (METRON-1348) Metron Service Checks Use Wrong Hostname

     [ https://issues.apache.org/jira/browse/METRON-1348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nick Allen updated METRON-1348:
-------------------------------
    Fix Version/s: Next + 1

> Metron Service Checks Use Wrong Hostname
> ----------------------------------------
>
>                 Key: METRON-1348
>                 URL: https://issues.apache.org/jira/browse/METRON-1348
>             Project: Metron
>          Issue Type: Bug
>    Affects Versions: 0.4.2
>            Reporter: Nick Allen
>            Assignee: Nick Allen
>            Priority: Major
>             Fix For: Next + 1
>
>
> The Metron service check can often use the incorrect hostname when checking the Alerts UI, Management UI, and REST services.  
> Ambari can run the service check on any node in the cluster, not just the node the service is actually running on.  The service check code currently uses the hostname on which the service check is running.  If the service is not actually installed on that host, the service check will incorrectly fail.
> The service check code should be updated to find the hostname where the service is installed and use that hostname.  
> For example, here is a log of a service check that is looking on the wrong host for the Metron REST service.
> {code}
> 2017-12-08 17:11:30,433 - Checking connectivity to REST application
> 2017-12-08 17:11:30,434 - Checking HTTP connectivity; host=hcpua-10.openstacklocal, port=8082, user=metron cmd=curl -sS --max-time 3 hcpua-10.openstacklocal:8082
> 2017-12-08 17:11:30,434 - Execute['curl -sS --max-time 3 hcpua-10.openstacklocal:8082'] {'logoutput': False, 'tries': 3, 'user': 'metron', 'try_sleep': 5}
> 2017-12-08 17:11:30,471 - Retrying after 5 seconds. Reason: Execution of 'curl -sS --max-time 3 hcpua-10.openstacklocal:8082' returned 7. curl: (7) Failed to connect to hcpua-10.openstacklocal port 8082: Connection refused
> 2017-12-08 17:11:35,519 - Retrying after 5 seconds. Reason: Execution of 'curl -sS --max-time 3 hcpua-10.openstacklocal:8082' returned 7. curl: (7) Failed to connect to hcpua-10.openstacklocal port 8082: Connection refused
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)