ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jayush Luniya (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-17465) Management packs should be able to install extensions
Date Fri, 08 Jul 2016 16:53:11 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-17465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15367963#comment-15367963
] 

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 unit test failure separately.

----------------------------------------------------------------------
Failed tests:
ERROR: test_validateStormRangerPluginConfigurations (test_stack_advisor.TestHDP22StackAdvisor)
----------------------------------------------------------------------
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_validateStormRangerPluginConfigurations
    res = self.stackAdvisor.validateStormRangerPluginConfigurations(properties, 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/stack_advisor.py",
line 1508, in validateStormRangerPluginConfigurations
    servicesList = [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 = 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 services.  Now
that AMBARI-12885 has been resolved, the management packs should be able to add extensions
as well.  This would allow the following mpack.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 extensions listed in
the extensions directory):
>   "artifacts": [
>     {
>       "name" : "MyExtensions",
>       "type" : "extension-definitions",
>       "source_dir": "extensions"
>     }
>   ]
> myext-mpack1.0.0.0
> ├── mpack.json
> └── extensions
>     └── EXT
>         └── 1.0
>             └── metainfo.xml
>             └── services
>                 └── HAWQ
>                     └── metainfo.xml
>                 └── PXF
>                     └── metainfo.xml
> It could then be installed with the following command: 
>     ambari-server install-mpack --mpack=/tmp/myext-mpack1.0.0.0.tar.gz -v



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message