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 E8BA1200D1B for ; Thu, 12 Oct 2017 17:53:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E75E6160BE4; Thu, 12 Oct 2017 15:53:06 +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 3A2DC1609CD for ; Thu, 12 Oct 2017 17:53:06 +0200 (CEST) Received: (qmail 64768 invoked by uid 500); 12 Oct 2017 15:53:05 -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 64755 invoked by uid 99); 12 Oct 2017 15:53:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Oct 2017 15:53:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 800561A176B for ; Thu, 12 Oct 2017 15:53:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id VhaWDSR1yPfl for ; Thu, 12 Oct 2017 15:53:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 71D7D61157 for ; Thu, 12 Oct 2017 15:53:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id F172DE05C1 for ; Thu, 12 Oct 2017 15:53:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id AFA3A23FA8 for ; Thu, 12 Oct 2017 15:53:00 +0000 (UTC) Date: Thu, 12 Oct 2017 15:53:00 +0000 (UTC) From: "Nishant Bangarwa (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-22221) Druid Components install fails with AttributeError: 'DruidBroker' object has no attribute 'available_packages_in_repos' MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 12 Oct 2017 15:53:07 -0000 [ https://issues.apache.org/jira/browse/AMBARI-22221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16202143#comment-16202143 ] Nishant Bangarwa commented on AMBARI-22221: ------------------------------------------- this was a always a bug from the beginning, Got uncovered by recent changes in script.py that started relying on available_packages_in_repos attribute. > Druid Components install fails with AttributeError: 'DruidBroker' object has no attribute 'available_packages_in_repos' > ----------------------------------------------------------------------------------------------------------------------- > > Key: AMBARI-22221 > URL: https://issues.apache.org/jira/browse/AMBARI-22221 > Project: Ambari > Issue Type: Bug > Components: ambari-server > Affects Versions: 2.6.0 > Reporter: Dileep Kumar Chiguruvada > Assignee: Nishant Bangarwa > Priority: Blocker > Fix For: 2.6.0 > > Attachments: AMBARI-22221.patch > > > Druid Components install fails with AttributeError: 'DruidBroker' object has no attribute 'available_packages_in_repos'. > {code} > Traceback (most recent call last): > File "/var/lib/ambari-agent/cache/common-services/DRUID/0.10.1/package/scripts/broker.py", line 28, in > DruidBroker().execute() > File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 367, in execute > method(env) > File "/var/lib/ambari-agent/cache/common-services/DRUID/0.10.1/package/scripts/druid_node.py", line 38, in install > self.install_packages(env) > File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 793, in install_packages > name = self.format_package_name(package['name']) > File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 535, in format_package_name > self.load_available_packages() > File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 756, in load_available_packages > if self.available_packages_in_repos: > AttributeError: 'DruidBroker' object has no attribute 'available_packages_in_repos' > {code} > This issue is due to Ambari trying to install indivifual "Druid Componennt" package which is not part of repo, Druid has single druid-[version].noarch.rpm. > Seems there is change in Ambari deploy code to search for each component that exist and trying to install the package with component name. -- This message was sent by Atlassian JIRA (v6.4.14#64029)