Return-Path: X-Original-To: apmail-incubator-ambari-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-ambari-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B82E9FAFE for ; Thu, 18 Apr 2013 01:40:08 +0000 (UTC) Received: (qmail 70197 invoked by uid 500); 18 Apr 2013 01:40:08 -0000 Delivered-To: apmail-incubator-ambari-commits-archive@incubator.apache.org Received: (qmail 70170 invoked by uid 500); 18 Apr 2013 01:40:08 -0000 Mailing-List: contact ambari-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@incubator.apache.org Delivered-To: mailing list ambari-commits@incubator.apache.org Received: (qmail 70163 invoked by uid 99); 18 Apr 2013 01:40:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Apr 2013 01:40:08 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Apr 2013 01:40:07 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 86F4F2388A3D; Thu, 18 Apr 2013 01:39:47 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1469123 - in /incubator/ambari/trunk: CHANGES.txt ambari-web/app/controllers/wizard/step9_controller.js ambari-web/app/routes/add_service_routes.js Date: Thu, 18 Apr 2013 01:39:47 -0000 To: ambari-commits@incubator.apache.org From: yusaku@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130418013947.86F4F2388A3D@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: yusaku Date: Thu Apr 18 01:39:47 2013 New Revision: 1469123 URL: http://svn.apache.org/r1469123 Log: AMBARI-1956. Wrong install status shown in Add Service Wizard. (yusaku) Modified: incubator/ambari/trunk/CHANGES.txt incubator/ambari/trunk/ambari-web/app/controllers/wizard/step9_controller.js incubator/ambari/trunk/ambari-web/app/routes/add_service_routes.js Modified: incubator/ambari/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/CHANGES.txt?rev=1469123&r1=1469122&r2=1469123&view=diff ============================================================================== --- incubator/ambari/trunk/CHANGES.txt (original) +++ incubator/ambari/trunk/CHANGES.txt Thu Apr 18 01:39:47 2013 @@ -747,6 +747,8 @@ Trunk (unreleased changes): BUG FIXES + AMBARI-1956. Wrong install status shown in Add Service Wizard. (yusaku) + AMBARI-1951. Ambari agent setup during bootstrap should install the same version of agent as the server. (smohanty) Modified: incubator/ambari/trunk/ambari-web/app/controllers/wizard/step9_controller.js URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/controllers/wizard/step9_controller.js?rev=1469123&r1=1469122&r2=1469123&view=diff ============================================================================== --- incubator/ambari/trunk/ambari-web/app/controllers/wizard/step9_controller.js (original) +++ incubator/ambari/trunk/ambari-web/app/controllers/wizard/step9_controller.js Thu Apr 18 01:39:47 2013 @@ -399,10 +399,22 @@ App.WizardStep9Controller = Em.Controlle if (actions.someProperty('Tasks.status', 'FAILED') || actions.someProperty('Tasks.status', 'ABORTED') || actions.someProperty('Tasks.status', 'TIMEDOUT')) { contentHost.set('status', 'warning'); } - if (this.get('content.cluster.status') === 'PENDING' && actions.someProperty('Tasks.status', 'FAILED')) { + if ((this.get('content.cluster.status') === 'PENDING' && actions.someProperty('Tasks.status', 'FAILED')) || (this.isMasterFailed(actions))) { contentHost.set('status', 'failed'); } }, + //return true if there is at least one FAILED task of master component install + isMasterFailed: function(polledData) { + var result = false; + polledData.filterProperty('Tasks.command', 'INSTALL').filterProperty('Tasks.status', 'FAILED').mapProperty('Tasks.role').forEach ( + function (task) { + if (!['DATANODE', 'TASKTRACKER', 'HBASE_REGIONSERVER', 'GANGLIA_MONITOR'].contains(task)) { + result = true; + } + } + ); + return result; + }, onInProgressPerHost: function (tasks, contentHost) { var runningAction = tasks.findProperty('Tasks.status', 'IN_PROGRESS'); Modified: incubator/ambari/trunk/ambari-web/app/routes/add_service_routes.js URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/routes/add_service_routes.js?rev=1469123&r1=1469122&r2=1469123&view=diff ============================================================================== --- incubator/ambari/trunk/ambari-web/app/routes/add_service_routes.js (original) +++ incubator/ambari/trunk/ambari-web/app/routes/add_service_routes.js Thu Apr 18 01:39:47 2013 @@ -248,6 +248,7 @@ module.exports = Em.Route.extend({ var isRetry = true; addServiceController.installServices(isRetry); addServiceController.setInfoForStep9(); + wizardStep9Controller.resetHostsForRetry(); // We need to do recovery based on whether we are in Add Host or Installer wizard addServiceController.saveClusterState('ADD_SERVICES_INSTALLING_3'); }