Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 79599200B50 for ; Thu, 14 Jul 2016 19:50:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 78271160A60; Thu, 14 Jul 2016 17:50:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id CA43F160A63 for ; Thu, 14 Jul 2016 19:50:21 +0200 (CEST) Received: (qmail 33239 invoked by uid 500); 14 Jul 2016 17:50:20 -0000 Mailing-List: contact issues-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 issues@ambari.apache.org Received: (qmail 33220 invoked by uid 99); 14 Jul 2016 17:50:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Jul 2016 17:50:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7AF342C027F for ; Thu, 14 Jul 2016 17:50:20 +0000 (UTC) Date: Thu, 14 Jul 2016 17:50:20 +0000 (UTC) From: "Yusaku Sako (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-16378) stackadvisor uses getHostsForSlaveComponent with wrong parameter name MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 14 Jul 2016 17:50:22 -0000 [ https://issues.apache.org/jira/browse/AMBARI-16378?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yusaku Sako updated AMBARI-16378: --------------------------------- Fix Version/s: (was: trunk) 2.4.0 > stackadvisor uses getHostsForSlaveComponent with wrong parameter name > --------------------------------------------------------------------- > > Key: AMBARI-16378 > URL: https://issues.apache.org/jira/browse/AMBARI-16378 > Project: Ambari > Issue Type: Bug > Components: ambari-server > Affects Versions: trunk > Reporter: Lav Jain > Assignee: Lav Jain > Fix For: 2.4.0 > > Attachments: AMBARI-16378.patch > > > {code} > def getHostsForSlaveComponent(self, services, hosts, component, hostsList, hostsComponentsMap, freeHosts): > componentName = component["StackServiceComponents"]["component_name"] > if component["StackServiceComponents"]["cardinality"] == "ALL": > return hostsList > componentIsPopulated = self.isComponentHostsPopulated(component) > if componentIsPopulated: > return component["StackServiceComponents"]["hostnames"] > hostsForComponent = [] > if self.isSlaveComponent(component): > cardinality = str(component["StackServiceComponents"]["cardinality"]) > if self.isComponentUsingCardinalityForLayout(component) and cardinality: > # cardinality types: 1+, 1-2, 1 > {code} > The correct parameter name is comonentName (instead of component) -- This message was sent by Atlassian JIRA (v6.3.4#6332)