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 231A218D7B for ; Tue, 3 Nov 2015 12:54:28 +0000 (UTC) Received: (qmail 89512 invoked by uid 500); 3 Nov 2015 12:54:27 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 89414 invoked by uid 500); 3 Nov 2015 12:54:27 -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 89386 invoked by uid 99); 3 Nov 2015 12:54:27 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Nov 2015 12:54:27 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id ADEDF2C1F5E for ; Tue, 3 Nov 2015 12:54:27 +0000 (UTC) Date: Tue, 3 Nov 2015 12:54:27 +0000 (UTC) From: "Dmytro Sen (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-13694) Code to read keysdir cannot handle space in the front 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-13694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dmytro Sen updated AMBARI-13694: -------------------------------- Attachment: AMBARI-13694.patch > Code to read keysdir cannot handle space in the front > ----------------------------------------------------- > > Key: AMBARI-13694 > URL: https://issues.apache.org/jira/browse/AMBARI-13694 > Project: Ambari > Issue Type: Bug > Components: ambari-agent > Affects Versions: 2.1.2 > Reporter: Dmytro Sen > Assignee: Dmytro Sen > Priority: Critical > Fix For: 2.1.3 > > Attachments: AMBARI-13694.patch > > > It seems that after ambari agent upgrade spaces get added before and after {{=}} in the .ini file. > pre-upgrade > {{keysdir=/var/lib/ambari-agent/keys}} > post upgrade > {{keysdir = /var/lib/ambari-agent/keys}} > This result in: > {code} > chown: cannot access ` /var/lib/ambari-agent/keys': No such file or directory > ... > [root@c6401 vagrant]# ambari-agent start > Verifying Python version compatibility... > Using python /usr/bin/python2.6 > Checking for previously running Ambari Agent... > chown: cannot access ` /var/lib/ambari-agent/keys': No such file or directory > Starting ambari-agent > Verifying ambari-agent process status... > Ambari Agent successfully started > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)