ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-15662) Ambari server upgrade should reapply installed mpacks
Date Tue, 12 Apr 2016 19:53:25 GMT

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

Hudson commented on AMBARI-15662:
---------------------------------

FAILURE: Integrated in Ambari-trunk-Commit #4641 (See [https://builds.apache.org/job/Ambari-trunk-Commit/4641/])
AMBARI-15662: Ambari server upgrade should reapply installed mpacks (jluniya: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=5dddc529f359d8557535efa4bf9eb33add9cda60])
* ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.1/stacks/MYSTACK/3.0/services/SERVICEC/metainfo.xml
* ambari-server/src/test/python/TestAmbariServer.py
* ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.1/mpack.json
* ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.1/common-services/SERVICEC/1.0.0/metainfo.xml
* ambari-server/src/test/python/mpacks/myservice-ambari-mpack-1.0.0.0/custom-services/MYSERVICE/1.0.0/metainfo.xml
* ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.0/common-services/SERVICEB/1.0.0/metainfo.xml
* ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.1/stacks/MYSTACK/1.1/services/SERVICEA/metainfo.xml
* ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.0/common-services/SERVICEB/2.0.0/metainfo.xml
* ambari-server/src/main/python/ambari_server/serverUpgrade.py
* ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.1/stacks/MYSTACK/1.0/metainfo.xml
* ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.1/stacks/MYSTACK/1.1/metainfo.xml
* ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.1/stacks/MYSTACK/3.0/services/SERVICEB/metainfo.xml
* ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.0/common-services/SERVICEA/1.0/metainfo.xml
* ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.1/stacks/MYSTACK/3.0/metainfo.xml
* ambari-server/pom.xml
* ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.1/stacks/MYSTACK/2.0/services/SERVICEA/metainfo.xml
* ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.1/stacks/MYSTACK/2.0/metainfo.xml
* ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.0/common-services/SERVICEA/2.0/metainfo.xml
* ambari-server/src/main/python/ambari_server/setupMpacks.py
* ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.0/stacks/MYSTACK/2.0/services/SERVICEA/metainfo.xml
* ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.1/stacks/MYSTACK/1.0/services/SERVICEA/metainfo.xml
* ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.1/common-services/SERVICEB/1.0.0/metainfo.xml
* ambari-server/src/test/python/mpacks/myservice-ambari-mpack-1.0.0.0/custom-services/MYSERVICE/2.0.0/metainfo.xml
* ambari-server/src/test/python/mpacks/myservice-ambari-mpack-1.0.0.0/common-services/MYSERVICE/1.0.0/metainfo.xml
* ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.1/stacks/MYSTACK/2.0/services/SERVICEB/metainfo.xml
* ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.1/common-services/SERVICEC/2.0.0/metainfo.xml
* ambari-server/src/main/python/ambari_server/serverConfiguration.py
* ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.1/common-services/SERVICEB/2.0.0/metainfo.xml
* ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.0/stacks/MYSTACK/2.0/services/SERVICEB/metainfo.xml
* ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.0/stacks/MYSTACK/2.0/metainfo.xml
* ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.0/stacks/MYSTACK/1.0/services/SERVICEA/metainfo.xml
* ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.0/mpack.json
* ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.0/stacks/MYSTACK/1.1/metainfo.xml
* ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.0/stacks/MYSTACK/1.1/services/SERVICEA/metainfo.xml
* ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.1/common-services/SERVICEA/2.0/metainfo.xml
* ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.1/common-services/SERVICEA/1.0/metainfo.xml
* ambari-server/src/test/resources/mpacks_replay.log
* ambari-server/src/test/python/mpacks/myservice-ambari-mpack-1.0.0.0/mpack.json
* ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.1/stacks/MYSTACK/3.0/services/SERVICEA/metainfo.xml
* ambari-server/src/test/python/TestMpacks.py
* ambari-server/src/test/python/mpacks/mystack-ambari-mpack-1.0.0.0/stacks/MYSTACK/1.0/metainfo.xml


> Ambari server upgrade should reapply installed mpacks
> -----------------------------------------------------
>
>                 Key: AMBARI-15662
>                 URL: https://issues.apache.org/jira/browse/AMBARI-15662
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.4.0
>            Reporter: Jayush Luniya
>            Assignee: Jayush Luniya
>             Fix For: 2.4.0
>
>         Attachments: AMBARI-15662.2.patch, AMBARI-15662.patch
>
>
> # yum upgrade ambari-server will replace the resources/stacks and resources/common-services
that contain symlinks to mpacks.
> # We need to reapply all the mpack operations during ambari-server upgrade so that we
can restore the resources/stacks and resources/common-services folders
> # To enable this create a mpack replay log that maintains history of mpack operations
performed and reruns them
> Testing Done
> Scenario 1: 
> - Purge all stacks and purge and install HDP mpack. 
> - Install add-on service MYSERVICE mpack. 
> - Also upgrade these mpacks
> - Upgrade Ambari Server
> - Verify ambari-server upgrade replays mpack logs and restores resources/stacks and resources/common-services
folders.
> ambari-server install-mpack --mpack=hdp-1.0.0.0.tar.gz --purge --verbose
> ambari-server install-mpack --mpack=myservice-1.0.0.0.tar.gz --verbose
> ambari-server upgrade-mpack --mpack=hdp-1.0.0.1.tar.gz --verbose
> ambari-server upgrade-mpack --mpack=myservice-1.0.0.1.tar.gz --verbose
> cat /var/lib/ambari-server/resources/mpacks/mpacks_replay.log
> {'purge': True, 'mpack_command': 'install-mpack', 'mpack_path': '/var/lib/ambari-server/resources/mpacks/hdp-1.0.0.0.tar.gz',
'force': False, 'verbose': True}
> {'purge': False, 'mpack_command': 'install-mpack', 'mpack_path': '/var/lib/ambari-server/resources/mpacks/myservice-1.0.0.0.tar.gz',
'force': False, 'verbose': True}
> {'purge': False, 'mpack_command': 'upgrade-mpack', 'mpack_path': '/var/lib/ambari-server/resources/mpacks/hdp-1.0.0.1.tar.gz',
'force': True, 'verbose': True}
> {'purge': False, 'mpack_command': 'upgrade-mpack', 'mpack_path': '/var/lib/ambari-server/resources/mpacks/myservice-1.0.0.1.tar.gz',
'force': True, 'verbose': True}
> yum upgrade ambari-server
> ambari-server upgrade --verbose
> INFO: ===========================================================================================
> INFO: Executing Mpack Replay Log :
> INFO: {'purge': True, 'mpack_command': 'install-mpack', 'mpack_path': '/var/lib/ambari-server/resources/mpacks/hdp-1.0.0.0.tar.gz',
'force': False, 'verbose': True}
> INFO: ===========================================================================================
> INFO: ===========================================================================================
> INFO: Executing Mpack Replay Log :
> INFO: {'purge': False, 'mpack_command': 'install-mpack', 'mpack_path': '/var/lib/ambari-server/resources/mpacks/myservice-1.0.0.0.tar.gz',
'force': False, 'verbose': True}
> INFO: ===========================================================================================
> INFO: ===========================================================================================
> INFO: Executing Mpack Replay Log :
> INFO: {'purge': False, 'mpack_command': 'upgrade-mpack', 'mpack_path': '/var/lib/ambari-server/resources/mpacks/hdp-1.0.0.1.tar.gz',
'force': True, 'verbose': True}
> INFO: ===========================================================================================
> INFO: ===========================================================================================
> INFO: Executing Mpack Replay Log :
> INFO: {'purge': False, 'mpack_command': 'upgrade-mpack', 'mpack_path': '/var/lib/ambari-server/resources/mpacks/myservice-1.0.0.1.tar.gz',
'force': True, 'verbose': True}
> INFO: ===========================================================================================
> Scenario 2: 
> - Install only add-on service MYSERVICE mpack to have a hybrid stack layout with symlinks
only for the add-on service MYSERVICE
> - Also upgrade these mpacks
> - Upgrade Ambari Server
> - Verify ambari-server upgrade replays mpack logs and restores resources/stacks and resources/common-services
folders.
> ambari-server install-mpack --mpack=myservice-1.0.0.0.tar.gz --verbose
> ambari-server upgrade-mpack --mpack=myservice-1.0.0.1.tar.gz --verbose
> cat /var/lib/ambari-server/resources/mpacks/mpacks_replay.log
> {'purge': False, 'mpack_command': 'install-mpack', 'mpack_path': '/var/lib/ambari-server/resources/mpacks/myservice-1.0.0.0.tar.gz',
'force': False, 'verbose': True}
> {'purge': False, 'mpack_command': 'upgrade-mpack', 'mpack_path': '/var/lib/ambari-server/resources/mpacks/myservice-1.0.0.1.tar.gz',
'force': True, 'verbose': True}
> ambari-server upgrade --verbose
> INFO: ===========================================================================================
> INFO: Executing Mpack Replay Log :
> INFO: {'purge': False, 'mpack_command': 'install-mpack', 'mpack_path': '/var/lib/ambari-server/resources/mpacks/myservice-1.0.0.0.tar.gz',
'force': False, 'verbose': True}
> INFO: ===========================================================================================
> INFO: ===========================================================================================
> INFO: Executing Mpack Replay Log :
> INFO: {'purge': False, 'mpack_command': 'upgrade-mpack', 'mpack_path': '/var/lib/ambari-server/resources/mpacks/myservice-1.0.0.1.tar.gz',
'force': True, 'verbose': True}
> INFO: ===========================================================================================



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

Mime
View raw message