Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D907318288 for ; Fri, 12 Feb 2016 06:09:18 +0000 (UTC) Received: (qmail 36522 invoked by uid 500); 12 Feb 2016 06:09:18 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 36440 invoked by uid 500); 12 Feb 2016 06:09:18 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 36338 invoked by uid 99); 12 Feb 2016 06:09:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Feb 2016 06:09:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 5FD932C1F6F for ; Fri, 12 Feb 2016 06:09:18 +0000 (UTC) Date: Fri, 12 Feb 2016 06:09:18 +0000 (UTC) From: "Hudson (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-14966) Stack Advisor incorrectly recommends Slave component on a host which does not have it installed during Add service wizard 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-14966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15144109#comment-15144109 ] Hudson commented on AMBARI-14966: --------------------------------- ABORTED: Integrated in Ambari-trunk-Commit #4316 (See [https://builds.apache.org/job/Ambari-trunk-Commit/4316/]) AMBARI-14966: Stack Advisor incorrectly recommends Slave component on a (jaoki: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=8aab63270ebfe34aa75c47a150fbb4a1838d0ec1]) * ambari-server/src/test/python/stacks/2.0.6/common/test_stack_advisor.py * ambari-server/src/main/resources/stacks/stack_advisor.py > Stack Advisor incorrectly recommends Slave component on a host which does not have it installed during Add service wizard > ------------------------------------------------------------------------------------------------------------------------- > > Key: AMBARI-14966 > URL: https://issues.apache.org/jira/browse/AMBARI-14966 > Project: Ambari > Issue Type: Bug > Components: stacks > Affects Versions: trunk > Reporter: bhuvnesh chaudhary > Assignee: bhuvnesh chaudhary > Priority: Minor > Fix For: trunk, 2.2.0 > > Attachments: AMBARI-14966-2.patch, AddHostWithoutAnyService.png, AfterFix.png, FreshInstallOnSingleNode.png, IncorrectAssignment.png > > > Steps to reproduce: > - Install a cluster with HDFS (To start with single node host c6401) > [^FreshInstallOnSingleNode.png] > - Add a new host (c6402) and don't add any of the slave components or client > [^AddHostWithoutAnyService.png] > - Add HAWQ or any other service, don't change the recommendation on master components page and click next > - Datanode checkbox will be checked on c6402 even though its not installed. > [^IncorrectAssignment.png] > Bug: > - Datanode should not be checked on c6402 as its not installed on the host. > Current Behavior: > - In stack advisor, a list of free hosts is created at https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/stacks/stack_advisor.py#L382 > - During the step of creating the recommendation for Slave components slave hosts map is extended with any of the hosts in the freeHosts list at https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/stacks/stack_advisor.py#L412-L413 > - Then in Ambari-web it updates the checkbox or datanode as installed on c6402. > Since this minor code changes goes to core stack advisor, i am requesting inputs to be sure before going ahead with the change. > Few questions: > 1. Do we extend the hostlist for already installed Slaves for some reason or its incorrect ? > 2. Do you foresee any concerns with the patch. (I have tested it on Fresh Install of Cluster and Add services page) > After fix: Datanode is not checked on c6402 > [^AfterFix.png] -- This message was sent by Atlassian JIRA (v6.3.4#6332)