You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Hadoop QA (JIRA)" <ji...@apache.org> on 2016/03/03 08:54:18 UTC

[jira] [Commented] (AMBARI-15127) Separate DB operation during upgrade and add them as pre-upgrade tasks

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

Hadoop QA commented on AMBARI-15127:
------------------------------------

{color:red}-1 overall{color}.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12791115/AMBARI-15127.4-trunk.patch
  against trunk revision .

    {color:green}+1 @author{color}.  The patch does not contain any @author tags.

    {color:red}-1 tests included{color}.  The patch doesn't appear to include any new or modified tests.
                        Please justify why no new tests are needed for this patch.
                        Also please list what manual steps were performed to verify this patch.

    {color:green}+1 javac{color}.  The applied patch does not increase the total number of javac compiler warnings.

    {color:green}+1 release audit{color}.  The applied patch does not increase the total number of release audit warnings.

    {color:green}+1 core tests{color}.  The patch passed unit tests in ambari-server.

Test results: https://builds.apache.org/job/Ambari-trunk-test-patch/5700//testReport/
Console output: https://builds.apache.org/job/Ambari-trunk-test-patch/5700//console

This message is automatically generated.

>  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)