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 7E0F610CBD for ; Sat, 7 Dec 2013 21:07:35 +0000 (UTC) Received: (qmail 83692 invoked by uid 500); 7 Dec 2013 21:07:35 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 83674 invoked by uid 500); 7 Dec 2013 21:07:35 -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 83666 invoked by uid 99); 7 Dec 2013 21:07:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 07 Dec 2013 21:07:35 +0000 Date: Sat, 7 Dec 2013 21:07:35 +0000 (UTC) From: "Christopher White (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-4015) os_type_check.sh & CentOS 6.5 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-4015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christopher White updated AMBARI-4015: -------------------------------------- Attachment: AMBARI-4015.patch Added simple start of line check to grep regex and this resolved my problem on CentOS 6.5 > os_type_check.sh & CentOS 6.5 > ----------------------------- > > Key: AMBARI-4015 > URL: https://issues.apache.org/jira/browse/AMBARI-4015 > Project: Ambari > Issue Type: Bug > Affects Versions: 1.4.1 > Environment: CentOS 6.5 > Reporter: Christopher White > Priority: Trivial > Attachments: AMBARI-4015.patch > > > The version checking logic in {{ambari-server/src/main/python/os_type_check.sh}} appears to be flawed, especially for CentOS 6.5 - When trying to install Ambari I see the following errors during the installation phase of a node: > {code} > Cluster primary OS type is redhat6 and local OS type is centos5 > Local OS is not compatible with cluster primary OS. Please perform manual bootstrap on this host > {code} > This is assume is because of these lines in {{os_type_check.sh}}: > {code} > if [ -f "/etc/centos-release" ] > then > grep -qE "${pattern}6 etc/centos-release && current_os=$C6 > grep -qE "${pattern}5 etc/centos-release && current_os=$C5 > {code} > The problem appears to be that centos 6.5 matches for both statements, meaning the final value of current_os is $C5 (centos5) > Here's a short bash session to demonstrate this on my CentOS 6.5 VM: > {code} > [root@ambari-server-vm ~] # cat /etc/centos-release > CentOS release 6.5 (Final) > [root@ambari-server-vm ~] # grep -E "[^[:digit:]]*6" /etc/centos-release > CentOS release 6.5 (Final) > [root@ambari-server-vm ~] # grep -E "[^[:digit:]]*5" /etc/centos-release > CentOS release 6.5 (Final) > {code} -- This message was sent by Atlassian JIRA (v6.1#6144)