Return-Path: X-Original-To: apmail-ambari-issues-archive@minotaur.apache.org Delivered-To: apmail-ambari-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E860E1995D for ; Tue, 5 Apr 2016 18:02:25 +0000 (UTC) Received: (qmail 74110 invoked by uid 500); 5 Apr 2016 18:02:25 -0000 Delivered-To: apmail-ambari-issues-archive@ambari.apache.org Received: (qmail 74050 invoked by uid 500); 5 Apr 2016 18:02:25 -0000 Mailing-List: contact issues-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 issues@ambari.apache.org Received: (qmail 73914 invoked by uid 99); 5 Apr 2016 18:02:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Apr 2016 18:02:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A56002C1F68 for ; Tue, 5 Apr 2016 18:02:25 +0000 (UTC) Date: Tue, 5 Apr 2016 18:02:25 +0000 (UTC) From: "Hudson (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-15711) Exception thrown when host with unsupported OS is to be mapped to cluster is silently swallowed 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-15711?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15226784#comment-15226784 ] Hudson commented on AMBARI-15711: --------------------------------- FAILURE: Integrated in Ambari-trunk-Commit #4598 (See [https://builds.apache.org/job/Ambari-trunk-Commit/4598/]) AMBARI-15711. Exception thrown when host with unsupported OS is to be (aonishuk: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=36edfee565e17bbd5a32fe8ec7a691b7a06965fe]) * ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClustersImpl.java > Exception thrown when host with unsupported OS is to be mapped to cluster is silently swallowed > ----------------------------------------------------------------------------------------------- > > Key: AMBARI-15711 > URL: https://issues.apache.org/jira/browse/AMBARI-15711 > Project: Ambari > Issue Type: Bug > Reporter: Andrew Onischuk > Assignee: Andrew Onischuk > Fix For: 2.4.0 > > Attachments: AMBARI-15711.patch > > > When hosts are being mapped to a clusters (see > ClustersImpl.java:mapHostToCluster) it verifies if the OS type of the host > matches the OS types supported by the stack that is being deployed. > If the OS type of the host is not supported than a warning message is logged > and an exception is thrown which is silently swallowed. > > > > .... > if (!isOsSupportedByClusterStack(cluster, host)) { > String message = "Trying to map host to cluster where stack does not" > + " support host's os type" + ", clusterName=" + clusterName > + ", clusterStackId=" + cluster.getDesiredStackVersion().getStackId() > + ", hostname=" + hostname + ", hostOsFamily=" + host.getOsFamily(); > LOG.warn(message); > throw new AmbariException(message); > } > ... > > This message should be logged as ERROR to make easier troubleshooting as most > of the time people search for exceptions and ERRORs in the log when looking > into issues with cluster. -- This message was sent by Atlassian JIRA (v6.3.4#6332)