You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ma...@apache.org on 2017/02/22 12:15:18 UTC

ambari git commit: AMBARI-19991. cluster deployment fails if cluster template has fewer host_groups than that in blueprint (Amruta Borkar via magyari_sandor)

Repository: ambari
Updated Branches:
  refs/heads/trunk b789b7c10 -> 45b423b7b


AMBARI-19991. cluster deployment fails if cluster template has fewer host_groups than that in blueprint (Amruta Borkar via magyari_sandor)


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

Branch: refs/heads/trunk
Commit: 45b423b7be199115f36cad828fd77a45fed21b63
Parents: b789b7c
Author: Amruta Borkar <ar...@us.ibm.com>
Authored: Wed Feb 22 11:43:09 2017 +0100
Committer: Sandor Magyari <sm...@hortonworks.com>
Committed: Wed Feb 22 13:03:24 2017 +0100

----------------------------------------------------------------------
 .../java/org/apache/ambari/server/topology/TopologyManager.java   | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/45b423b7/ambari-server/src/main/java/org/apache/ambari/server/topology/TopologyManager.java
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/topology/TopologyManager.java b/ambari-server/src/main/java/org/apache/ambari/server/topology/TopologyManager.java
index c4c3dd2..a26624e 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/topology/TopologyManager.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/topology/TopologyManager.java
@@ -1050,6 +1050,9 @@ public class TopologyManager {
           if (groupInfo != null) {
             LOG.info("TopologyManager.ConfigureClusterTask areHostGroupsResolved: host group name = {} requires {} hosts to be mapped, but only {} are available.",
                 groupInfo.getHostGroupName(), groupInfo.getRequestedHostCount(), groupInfo.getHostNames().size());
+          } else {
+              LOG.error("TopologyManager.ConfigureClusterTask areHostGroupsResolved: host group name = {} is required group and does not map to any hosts. Use add host API to add host to this host group.",
+                  hostGroup);
           }
           break;
         } else {