[22/50] [abbrv] ambari git commit: AMBARI-22439 Host check operation is being performed on all hosts during host add should not get stuck. (atkach)

2017-11-22 Thread amagyar
AMBARI-22439 Host check operation is being performed on all hosts during host 
add should not get stuck. (atkach)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/d0ef1449
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/d0ef1449
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/d0ef1449

Branch: refs/heads/branch-feature-AMBARI-22008
Commit: d0ef1449af23e22ee6b95726ce4ca0b1f3544cc4
Parents: d11faab
Author: Andrii Tkach 
Authored: Tue Nov 14 18:11:56 2017 +0200
Committer: Andrii Tkach 
Committed: Tue Nov 14 18:11:56 2017 +0200

--
 ambari-web/app/mixins/main/host/details/actions/check_host.js | 6 --
 1 file changed, 4 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/ambari/blob/d0ef1449/ambari-web/app/mixins/main/host/details/actions/check_host.js
--
diff --git a/ambari-web/app/mixins/main/host/details/actions/check_host.js 
b/ambari-web/app/mixins/main/host/details/actions/check_host.js
index 2e2e021..66baf5a 100644
--- a/ambari-web/app/mixins/main/host/details/actions/check_host.js
+++ b/ambari-web/app/mixins/main/host/details/actions/check_host.js
@@ -111,6 +111,8 @@ App.CheckHostMixin = Em.Mixin.create({
*/
   warningsTimeInterval: 6,
 
+  finishStates: ["FAILED", "COMPLETED", "TIMEDOUT", "ABORTED"],
+
   /**
* disables host check on Add host wizard as per the experimental flag
*/
@@ -206,7 +208,7 @@ App.CheckHostMixin = Em.Mixin.create({
   //if resolution host check has corrupted data then skip it
   return this.getGeneralHostCheck();
 }
-if (["FAILED", "COMPLETED", 
"TIMEDOUT"].contains(data.Requests.request_status)) {
+if (this.get('finishStates').contains(data.Requests.request_status)) {
   if (data.Requests.inputs.indexOf("last_agent_env_check") != -1) {
 this.set('stopChecking', true);
 this.set('hostsPackagesData', data.tasks.map(function (task) {
@@ -369,7 +371,7 @@ App.CheckHostMixin = Em.Mixin.create({
 data.tasks.forEach(function (task) {
   var name = 
Em.I18n.t('installer.step3.hostWarningsPopup.resolution.validation.error');
   var hostInfo = this.get("hostCheckWarnings").findProperty('name', name);
-  if (["FAILED", "COMPLETED", "TIMEDOUT"].contains(task.Tasks.status)) {
+  if (this.get('finishStates').contains(task.Tasks.status)) {
 if (task.Tasks.status === "COMPLETED" && !!Em.get(task, 
"Tasks.structured_out.host_resolution_check.failed_count")) {
   var targetHostName = Em.get(task, "Tasks.host_name");
   var relatedHostNames = Em.get(task, 
"Tasks.structured_out.host_resolution_check.hosts_with_failures") || [];



[28/50] [abbrv] ambari git commit: AMBARI-22439 Host check operation is being performed on all hosts during host add should not get stuck. (atkach)

2017-11-16 Thread rlevas
AMBARI-22439 Host check operation is being performed on all hosts during host 
add should not get stuck. (atkach)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/d0ef1449
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/d0ef1449
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/d0ef1449

Branch: refs/heads/branch-feature-AMBARI-20859
Commit: d0ef1449af23e22ee6b95726ce4ca0b1f3544cc4
Parents: d11faab
Author: Andrii Tkach 
Authored: Tue Nov 14 18:11:56 2017 +0200
Committer: Andrii Tkach 
Committed: Tue Nov 14 18:11:56 2017 +0200

--
 ambari-web/app/mixins/main/host/details/actions/check_host.js | 6 --
 1 file changed, 4 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/ambari/blob/d0ef1449/ambari-web/app/mixins/main/host/details/actions/check_host.js
--
diff --git a/ambari-web/app/mixins/main/host/details/actions/check_host.js 
b/ambari-web/app/mixins/main/host/details/actions/check_host.js
index 2e2e021..66baf5a 100644
--- a/ambari-web/app/mixins/main/host/details/actions/check_host.js
+++ b/ambari-web/app/mixins/main/host/details/actions/check_host.js
@@ -111,6 +111,8 @@ App.CheckHostMixin = Em.Mixin.create({
*/
   warningsTimeInterval: 6,
 
+  finishStates: ["FAILED", "COMPLETED", "TIMEDOUT", "ABORTED"],
+
   /**
* disables host check on Add host wizard as per the experimental flag
*/
@@ -206,7 +208,7 @@ App.CheckHostMixin = Em.Mixin.create({
   //if resolution host check has corrupted data then skip it
   return this.getGeneralHostCheck();
 }
-if (["FAILED", "COMPLETED", 
"TIMEDOUT"].contains(data.Requests.request_status)) {
+if (this.get('finishStates').contains(data.Requests.request_status)) {
   if (data.Requests.inputs.indexOf("last_agent_env_check") != -1) {
 this.set('stopChecking', true);
 this.set('hostsPackagesData', data.tasks.map(function (task) {
@@ -369,7 +371,7 @@ App.CheckHostMixin = Em.Mixin.create({
 data.tasks.forEach(function (task) {
   var name = 
Em.I18n.t('installer.step3.hostWarningsPopup.resolution.validation.error');
   var hostInfo = this.get("hostCheckWarnings").findProperty('name', name);
-  if (["FAILED", "COMPLETED", "TIMEDOUT"].contains(task.Tasks.status)) {
+  if (this.get('finishStates').contains(task.Tasks.status)) {
 if (task.Tasks.status === "COMPLETED" && !!Em.get(task, 
"Tasks.structured_out.host_resolution_check.failed_count")) {
   var targetHostName = Em.get(task, "Tasks.host_name");
   var relatedHostNames = Em.get(task, 
"Tasks.structured_out.host_resolution_check.hosts_with_failures") || [];



[28/50] [abbrv] ambari git commit: AMBARI-22439 Host check operation is being performed on all hosts during host add should not get stuck. (atkach)

2017-11-16 Thread amagyar
AMBARI-22439 Host check operation is being performed on all hosts during host 
add should not get stuck. (atkach)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/77fc9544
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/77fc9544
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/77fc9544

Branch: refs/heads/branch-feature-AMBARI-22008
Commit: 77fc95442456f6c1e5e451af541d29d1a8f51f2d
Parents: 2a2fdaa
Author: Andrii Tkach 
Authored: Tue Nov 14 18:11:56 2017 +0200
Committer: Attila Magyar 
Committed: Thu Nov 16 16:35:29 2017 +0100

--
 ambari-web/app/mixins/main/host/details/actions/check_host.js | 6 --
 1 file changed, 4 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/ambari/blob/77fc9544/ambari-web/app/mixins/main/host/details/actions/check_host.js
--
diff --git a/ambari-web/app/mixins/main/host/details/actions/check_host.js 
b/ambari-web/app/mixins/main/host/details/actions/check_host.js
index 2e2e021..66baf5a 100644
--- a/ambari-web/app/mixins/main/host/details/actions/check_host.js
+++ b/ambari-web/app/mixins/main/host/details/actions/check_host.js
@@ -111,6 +111,8 @@ App.CheckHostMixin = Em.Mixin.create({
*/
   warningsTimeInterval: 6,
 
+  finishStates: ["FAILED", "COMPLETED", "TIMEDOUT", "ABORTED"],
+
   /**
* disables host check on Add host wizard as per the experimental flag
*/
@@ -206,7 +208,7 @@ App.CheckHostMixin = Em.Mixin.create({
   //if resolution host check has corrupted data then skip it
   return this.getGeneralHostCheck();
 }
-if (["FAILED", "COMPLETED", 
"TIMEDOUT"].contains(data.Requests.request_status)) {
+if (this.get('finishStates').contains(data.Requests.request_status)) {
   if (data.Requests.inputs.indexOf("last_agent_env_check") != -1) {
 this.set('stopChecking', true);
 this.set('hostsPackagesData', data.tasks.map(function (task) {
@@ -369,7 +371,7 @@ App.CheckHostMixin = Em.Mixin.create({
 data.tasks.forEach(function (task) {
   var name = 
Em.I18n.t('installer.step3.hostWarningsPopup.resolution.validation.error');
   var hostInfo = this.get("hostCheckWarnings").findProperty('name', name);
-  if (["FAILED", "COMPLETED", "TIMEDOUT"].contains(task.Tasks.status)) {
+  if (this.get('finishStates').contains(task.Tasks.status)) {
 if (task.Tasks.status === "COMPLETED" && !!Em.get(task, 
"Tasks.structured_out.host_resolution_check.failed_count")) {
   var targetHostName = Em.get(task, "Tasks.host_name");
   var relatedHostNames = Em.get(task, 
"Tasks.structured_out.host_resolution_check.hosts_with_failures") || [];



ambari git commit: AMBARI-22439 Host check operation is being performed on all hosts during host add should not get stuck. (atkach)

2017-11-14 Thread atkach
Repository: ambari
Updated Branches:
  refs/heads/branch-2.6 6a09885d5 -> 93820ddfd


AMBARI-22439 Host check operation is being performed on all hosts during host 
add should not get stuck. (atkach)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/93820ddf
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/93820ddf
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/93820ddf

Branch: refs/heads/branch-2.6
Commit: 93820ddfde17651dff3bf4786634813824323144
Parents: 6a09885
Author: Andrii Tkach 
Authored: Tue Nov 14 18:23:44 2017 +0200
Committer: Andrii Tkach 
Committed: Tue Nov 14 18:23:44 2017 +0200

--
 ambari-web/app/controllers/wizard/step3_controller.js | 6 --
 1 file changed, 4 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/ambari/blob/93820ddf/ambari-web/app/controllers/wizard/step3_controller.js
--
diff --git a/ambari-web/app/controllers/wizard/step3_controller.js 
b/ambari-web/app/controllers/wizard/step3_controller.js
index 9358e83..fb41516 100644
--- a/ambari-web/app/controllers/wizard/step3_controller.js
+++ b/ambari-web/app/controllers/wizard/step3_controller.js
@@ -185,6 +185,8 @@ App.WizardStep3Controller = 
Em.Controller.extend(App.ReloadPopupMixin, {
*/
   warningsTimeInterval: 6,
 
+  finishStates: ["FAILED", "COMPLETED", "TIMEDOUT", "ABORTED"],
+
   /**
* Are hosts warnings loaded
* @type {bool}
@@ -1083,7 +1085,7 @@ App.WizardStep3Controller = 
Em.Controller.extend(App.ReloadPopupMixin, {
 if (!data) {
   return this.getGeneralHostCheck();
 }
-if (["FAILED", "COMPLETED", 
"TIMEDOUT"].contains(data.Requests.request_status)) {
+if (this.get('finishStates').contains(data.Requests.request_status)) {
   if (data.Requests.inputs.indexOf("last_agent_env_check") != -1) {
 this.set('stopChecking', true);
 this.set('hostsPackagesData', data.tasks.map(function (task) {
@@ -1402,7 +1404,7 @@ App.WizardStep3Controller = 
Em.Controller.extend(App.ReloadPopupMixin, {
 data.tasks.forEach(function (task) {
   var name = 
Em.I18n.t('installer.step3.hostWarningsPopup.resolution.validation.error');
   var hostInfo = this.get("hostCheckWarnings").findProperty('name', name);
-  if (["FAILED", "COMPLETED", "TIMEDOUT"].contains(task.Tasks.status)) {
+  if (this.get('finishStates').contains(task.Tasks.status)) {
 if (task.Tasks.status === "COMPLETED" && !!Em.get(task, 
"Tasks.structured_out.host_resolution_check.failed_count")) {
   var targetHostName = Em.get(task, "Tasks.host_name");
   var relatedHostNames = Em.get(task, 
"Tasks.structured_out.host_resolution_check.hosts_with_failures") || [];



ambari git commit: AMBARI-22439 Host check operation is being performed on all hosts during host add should not get stuck. (atkach)

2017-11-14 Thread atkach
Repository: ambari
Updated Branches:
  refs/heads/trunk d11faab13 -> d0ef1449a


AMBARI-22439 Host check operation is being performed on all hosts during host 
add should not get stuck. (atkach)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/d0ef1449
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/d0ef1449
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/d0ef1449

Branch: refs/heads/trunk
Commit: d0ef1449af23e22ee6b95726ce4ca0b1f3544cc4
Parents: d11faab
Author: Andrii Tkach 
Authored: Tue Nov 14 18:11:56 2017 +0200
Committer: Andrii Tkach 
Committed: Tue Nov 14 18:11:56 2017 +0200

--
 ambari-web/app/mixins/main/host/details/actions/check_host.js | 6 --
 1 file changed, 4 insertions(+), 2 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/ambari/blob/d0ef1449/ambari-web/app/mixins/main/host/details/actions/check_host.js
--
diff --git a/ambari-web/app/mixins/main/host/details/actions/check_host.js 
b/ambari-web/app/mixins/main/host/details/actions/check_host.js
index 2e2e021..66baf5a 100644
--- a/ambari-web/app/mixins/main/host/details/actions/check_host.js
+++ b/ambari-web/app/mixins/main/host/details/actions/check_host.js
@@ -111,6 +111,8 @@ App.CheckHostMixin = Em.Mixin.create({
*/
   warningsTimeInterval: 6,
 
+  finishStates: ["FAILED", "COMPLETED", "TIMEDOUT", "ABORTED"],
+
   /**
* disables host check on Add host wizard as per the experimental flag
*/
@@ -206,7 +208,7 @@ App.CheckHostMixin = Em.Mixin.create({
   //if resolution host check has corrupted data then skip it
   return this.getGeneralHostCheck();
 }
-if (["FAILED", "COMPLETED", 
"TIMEDOUT"].contains(data.Requests.request_status)) {
+if (this.get('finishStates').contains(data.Requests.request_status)) {
   if (data.Requests.inputs.indexOf("last_agent_env_check") != -1) {
 this.set('stopChecking', true);
 this.set('hostsPackagesData', data.tasks.map(function (task) {
@@ -369,7 +371,7 @@ App.CheckHostMixin = Em.Mixin.create({
 data.tasks.forEach(function (task) {
   var name = 
Em.I18n.t('installer.step3.hostWarningsPopup.resolution.validation.error');
   var hostInfo = this.get("hostCheckWarnings").findProperty('name', name);
-  if (["FAILED", "COMPLETED", "TIMEDOUT"].contains(task.Tasks.status)) {
+  if (this.get('finishStates').contains(task.Tasks.status)) {
 if (task.Tasks.status === "COMPLETED" && !!Em.get(task, 
"Tasks.structured_out.host_resolution_check.failed_count")) {
   var targetHostName = Em.get(task, "Tasks.host_name");
   var relatedHostNames = Em.get(task, 
"Tasks.structured_out.host_resolution_check.hosts_with_failures") || [];