ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yus...@apache.org
Subject ambari git commit: AMBARI-11997. Retry of Kerberize Cluster doesn't work. (rlevas via yusaku)
Date Fri, 19 Jun 2015 06:51:15 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk cf842a05a -> 2418787ed


AMBARI-11997. Retry of Kerberize Cluster doesn't work. (rlevas via yusaku)


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

Branch: refs/heads/trunk
Commit: 2418787ede32d1e1c88dcff8e883a8bfdbe91a11
Parents: cf842a0
Author: Yusaku Sako <yusaku@hortonworks.com>
Authored: Thu Jun 18 23:50:51 2015 -0700
Committer: Yusaku Sako <yusaku@hortonworks.com>
Committed: Thu Jun 18 23:50:51 2015 -0700

----------------------------------------------------------------------
 .../main/admin/kerberos/step7_controller.js     | 51 ++++++++++++++++++++
 1 file changed, 51 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/2418787e/ambari-web/app/controllers/main/admin/kerberos/step7_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/admin/kerberos/step7_controller.js b/ambari-web/app/controllers/main/admin/kerberos/step7_controller.js
index 077f75c..ece50d7 100644
--- a/ambari-web/app/controllers/main/admin/kerberos/step7_controller.js
+++ b/ambari-web/app/controllers/main/admin/kerberos/step7_controller.js
@@ -60,6 +60,57 @@ App.KerberosWizardStep7Controller = App.KerberosProgressPageController.extend({
     }
   },
 
+  /**
+   * Send request to unkerberisze cluster
+   * @returns {$.ajax}
+   */
+  unkerberizeCluster: function () {
+    return App.ajax.send({
+      name: 'admin.unkerberize.cluster',
+      sender: this,
+      success: 'goToNextStep',
+      error: 'goToNextStep'
+    });
+  },
+
+  goToNextStep: function() {
+    this.clearStage();
+    App.router.transitionTo('step7');
+  },
+
+  postKerberosDescriptor: function (kerberosDescriptor) {
+    return App.ajax.send({
+      name: 'admin.kerberos.cluster.artifact.create',
+      sender: this,
+      data: {
+        artifactName: 'kerberos_descriptor',
+        data: {
+          artifact_data: kerberosDescriptor
+        }
+      }
+    });
+  },
+
+  /**
+   * Send request to update kerberos descriptor
+   * @param kerberosDescriptor
+   * @returns {$.ajax|*}
+   */
+  putKerberosDescriptor: function (kerberosDescriptor) {
+    return App.ajax.send({
+      name: 'admin.kerberos.cluster.artifact.update',
+      sender: this,
+      data: {
+        artifactName: 'kerberos_descriptor',
+        data: {
+          artifact_data: kerberosDescriptor
+        }
+      },
+      success: 'unkerberizeCluster',
+      error: 'unkerberizeCluster'
+    });
+  },
+
   retry: function () {
     this.set('showRetry', false);
     this.get('tasks').setEach('status', 'PENDING');


Mime
View raw message