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 036A618D84 for ; Thu, 23 Jul 2015 22:47:11 +0000 (UTC) Received: (qmail 82247 invoked by uid 500); 23 Jul 2015 22:47:04 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 82210 invoked by uid 500); 23 Jul 2015 22:47:04 -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 82196 invoked by uid 99); 23 Jul 2015 22:47:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Jul 2015 22:47:04 +0000 Date: Thu, 23 Jul 2015 22:47:04 +0000 (UTC) From: "Hudson (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-12515) Conf-select calls should tolerate failure on existing directory 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-12515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14639630#comment-14639630 ] Hudson commented on AMBARI-12515: --------------------------------- SUCCESS: Integrated in Ambari-trunk-Commit #3162 (See [https://builds.apache.org/job/Ambari-trunk-Commit/3162/]) AMBARI-12515. Conf-select calls should tolerate failure on existing directory (ncole) (ncole: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=53b0b57ff6b94dce92e699b8d28005386fae1976) * ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py * ambari-server/src/test/python/stacks/2.0.6/hooks/after-INSTALL/test_after_install.py > 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 > 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)