-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/51179/
-----------------------------------------------------------

Review request for Ambari, Alejandro Fernandez, Nate Cole, and Robert Levas.


Bugs: AMBARI-18184
    https://issues.apache.org/jira/browse/AMBARI-18184


Repository: ambari


Description
-------

During an upgrade, the follow error occurred. Retrying the failure resolved the 
issue. Although hard to reproduce, AMBARI-14847 fixed the issue with alerts by 
ensuring that `kinit` commands run synchronously. 

This is an edge-case issue, but using the cached kinit executor should resolve 
it.

```
Traceback (most recent call last):
  File 
\"/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_metastore.py\",
 line 254, in <module>
    HiveMetastore().execute()
  File 
\"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py\",
 line 280, in execute
    method(env)
  File 
\"/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py\",
 line 696, in restart
    self.pre_upgrade_restart(env, upgrade_type=upgrade_type)
  File 
\"/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_metastore.py\",
 line 114, in pre_upgrade_restart
    self.upgrade_schema(env)
  File 
\"/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_metastore.py\",
 line 193, in upgrade_schema
    Execute(kinit_command,user=params.smokeuser)
  File \"/usr/lib/python2.6/site-packages/resource_management/core/base.py\", 
line 155, in __init__
    self.env.run()
  File 
\"/usr/lib/python2.6/site-packages/resource_management/core/environment.py\", 
line 160, in run
    self.run_action(resource, action)
  File 
\"/usr/lib/python2.6/site-packages/resource_management/core/environment.py\", 
line 124, in run_action
    provider_action()
  File 
\"/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py\",
 line 273, 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 71, in inner
    result = function(command, **kwargs)
  File \"/usr/lib/python2.6/site-packages/resource_management/core/shell.py\", 
line 93, in checked_call
    tries=tries, try_sleep=try_sleep)
  File \"/usr/lib/python2.6/site-packages/resource_management/core/shell.py\", 
line 141, in _call_wrapper
    result = _call(command, **kwargs_copy)
  File \"/usr/lib/python2.6/site-packages/resource_management/core/shell.py\", 
line 294, in _call
    raise Fail(err_msg)
resource_management.core.exceptions.Fail: Execution of '/usr/bin/kinit -kt 
/etc/security/keytabs/smokeuser.headless.keytab ambari...@example.com; ' 
returned 1. kinit: Internal credentials cache error while storing credentials 
while getting initial credentials"
```


Diffs
-----

  
ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_metastore.py
 772eff8 
  
ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_linux.py
 37e2426 

Diff: https://reviews.apache.org/r/51179/diff/


Testing
-------

----------------------------------------------------------------------
Total run:1120
Total errors:0
Total failures:0
OK


Thanks,

Jonathan Hurley

Reply via email to