|
@@ -77,7 +77,7 @@ App.MainAdminSecurityAddStep3Controller = Em.Controller.extend({
|
|
|
newService.hosts.push({
|
|
|
name: name,
|
|
|
publicName: name,
|
|
|
- logTasks: stages.polledData.filterProperty("Tasks.host_name",name)
|
|
|
+ logTasks: stages.polledData.filterProperty("Tasks.host_name", name)
|
|
|
});
|
|
|
});
|
|
|
services.push(newService);
|
|
@@ -102,13 +102,8 @@ App.MainAdminSecurityAddStep3Controller = Em.Controller.extend({
|
|
|
} else if (currentStage && currentStage.get('stage') === 'stage3') {
|
|
|
if (App.testMode) {
|
|
|
currentStage.set('isSuccess', true);
|
|
|
- currentStage.set('isCompleted', true);
|
|
|
- this.moveToNextStage();
|
|
|
} else {
|
|
|
- var self = this;
|
|
|
- window.setTimeout(function () {
|
|
|
- self.loadClusterConfigs();
|
|
|
- }, 12000);
|
|
|
+ this.loadClusterConfigs();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -117,12 +112,9 @@ App.MainAdminSecurityAddStep3Controller = Em.Controller.extend({
|
|
|
onCompleteStage: function () {
|
|
|
var index = this.get('stages').filterProperty('isCompleted', true).length;
|
|
|
if (index > 0) {
|
|
|
- var self = this;
|
|
|
var lastCompletedStageResult = this.get('stages').objectAt(index - 1).get('isSuccess');
|
|
|
if (lastCompletedStageResult) {
|
|
|
- window.setTimeout(function () {
|
|
|
- self.moveToNextStage();
|
|
|
- }, 50);
|
|
|
+ this.moveToNextStage();
|
|
|
}
|
|
|
}
|
|
|
}.observes('stages.@each.isCompleted'),
|
|
@@ -136,7 +128,6 @@ App.MainAdminSecurityAddStep3Controller = Em.Controller.extend({
|
|
|
|
|
|
addInfoToStages: function () {
|
|
|
this.addInfoToStage2();
|
|
|
- this.addInfoToStage3();
|
|
|
this.addInfoToStage4();
|
|
|
},
|
|
|
|
|
@@ -157,13 +148,9 @@ App.MainAdminSecurityAddStep3Controller = Em.Controller.extend({
|
|
|
stage2.set('data', data);
|
|
|
},
|
|
|
|
|
|
- addInfoToStage3: function () {
|
|
|
-
|
|
|
- },
|
|
|
-
|
|
|
addInfoToStage4: function () {
|
|
|
var stage4 = this.get('stages').findProperty('stage', 'stage4');
|
|
|
- var url = (App.testMode) ? '/data/wizard/deploy/2_hosts/poll_1.json' : App.apiPrefix + '/clusters/' + App.router.getClusterName() + '/services';
|
|
|
+ var url = (App.testMode) ? '/data/wizard/deploy/2_hosts/poll_1.json' : App.apiPrefix + '/clusters/' + App.router.getClusterName() + '/services?params/run_smoke_test=true';
|
|
|
var data = '{"RequestInfo": {"context": "' + Em.I18n.t('requestInfo.startAllServices') + '"}, "Body": {"ServiceInfo": {"state": "STARTED"}}}';
|
|
|
stage4.set('url', url);
|
|
|
stage4.set('data', data);
|
|
@@ -343,7 +330,7 @@ App.MainAdminSecurityAddStep3Controller = Em.Controller.extend({
|
|
|
serviceUsers.pushObject({id: 'puppet var', name: 'hbase_user', value: 'hbase'});
|
|
|
serviceUsers.pushObject({id: 'puppet var', name: 'hive_user', value: 'hive'});
|
|
|
} else {
|
|
|
- App.router.get('mainAdminSecurityController').getSecurityStatusFromServer();
|
|
|
+ App.router.get('mainAdminSecurityController').setSecurityStatus();
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -425,7 +412,6 @@ App.MainAdminSecurityAddStep3Controller = Em.Controller.extend({
|
|
|
if (this.get('noOfWaitingAjaxCalls') == 0) {
|
|
|
var currentStage = this.get('stages').findProperty('stage', 'stage3');
|
|
|
currentStage.set('isSuccess', true);
|
|
|
- currentStage.set('isCompleted', true);
|
|
|
}
|
|
|
},
|
|
|
|