Quellcode durchsuchen

AMBARI-13002. Turning on the Maintenance mode wouldn't let you install the additional components properly (alexantonenko)

Alex Antonenko vor 9 Jahren
Ursprung
Commit
ed954bbe86

+ 3 - 0
ambari-web/app/controllers/main/admin/highAvailability_controller.js

@@ -39,6 +39,9 @@ App.MainAdminHighAvailabilityController = Em.Controller.extend({
     if (hostComponents.filterProperty('componentName', 'ZOOKEEPER_SERVER').length < 3) {
       message.push(Em.I18n.t('admin.highAvailability.error.zooKeeperNum'));
     }
+    if(hostComponents.filterProperty('isMaster', true).someProperty('passiveState', "ON") || hostComponents.filterProperty('isMaster', true).someProperty('isImpliedState', true)) {
+      message.push(Em.I18n.t('admin.highAvailability.error.maintenanceMode'));
+    }
 
     if (App.router.get('mainHostController.hostsCountMap.TOTAL') < 3) {
       message.push(Em.I18n.t('admin.highAvailability.error.hostsNum'));

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

@@ -1171,6 +1171,7 @@ Em.I18n.translations = {
   'admin.highAvailability.confirmManualRollbackBody':'You are in the process of enabling NameNode HA. If you exit now, you must follow manual instructions to revert back to the non-HA setup as documented in the Ambari User Guide\'s <i>Rolling Back NameNode HA</i> section.  Are you sure you want to exit the wizard?',
   'admin.highAvailability.error.hostsNum':'You must have at least 3 hosts in your cluster to enable NameNode HA.',
   'admin.highAvailability.error.namenodeStarted':'NameNode must be running before you enable NameNode HA.',
+  'admin.highAvailability.error.maintenanceMode':'In order to enable NameNode HA, all services, and hosts with master components need to be out of Maintenance Mode.',
   'admin.highAvailability.error.zooKeeperNum':'You must have at least 3 ZooKeeper Servers in your cluster to enable NameNode HA.',
   'admin.rm_highAvailability.error.hostsNum':'You must have at least 3 hosts in your cluster to enable ResourceManager HA.',
   'admin.rm_highAvailability.error.zooKeeperNum':'You must have at least 3 ZooKeeper Servers in your cluster to enable ResourceManager HA.',