[
https://issues.apache.org/jira/browse/AMBARI-19078?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ayub Khan updated AMBARI-19078:
-------------------------------
Summary: Atlas service check reports false positive (was: Atlas service
check reports faise positive)
> Atlas service check reports false positive
> ------------------------------------------
>
> Key: AMBARI-19078
> URL: https://issues.apache.org/jira/browse/AMBARI-19078
> Project: Ambari
> Issue Type: Bug
> Components: ambari-server
> Affects Versions: 2.5.0
> Reporter: Ayub Khan
>
> Atlas service check is successful even if the service does not return 200 ok.
> {noformat}
> 2016-12-05 07:24:23,768 - Stack Feature Version Info: stack_version=2.5,
> version=None, current_cluster_version=2.5.3.0-35 -> 2.5
> 2016-12-05 07:24:23,777 - Using hadoop conf dir:
> /usr/hdp/current/hadoop-client/conf
> 2016-12-05 07:24:23,795 - Execute['/usr/bin/kinit -kt
> /etc/security/keytabs/smokeuser.headless.keytab [email protected]']
> {'user': 'ambari-qa'}
> 2016-12-05 07:24:23,899 - Execute['curl --negotiate -u : -b ~/cookiejar.txt
> -c ~/cookiejar.txt -s -o /dev/null -w "%{http_code}"
> https://ctr-e61-1479789298070-4849-01-000003.hwx.site:21443/'] {'tries': 5,
> 'user': 'ambari-qa', 'try_sleep': 10}
> 2016-12-05 07:24:24,162 - Retrying after 10 seconds. Reason: Execution of
> 'curl --negotiate -u : -b ~/cookiejar.txt -c ~/cookiejar.txt -s -o /dev/null
> -w "%{http_code}"
> https://ctr-e61-1479789298070-4849-01-000003.hwx.site:21443/' returned 60. 000
> 2016-12-05 07:24:34,451 - Retrying after 10 seconds. Reason: Execution of
> 'curl --negotiate -u : -b ~/cookiejar.txt -c ~/cookiejar.txt -s -o /dev/null
> -w "%{http_code}"
> https://ctr-e61-1479789298070-4849-01-000003.hwx.site:21443/' returned 60. 000
> 2016-12-05 07:24:44,714 - Retrying after 10 seconds. Reason: Execution of
> 'curl --negotiate -u : -b ~/cookiejar.txt -c ~/cookiejar.txt -s -o /dev/null
> -w "%{http_code}"
> https://ctr-e61-1479789298070-4849-01-000003.hwx.site:21443/' returned 60. 000
> 2016-12-05 07:24:55,031 - Retrying after 10 seconds. Reason: Execution of
> 'curl --negotiate -u : -b ~/cookiejar.txt -c ~/cookiejar.txt -s -o /dev/null
> -w "%{http_code}"
> https://ctr-e61-1479789298070-4849-01-000003.hwx.site:21443/' returned 60. 000
> Command completed successfully!
> {noformat}
> And ideally this should check for this API "/api/atlas/admin/status" and
> return true if the http response code is 200 OK.
> CC; [~mneethiraj] [~skoneru]
> {noformat}
> [root@ctr-e61-1479789298070-4849-01-000003 scripts]# rpm -qa | grep
> ambari-server
> ambari-server-2.4.2.0-136.x86_64
> [root@ctr-e61-1479789298070-4849-01-000003 scripts]# rpm -qa | grep atlas
> atlas-metadata_2_5_3_0_35-0.7.0.2.5.3.0-35.el6.noarch
> ranger_2_5_3_0_35-atlas-plugin-0.6.0.2.5.3.0-35.el6.x86_64
> atlas-metadata_2_5_3_0_35-hive-plugin-0.7.0.2.5.3.0-35.el6.noarch
> atlas-3.10.1-10.el7.x86_64
> [root@ctr-e61-1479789298070-4849-01-000003 scripts]#
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)