ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-15127) Separate DB operation during upgrade and add them as pre-upgrade tasks
Date Mon, 07 Mar 2016 05:52:41 GMT

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

Hudson commented on AMBARI-15127:
---------------------------------

SUCCESS: Integrated in Ambari-trunk-Commit #4454 (See [https://builds.apache.org/job/Ambari-trunk-Commit/4454/])
AMBARI-15127. Separate DB operation during upgrade and add them as (gautam: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=eeef001d4702b5dbae1c1e9e8bfaac8a5a626b18])
* ambari-server/src/main/resources/stacks/HDP/2.4/upgrades/upgrade-2.4.xml
* ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/upgrade-2.3.xml
* ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/nonrolling-upgrade-2.4.xml
* ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.3.xml
* ambari-server/src/main/resources/stacks/HDP/2.4/upgrades/nonrolling-upgrade-2.4.xml
* ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/setup_ranger_xml.py
* ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/setup_ranger.py
* ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/nonrolling-upgrade-2.3.xml
* ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/upgrade-2.4.xml
* ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/nonrolling-upgrade-2.3.xml
* ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/nonrolling-upgrade-2.4.xml
* ambari-server/src/main/resources/common-services/RANGER_KMS/0.5.0.2.3/package/scripts/kms.py
* ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/ranger_usersync.py
* ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.4.xml
* ambari-server/src/main/resources/common-services/RANGER_KMS/0.5.0.2.3/package/scripts/kms_server.py
* ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/ranger_admin.py


>  Separate DB operation during upgrade and add them as pre-upgrade tasks
> -----------------------------------------------------------------------
>
>                 Key: AMBARI-15127
>                 URL: https://issues.apache.org/jira/browse/AMBARI-15127
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.2.1
>            Reporter: Gautam Borad
>            Assignee: Gautam Borad
>             Fix For: trunk, 2.2.2
>
>         Attachments: AMBARI-15127.1.patch, AMBARI-15127.2.patch, AMBARI-15127.3.patch,
AMBARI-15127.4-trunk.patch, AMBARI-15127.patch
>
>
> *Problem Statement*
> Need to apply multiple retries for Ranger DB setup calls to handle concurrent calls to
one DB from 2 different hosts where Ranger Admin is installed. 
> This scenario is needed to handle upgrades of HDP  in a case when Ranger HA is enabled.

> {code}
> Traceback (most recent call last):
>   File "/var/lib/ambari-agent/cache/common-services/RANGER/0.4.0/package/scripts/ranger_admin.py",
line 124, in <module>
>     RangerAdmin().execute()
>   File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 219, in execute
>     method(env)
>   File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 517, in restart
>     self.pre_upgrade_restart(env, upgrade_type=upgrade_type)
>   File "/var/lib/ambari-agent/cache/common-services/RANGER/0.4.0/package/scripts/ranger_admin.py",
line 67, in pre_upgrade_restart
>     setup_ranger_db(upgrade_type=upgrade_type)
>   File "/var/lib/ambari-agent/cache/common-services/RANGER/0.4.0/package/scripts/setup_ranger_xml.py",
line 212, in setup_ranger_db
>     user=params.unix_user,
>   File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 154,
in __init__
>     self.env.run()
>   File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line
158, in run
>     self.run_action(resource, action)
>   File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line
121, in run_action
>     provider_action()
>   File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py",
line 238, in action_run
>     tries=self.resource.tries, try_sleep=self.resource.try_sleep)
>   File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 70,
in inner
>     result = function(command, **kwargs)
>   File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 92,
in checked_call
>     tries=tries, try_sleep=try_sleep)
>   File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 140,
in _call_wrapper
>     result = _call(command, **kwargs_copy)
>   File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 291,
in _call
>     raise Fail(err_msg)
> resource_management.core.exceptions.Fail: Execution of 'python /usr/hdp/2.4.0.0-128/ranger-admin/dba_script.py
-q' returned 1. ######## Hortonworks #############
> This is MOTD message, added for testing in qe infra
> 2016-01-22 12:00:44,666  [I] Running DBA setup script. QuiteMode:True
> 2016-01-22 12:00:44,666  [I] Using Java:/usr/jdk64/jdk1.8.0_45/bin/java
> {code}



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

Mime
View raw message