ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gautam Borad (JIRA)" <>
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
             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. 

Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/common-services/RANGER/0.4.0/package/scripts/",
line 124, in <module>
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/",
line 219, in execute
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/",
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/",
line 67, in pre_upgrade_restart
  File "/var/lib/ambari-agent/cache/common-services/RANGER/0.4.0/package/scripts/",
line 212, in setup_ranger_db
  File "/usr/lib/python2.6/site-packages/resource_management/core/", line 154, in __init__
  File "/usr/lib/python2.6/site-packages/resource_management/core/", line 158,
in run
    self.run_action(resource, action)
  File "/usr/lib/python2.6/site-packages/resource_management/core/", line 121,
in run_action
  File "/usr/lib/python2.6/site-packages/resource_management/core/providers/", 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/", line 70, in inner
    result = function(command, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/", line 92, in checked_call
    tries=tries, try_sleep=try_sleep)
  File "/usr/lib/python2.6/site-packages/resource_management/core/", line 140, in
    result = _call(command, **kwargs_copy)
  File "/usr/lib/python2.6/site-packages/resource_management/core/", line 291, in
    raise Fail(err_msg)
resource_management.core.exceptions.Fail: Execution of 'python /usr/hdp/
-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

This message was sent by Atlassian JIRA

View raw message