Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 315D018909 for ; Wed, 2 Mar 2016 16:10:20 +0000 (UTC) Received: (qmail 15067 invoked by uid 500); 2 Mar 2016 16:10:19 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 15036 invoked by uid 500); 2 Mar 2016 16:10:19 -0000 Mailing-List: contact dev-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 dev@ambari.apache.org Received: (qmail 15019 invoked by uid 99); 2 Mar 2016 16:10:19 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Mar 2016 16:10:19 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 55BF12C1F55 for ; Wed, 2 Mar 2016 16:10:19 +0000 (UTC) Date: Wed, 2 Mar 2016 16:10:19 +0000 (UTC) From: "Hadoop QA (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-15127) Add retry logic for DB Setup during Ranger upgrade step (to handle upgrade with Ranger HA) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-15127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15175852#comment-15175852 ] 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/12790926/AMBARI-15127.2.patch against trunk revision . {color:red}-1 patch{color}. The patch command could not apply the patch. Console output: https://builds.apache.org/job/Ambari-trunk-test-patch/5677//console This message is automatically generated. > Add retry logic for DB Setup during Ranger upgrade step (to handle upgrade with Ranger HA) > ------------------------------------------------------------------------------------------ > > 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: 2.2.2 > > Attachments: AMBARI-15127.1.patch, AMBARI-15127.2.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 > 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)