[
https://issues.apache.org/jira/browse/AMBARI-20787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15978209#comment-15978209
]
Hudson commented on AMBARI-20787:
---------------------------------
FAILURE: Integrated in Jenkins build Ambari-branch-2.5 #1424 (See
[https://builds.apache.org/job/Ambari-branch-2.5/1424/])
AMBARI-20787. Ambari agent should log how it determines it's FQDN. (stoader:
[http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=22a30276553f1179ac40e1fa74e47d6d7b3b7155])
* (edit) ambari-agent/src/main/python/ambari_agent/hostname.py
* (edit) ambari-agent/src/main/python/ambari_agent/Hardware.py
> Ambari agent should log how it determines it's FQDN
> ---------------------------------------------------
>
> Key: AMBARI-20787
> URL: https://issues.apache.org/jira/browse/AMBARI-20787
> Project: Ambari
> Issue Type: Improvement
> Components: ambari-agent
> Affects Versions: 2.4.0
> Reporter: Sebastian Toader
> Assignee: Sebastian Toader
> Fix For: 2.5.1
>
> Attachments: AMBARI-20787.v1.patch
>
>
> Ambari agent determines its FQDN that will use for registering with Ambari
> Server as follows:
> # invokes the script specified by {{hostname_script}} in ambari-agent.ini and
> uses the output of this script as host name to register with.
> # if the script mentioned above returned with a non-zero error code (or threw
> an exception) than falls back to
> [socket.getfqdn|https://docs.python.org/2/library/socket.html#socket.getfqdn]
> python api call.
> # if {{hostname_script}} is not set in ambari-agent.ini than it uses
> [socket.getfqdn|https://docs.python.org/2/library/socket.html#socket.getfqdn]
> python api call.
> Currently the agent doesn't log anything about how it obtained its FQDN which
> makes troubleshooting difficult in case it registers with Ambari Server using
> unexpected/wrong FQDN.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)