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 A2F8810498 for ; Thu, 10 Apr 2014 22:57:18 +0000 (UTC) Received: (qmail 18385 invoked by uid 500); 10 Apr 2014 22:57:18 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 18354 invoked by uid 500); 10 Apr 2014 22:57:17 -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 18324 invoked by uid 99); 10 Apr 2014 22:57:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Apr 2014 22:57:16 +0000 Date: Thu, 10 Apr 2014 22:57:16 +0000 (UTC) From: "Sumit Mohanty (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (AMBARI-5433) Add Host failed on upgraded cluster on Suse 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-5433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sumit Mohanty resolved AMBARI-5433. ----------------------------------- Resolution: Fixed committed to trunk and 1.5.1 > Add Host failed on upgraded cluster on Suse > ------------------------------------------- > > Key: AMBARI-5433 > URL: https://issues.apache.org/jira/browse/AMBARI-5433 > Project: Ambari > Issue Type: Bug > Affects Versions: 1.5.1 > Reporter: Sumit Mohanty > Assignee: Sumit Mohanty > Fix For: 1.5.1 > > > This is due to upgrade. We need to change it manually after upgrade: > //Now we have (redhat, suse, debian, other_detected_by_python) > vi /etc/ambari-server/conf/ambari.properties > (server.os_type=sles11) -->( server.os_type=suse11) > +restart the server > Should upgrade automatically deal with this? > old code: > {code} > os_info = platform.linux_distribution( > None, None, None, ['SuSE', 'redhat' ], 0 > ) > os_name = os_info[0].lower() > if os_name == 'suse': > os_name = 'sles' > os_version = os_info[1].split('.', 1)[0] > master_os_type = os_name + os_version > write_property(OS_TYPE_PROPERTY, master_os_type) > {code} -- This message was sent by Atlassian JIRA (v6.2#6252)