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 B4952200B4D for ; Fri, 8 Jul 2016 18:53:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B3523160A36; Fri, 8 Jul 2016 16:53:12 +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 10CCD160A5A for ; Fri, 8 Jul 2016 18:53:11 +0200 (CEST) Received: (qmail 57584 invoked by uid 500); 8 Jul 2016 16:53:11 -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 57561 invoked by uid 99); 8 Jul 2016 16:53:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jul 2016 16:53:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 14B442C029F for ; Fri, 8 Jul 2016 16:53:11 +0000 (UTC) Date: Fri, 8 Jul 2016 16:53:11 +0000 (UTC) From: "Jayush Luniya (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-17465) Management packs should be able to install extensions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 08 Jul 2016 16:53:12 -0000 [ https://issues.apache.org/jira/browse/AMBARI-17465?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D15= 367963#comment-15367963 ]=20 Jayush Luniya commented on AMBARI-17465: ---------------------------------------- Following unit test failure is not related to this change. TestMpacks unit = tests are passing. Committing this change and following up on the below uni= t test failure separately. ---------------------------------------------------------------------- Failed tests: ERROR: test_validateStormRangerPluginConfigurations (test_stack_advisor.Tes= tHDP22StackAdvisor) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/jluniya/release/trunk2/ambari/ambari-server/src/test/python/= stacks/2.2/common/test_stack_advisor.py", line 3947, in test_validateStormR= angerPluginConfigurations res =3D self.stackAdvisor.validateStormRangerPluginConfigurations(prope= rties, recommendedDefaults, configurations, services, {}) File "/Users/jluniya/release/trunk2/ambari/ambari-server/src/test/python/= stacks/2.2/common/../../../../../main/resources/stacks/HDP/2.2/services/sta= ck_advisor.py", line 1508, in validateStormRangerPluginConfigurations servicesList =3D [service["StackServices"]["service_name"] for service = in services["services"]] KeyError: 'services' ---------------------------------------------------------------------- Total run:1017 Total errors:1 Total failures:0 ERROR INFO: AMBARI_SERVER_LIB is not set, using default /usr/lib/ambari-server INFO: Return code from stack upgrade command, retcode =3D 0 StackAdvisor implementation for stack HDP1, version 2.0.6 was not found Returning DefaultStackAdvisor implementation StackAdvisor implementation for stack XYZ, version 1.0.0 was loaded StackAdvisor implementation for stack XYZ, version 1.0.1 was loaded Returning XYZ101StackAdvisor implementation [INFO] --------------------------------------------------------------------= ---- [INFO] BUILD FAILURE [INFO] --------------------------------------------------------------------= ---- [INFO] Total time: 1:09.528s [INFO] Finished at: Fri Jul 08 09:43:19 PDT 2016 [INFO] Final Memory: 58M/1027M [INFO] --------------------------------------------------------------------= ---- > Management packs should be able to install extensions > ----------------------------------------------------- > > Key: AMBARI-17465 > URL: https://issues.apache.org/jira/browse/AMBARI-17465 > Project: Ambari > Issue Type: Improvement > Components: ambari-server > Affects Versions: 2.4.0 > Reporter: Tim Thorpe > Assignee: Tim Thorpe > Attachments: AMBARI-17465.patch > > > Currently management packs (AMBARI-14854) can only add stacks and addon s= ervices. Now that AMBARI-12885 has been resolved, the management packs sho= uld be able to add extensions as well. This would allow the following mpac= k.json: > { > "type" : "fullrelease", > "name" : "MyExtension", > "version": "1.0.0.0", > "description" : "My Management Pack", > "prerequisites": { > "minambariversion" : "2.4" > }, > "artifacts": [ > { > "name" : "EXT-extension", > "type" : "extension-definition", > "source_dir": "extensions/EXT/1.0", > "extension_name" : "EXT", > "extension_version" : "1.0" > } > ] > } > or alternately with extension-definitions (which will include all extensi= ons listed in the extensions directory): > "artifacts": [ > { > "name" : "MyExtensions", > "type" : "extension-definitions", > "source_dir": "extensions" > } > ] > myext-mpack1.0.0.0 > =E2=94=9C=E2=94=80=E2=94=80 mpack.json > =E2=94=94=E2=94=80=E2=94=80 extensions > =E2=94=94=E2=94=80=E2=94=80 EXT > =E2=94=94=E2=94=80=E2=94=80 1.0 > =E2=94=94=E2=94=80=E2=94=80 metainfo.xml > =E2=94=94=E2=94=80=E2=94=80 services > =E2=94=94=E2=94=80=E2=94=80 HAWQ > =E2=94=94=E2=94=80=E2=94=80 metainfo.xml > =E2=94=94=E2=94=80=E2=94=80 PXF > =E2=94=94=E2=94=80=E2=94=80 metainfo.xml > It could then be installed with the following command:=20 > ambari-server install-mpack --mpack=3D/tmp/myext-mpack1.0.0.0.tar.gz = -v -- This message was sent by Atlassian JIRA (v6.3.4#6332)