[
https://issues.apache.org/jira/browse/AMBARI-5885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14008162#comment-14008162
]
Jonathan Hurley commented on AMBARI-5885:
-----------------------------------------
Implemented via custom actions, it was determined that only IP address forward
lookup is required for this Usability check.
{noformat}
{
"RequestInfo": {
"action": "check_host",
"context": "Check host",
"parameters": {
"check_execute_list": "host_resolution_check",
"hosts": "c6401.ambari.apache.org, c6402.ambari.apache.org,
c6403.ambari.apache.org, foobar, !!!",
"threshold": "20"
}
},
"Requests/resource_filters": [
{
"hosts": "c6401.ambari.apache.org,c6402.ambari.apache.org"
}
]
}
{noformat}
The response is found in the "structured_out" of the task for the request. The
structured_out is a key-value pair of all of the requested custom actions. In
this case, there is only 1 action, so there is 1 key/value pair in the
structured_out response.
{noformat}
{
'host_resolution_check':
{
'failures': [
{'type': 'FORWARD_LOOKUP', 'host': 'foobar', 'cause': [-3, 'Temporary
failure in name resolution']},
{'type': 'FORWARD_LOOKUP', 'host': '!!!', 'cause': [-3, 'Temporary failure
in name resolution']} ],
'failed_count': 2,
'success_count': 3,
'exit_code': '0'
'message': 'There were 2 host(s) that could not resolve to an IP address.',
}
}
{noformat}
> Usability: check that hostnames are resolveable on each host
> ------------------------------------------------------------
>
> Key: AMBARI-5885
> URL: https://issues.apache.org/jira/browse/AMBARI-5885
> Project: Ambari
> Issue Type: Bug
> Affects Versions: 1.5.0
> Reporter: Jonathan Hurley
> Assignee: Jonathan Hurley
> Fix For: 1.6.1
>
>
> Check on each host that other hostnames are resolvable and reachable, and
> check reverse lookup
--
This message was sent by Atlassian JIRA
(v6.2#6252)