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 090F418E51 for ; Wed, 2 Sep 2015 22:18:47 +0000 (UTC) Received: (qmail 61148 invoked by uid 500); 2 Sep 2015 22:18:46 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 61121 invoked by uid 500); 2 Sep 2015 22:18:46 -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 61106 invoked by uid 99); 2 Sep 2015 22:18:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Sep 2015 22:18:46 +0000 Date: Wed, 2 Sep 2015 22:18:46 +0000 (UTC) From: "Hudson (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-12953) Ambari Agent logging set up incorrect 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-12953?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14728122#comment-14728122 ] Hudson commented on AMBARI-12953: --------------------------------- SUCCESS: Integrated in Ambari-trunk-Commit #3375 (See [https://builds.apache.org/job/Ambari-trunk-Commit/3375/]) AMBARI-12953: Ambari Agent logging set up incorrect (Nahappan Somasundaram via jluniya) (jluniya: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=50b1294985c1c17d74ce12f4a814d51b8d0ad8c6) * ambari-agent/conf/unix/ambari-agent * ambari-agent/src/test/python/ambari_agent/TestAmbariAgent.py > Ambari Agent logging set up incorrect > ------------------------------------- > > Key: AMBARI-12953 > URL: https://issues.apache.org/jira/browse/AMBARI-12953 > Project: Ambari > Issue Type: Bug > Components: ambari-agent > Affects Versions: 2.2.0 > Reporter: Nahappan Somasundaram > Assignee: Nahappan Somasundaram > Fix For: 2.2.0 > > > PROBLEM: The customer wanted to change their Ambari Agent logging location for the default /var/log/ambari-agent location to another place. They initially changed the LOGFILE and OUTFILE environment variables in /usr/sbin/ambari-agent and although this changed the displayed log and out file location when starting the Ambari Agent, only the out file was written to the new location. > BUSINESS IMPACT: Customer not able to write logs to correct location > SUPPORT ANALYSIS: Digging in to the code it seems that the Ambari Agent will honour the path specified by the environment variable AMBARI_AGENT_LOG_DIR. However: > * The /usr/sbin/ambari-agent script uses the environment variable AMBARI_LOG_DIR (lines 91 and 92) and doesn't set LOGFILE to the correct location if AMBARI_AGENT_LOG_DIR is set. > * /etc/init.d/ambari-agent doesn't use the -l switch on the bash command line when starting the Ambari Agent as root (line 27) so all environment variables defined in the profile for root are ignored. -- This message was sent by Atlassian JIRA (v6.3.4#6332)