This is an automated email from the ASF dual-hosted git repository. ishanbha pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/trunk by this push: new 3ecdc55 [AMBARI-23606] Lifecycle-Bulk: Components can be added even when ambari agent is down. (#1034) 3ecdc55 is described below commit 3ecdc55e9031e3c7a22e5c8479dd0d976e6d0f86 Author: Ishan Bhatt <ishanbhatt.1...@gmail.com> AuthorDate: Thu Apr 19 10:01:23 2018 -0400 [AMBARI-23606] Lifecycle-Bulk: Components can be added even when ambari agent is down. (#1034) --- ambari-web/app/controllers/main/host/bulk_operations_controller.js | 5 +++-- ambari-web/app/messages.js | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ambari-web/app/controllers/main/host/bulk_operations_controller.js b/ambari-web/app/controllers/main/host/bulk_operations_controller.js index b64f598..43c1dfd 100644 --- a/ambari-web/app/controllers/main/host/bulk_operations_controller.js +++ b/ambari-web/app/controllers/main/host/bulk_operations_controller.js @@ -503,11 +503,12 @@ App.BulkOperationsController = Em.Controller.extend({ var allHostsWithComponent = data.items.mapProperty('Hosts.host_name'); var hostsWithComponent = []; hosts.forEach(function (host) { - if(allHostsWithComponent.contains(host.hostName)) { + var noHeartBeat = App.Host.find().findProperty('hostName', host.hostName).get('isNotHeartBeating'); + if(allHostsWithComponent.contains(host.hostName) || noHeartBeat) { hostsWithComponent.push(Em.Object.create({ error: { key: host.hostName, - message: Em.I18n.t('hosts.bulkOperation.confirmation.add.component.skip').format(operationData.componentNameFormatted) + message: noHeartBeat ? Em.I18n.t('hosts.bulkOperation.confirmation.add.component.noHeartBeat.skip') : Em.I18n.t('hosts.bulkOperation.confirmation.add.component.skip').format(operationData.componentNameFormatted) }, isCollapsed: true, isBodyVisible: Em.computed.ifThenElse('isCollapsed', 'display: none;', 'display: block;') diff --git a/ambari-web/app/messages.js b/ambari-web/app/messages.js index 5dd9057..dce6f2b 100644 --- a/ambari-web/app/messages.js +++ b/ambari-web/app/messages.js @@ -2694,6 +2694,7 @@ Em.I18n.translations = { 'hosts.bulkOperation.host_components.passiveState.nothingToDo.body':'All host components that you selected are already in Maintenance Mode', 'hosts.bulkOperation.confirmation.add.component':'{0} will be added to the following hosts.', 'hosts.bulkOperation.confirmation.add.component.skip':'{0} already installed.', + 'hosts.bulkOperation.confirmation.add.component.noHeartBeat.skip':'Host heartbeat lost', 'hosts.bulkOperation.confirmation.add.component.nothingToDo.body': 'All the selected hosts have {0} installed already.', 'hosts.bulkOperation.confirmation.cannot.add1': 'The following hosts will be skipped (expand for reason):', 'hosts.bulkOperation.confirmation.cannot.add2': '{0} cannot be added to the following hosts (expand for reason):', -- To stop receiving notification emails like this one, please contact ishan...@apache.org.