You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ab...@apache.org on 2016/02/08 14:10:50 UTC

[2/2] ambari git commit: AMBARI-14942 Reinstallation of a failed component should ask for Kerberos password 2. (ababiichuk)

AMBARI-14942 Reinstallation of a failed component should ask for Kerberos password 2. (ababiichuk)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/1a636f25
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/1a636f25
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/1a636f25

Branch: refs/heads/branch-2.2
Commit: 1a636f25c89c35e9a6c1090ee6fbef85713c93ad
Parents: 6b4a799
Author: ababiichuk <ab...@hortonworks.com>
Authored: Mon Feb 8 14:18:58 2016 +0200
Committer: ababiichuk <ab...@hortonworks.com>
Committed: Mon Feb 8 15:10:33 2016 +0200

----------------------------------------------------------------------
 ambari-web/app/controllers/main/host.js | 25 ++++++++++++++-----------
 1 file changed, 14 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/1a636f25/ambari-web/app/controllers/main/host.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/host.js b/ambari-web/app/controllers/main/host.js
index d130485..3f99d2e 100644
--- a/ambari-web/app/controllers/main/host.js
+++ b/ambari-web/app/controllers/main/host.js
@@ -735,18 +735,21 @@ App.MainHostController = Em.ArrayController.extend(App.TableServerMixin, {
    * @param {Ember.Enumerable} hosts - list of affected hosts
   */
   bulkOperationForHostsReinstall: function (operationData, hosts) {
-    return App.ajax.send({
-      name: 'common.host_components.update',
-      sender: this,
-      data: {
-        HostRoles: {
-          state: 'INSTALLED'
+    var self = this;
+    App.get('router.mainAdminKerberosController').getKDCSessionState(function () {
+      return App.ajax.send({
+        name: 'common.host_components.update',
+        sender: self,
+        data: {
+          HostRoles: {
+            state: 'INSTALLED'
+          },
+          query: 'HostRoles/host_name.in(' + hosts.mapProperty('hostName').join(',') + ')&HostRoles/state=INSTALL_FAILED',
+          context: operationData.message,
+          noOpsMessage: Em.I18n.t('hosts.host.maintainance.reinstallFailedComponents.context')
         },
-        query: 'HostRoles/host_name.in(' + hosts.mapProperty('hostName').join(',') + ')&HostRoles/state=INSTALL_FAILED',
-        context: operationData.message,
-        noOpsMessage: Em.I18n.t('hosts.host.maintainance.reinstallFailedComponents.context')
-      },
-      success: 'bulkOperationForHostComponentsSuccessCallback'
+        success: 'bulkOperationForHostComponentsSuccessCallback'
+      });
     });
   },