Browse Source

AMBARI-6222. Move Wizard (step 2). Invalid hosts-list for moving NameNode after HA enabling. (onechiporenko)

Oleg Nechiporenko 11 years ago
parent
commit
a25cd0e084

+ 4 - 0
ambari-web/app/controllers/main/service/reassign/step2_controller.js

@@ -24,6 +24,10 @@ App.ReassignMasterWizardStep2Controller = App.WizardStep5Controller.extend({
   showCurrentHost: true,
 
   loadStep: function() {
+    // If High Availability is enabled NameNode became a multiple component
+    if (App.get('isHaEnabled')) {
+      this.get('multipleComponents').push('NAMENODE');
+    }
     this._super();
     if(this.get('content.reassign.component_name') == "NAMENODE" && !this.get('content.masterComponentHosts').findProperty('component', "SECONDARY_NAMENODE")){
       this.set('showCurrentHost', false);