Return-Path: X-Original-To: apmail-incubator-ambari-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ambari-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 788F910CE1 for ; Fri, 6 Sep 2013 18:03:53 +0000 (UTC) Received: (qmail 23328 invoked by uid 500); 6 Sep 2013 18:03:53 -0000 Delivered-To: apmail-incubator-ambari-dev-archive@incubator.apache.org Received: (qmail 23141 invoked by uid 500); 6 Sep 2013 18:03:53 -0000 Mailing-List: contact ambari-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@incubator.apache.org Delivered-To: mailing list ambari-dev@incubator.apache.org Received: (qmail 23126 invoked by uid 99); 6 Sep 2013 18:03:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Sep 2013 18:03:52 +0000 Date: Fri, 6 Sep 2013 18:03:52 +0000 (UTC) From: "Sumit Mohanty (JIRA)" To: ambari-dev@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-2277) Improve host checking on registration MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-2277?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sumit Mohanty updated AMBARI-2277: ---------------------------------- Assignee: Sumit Mohanty > Improve host checking on registration > ------------------------------------- > > Key: AMBARI-2277 > URL: https://issues.apache.org/jira/browse/AMBARI-2277 > Project: Ambari > Issue Type: Bug > Components: controller > Affects Versions: 1.2.4 > Reporter: Sumit Mohanty > Assignee: Sumit Mohanty > Fix For: 1.4.1 > > > Host registration commonly fails on two scenarios: > 1) Agent machine can't make it back to Server (results in failed host register because Server never sees host register) > 2) Agent machine registers with Server under a _different_ hostname than Server expected (results in failed register because Server thinks host never registered) > Need to consider how to make these scenarios 1) easier to troubleshoot 2) more clear to the user 3) provide paths out of this situation (warn, retry, remove) > One limiting factor we have during registration currently is that we are assuming a hostname matches up. One (possible) way to alleviate this can be to provide a context, which can be any random string, that we send to the host which is returned during the registration call. If we can somehow match the context with what the host provides, we can then offer some meaningful warnings if there is a hostname mismatch. > We would have to do this BEFORE saving the hostname in the database. > Such a mechanism cannot block registration because, for example, we offer custom host name scripts from the agent. In that case, either a) the hostnames will match up anyway because registration is manual at that point or b) the user knows what he's doing and can just skip past it. > FE should consider reporting the unmatched host names along with hosts that failed to register. This will make it easy to debug the issue. -- 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