ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gautam Borad (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-15127) Add retry logic for DB Setup during Ranger upgrade step (to handle upgrade with Ranger HA)
Date Mon, 22 Feb 2016 11:52:18 GMT
Gautam Borad created AMBARI-15127:
-------------------------------------

             Summary: 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


*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