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 7E7C218E53 for ; Wed, 23 Dec 2015 11:40:55 +0000 (UTC) Received: (qmail 6983 invoked by uid 500); 23 Dec 2015 11:40:55 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 6944 invoked by uid 500); 23 Dec 2015 11:40:55 -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 6925 invoked by uid 99); 23 Dec 2015 11:40:55 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Dec 2015 11:40:55 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 861D3295F1E; Wed, 23 Dec 2015 11:40:54 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============3381393034008893364==" MIME-Version: 1.0 Subject: Review Request 41686: Ambari Agent should not rely on CWD of user who started it From: "Andrew Onischuk" To: "Dmitro Lisnichenko" Cc: "Andrew Onischuk" , "Ambari" Date: Wed, 23 Dec 2015 11:40:54 -0000 Message-ID: <20151223114054.663.69826@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Andrew Onischuk" X-ReviewGroup: Ambari X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/41686/ X-Sender: "Andrew Onischuk" Reply-To: "Andrew Onischuk" X-ReviewRequest-Repository: ambari --===============3381393034008893364== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/41686/ ----------------------------------------------------------- Review request for Ambari and Dmitro Lisnichenko. Bugs: AMBARI-14199 https://issues.apache.org/jira/browse/AMBARI-14199 Repository: ambari Description ------- When starting, the Ambari agent does not cd to a sane directory, but relies on the CWD of the user who started the process either through `/etc/init.d /ambari-agent`, or `ambari-agent start`. The ambari-agent should cd to a sane local directory such as AGENT_TMP_DIR prior to starting. A custom reported issues where their CWD was on an NFS mount when the agent was started, and this caused the agent to die when the auto mounted directory was unmounted. Diffs ----- ambari-agent/conf/unix/ambari-agent c0760ec Diff: https://reviews.apache.org/r/41686/diff/ Testing ------- mvn clean test Thanks, Andrew Onischuk --===============3381393034008893364==--