Explorar el Código

AMBARI-13667. Adding services onto dead nodes throws exception dialog in UI (srimanth)

Srimanth Gunturi hace 9 años
padre
commit
3347a6bb0e

+ 11 - 1
ambari-web/app/controllers/wizard/step9_controller.js

@@ -606,7 +606,17 @@ App.WizardStep9Controller = Em.Controller.extend(App.ReloadPopupMixin, {
     });
     this.set('progress', '100');
 
-    App.ajax.defaultErrorHandler(jqXHR, opt.url, opt.method, jqXHR.status);
+    console.log("Error starting installed services: ", jqXHR, ajaxOptions, error, opt);
+    App.ModalPopup.show({
+      encodeBody: false,
+      primary: Em.I18n.t('ok'),
+      header: Em.I18n.t('installer.step9.service.start.header'),
+      secondaryClass: "hide",
+      body: Em.I18n.t('installer.step9.service.start.failed'),
+      primaryClass: 'btn-success',
+      onPrimary: function() { this.hide(); },
+      onClose: function() { this.hide(); }
+    });
   },
 
   /**

+ 2 - 0
ambari-web/app/messages.js

@@ -896,6 +896,8 @@ Em.I18n.translations = {
   'installer.step9.serviceStatus.abort.completed':' aborted successfully',
   'installer.step9.serviceStatus.abort.failed':' failed to abort',
   'installer.step9.components.install.failed': 'Installation Failure',
+  'installer.step9.service.start.failed': 'There were issues starting installed services. Please go to individual service pages to start them.',
+  'installer.step9.service.start.header': 'Start Services',
 
   'installer.step10.header':'Summary',
   'installer.step10.body':'Here is the summary of the install process.',