ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-12953) Ambari Agent logging set up incorrect
Date Wed, 02 Sep 2015 22:18:46 GMT

    [ 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)

Mime
View raw message