浏览代码

AMBARI-3651. Reassign wizard "Configure Component": Task "Stop All Services" failed, but after retry is marked as successful. (akovalenko)

Aleksandr Kovalenko 11 年之前
父节点
当前提交
b3f7fa6ec1

+ 1 - 0
ambari-web/app/controllers/main/admin/highAvailability/progress_controller.js

@@ -356,6 +356,7 @@ App.HighAvailabilityProgressPageController = App.HighAvailabilityWizardControlle
       }
     } else {
       console.warn('func: startPolling3');
+      this.setTaskLogs(this.get('currentTaskId'), []);
       this.onTaskCompleted();
     }
   },

+ 4 - 4
ambari-web/app/utils/ajax.js

@@ -89,7 +89,7 @@ var urls = {
     }
   },
   'reassign.stop_services': {
-    'real': '/clusters/{clusterName}/services?ServiceInfo/state=STARTED',
+    'real': '/clusters/{clusterName}/services',
     'mock': '',
     'format': function (data, opt) {
       return {
@@ -108,7 +108,7 @@ var urls = {
     }
   },
   'reassign.start_services': {
-    'real': '/clusters/{clusterName}/services?ServiceInfo/state=INSTALLED&params/run_smoke_test=true',
+    'real': '/clusters/{clusterName}/services?params/run_smoke_test=true',
     'mock': '',
     'format': function (data, opt) {
       return {
@@ -549,7 +549,7 @@ var urls = {
     }
   },
   'admin.high_availability.stop_all_services': {
-    'real': '/clusters/{clusterName}/services?ServiceInfo/state=STARTED',
+    'real': '/clusters/{clusterName}/services',
     'mock': '',
     'format': function (data, opt) {
       return {
@@ -568,7 +568,7 @@ var urls = {
     }
   },
   'admin.high_availability.start_all_services': {
-    'real': '/clusters/{clusterName}/services?ServiceInfo/state=INSTALLED',
+    'real': '/clusters/{clusterName}/services',
     'mock': '',
     'format': function (data, opt) {
       return {