ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nate Cole (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-12515) Conf-select calls should tolerate failure on existing directory
Date Thu, 23 Jul 2015 17:59:04 GMT

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

Nate Cole commented on AMBARI-12515:
------------------------------------

No automated tests required.  Manual testing on live install.

> Conf-select calls should tolerate failure on existing directory
> ---------------------------------------------------------------
>
>                 Key: AMBARI-12515
>                 URL: https://issues.apache.org/jira/browse/AMBARI-12515
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.1.0
>            Reporter: Nate Cole
>            Assignee: Nate Cole
>             Fix For: 2.1.1
>
>         Attachments: AMBARI-12515.patch
>
>
> A "safety check" should be made around calling conf-select prevent successful install.
 Conf-select fails because even though the conf directory exists, the pig install does not
(no {{/usr/hdp/2.3.0.0-2557/pig}})
> {noformat}
> Traceback (most recent call last):
>   File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py",
line 38, in <module>
>     AfterInstallHook().execute()
>   File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 218, in execute
>     method(env)
>   File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py",
line 35, in hook
>     link_configs(self.stroutfile)
>   File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py",
line 91, in link_configs
>     _link_configs(k, json_version, v)
>   File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py",
line 156, in _link_configs
>     conf_select.select("HDP", package, version)
>   File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/conf_select.py",
line 241, in select
>     shell.checked_call(get_cmd("set-conf-dir", package, version), logoutput=False, quiet=False,
sudo=True)
>   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 'conf-select set-conf-dir --package
pig --stack-version 2.3.0.0-2557 --conf-version 0' returned 1. pig not installed or incorrect
package name
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message