ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Lysnichenko (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-2401) Perform hostname comparison before registering the agent
Date Mon, 17 Jun 2013 16:14:19 GMT
Dmitry Lysnichenko created AMBARI-2401:
------------------------------------------

             Summary: Perform hostname comparison before registering the agent
                 Key: AMBARI-2401
                 URL: https://issues.apache.org/jira/browse/AMBARI-2401
             Project: Ambari
          Issue Type: Bug
          Components: controller
    Affects Versions: 1.2.5
            Reporter: Dmitry Lysnichenko
            Assignee: Dmitry Lysnichenko
             Fix For: 1.2.5




Host registration commonly fails when Agent machine registers with Server under a different
hostname than Server expected (results in failed register because Server thinks host never
registered)

This is when the Agent machine hostname is not set properly (or set differently than how Ambari
server expects), so the Ambari server never sees the Agent registration return, resulting
in a failed registration.

Need to make this scenario 1) easier to troubleshoot 2) more clear to the user 3) provide
paths out of this situation (warn, retry, remove)

Proposal:

    When using SSH to register hosts, Ambari server should send down expected hostname during
bootstrap. For example, user enters host.name.expected in the UI.
    Ambari server connects to host.name.expected, then starts the agent setup process. Once
the agent determines what hostname it will register as (via figuring out fqdn), it should
confirm that it matches host.name.expected
    In the case where those match, Agent is started and proceeds with registration.
    In the case where those do not match, Agent writes to log "ambari agent machine hostname
does not match expected ambari server hostname. Aborting registration. Please check hostname,
hostname -f and /etc/hosts file to confirm your hostname is setup correctly"
    Also, in the do not match case, the ambari server will indicated "Failed" on registration.
That should also include a message "Registration failed. Please check the Ambari Agent log
on the <target host> as /var/log/ambari-agent/ambari-agent.log for more information"

On manual agent registration, since there is to "expected" hostname (since the agent registration
was not initiated by the ambari server), the agent should just register as normal (as it does
today).


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message