Fix to allow more physical nodes defined in DHA than node definitions in dea 67/7267/6
authorJonas Bjurel <jonas.bjurel@ericsson.com>
Tue, 19 Jan 2016 11:34:36 +0000 (12:34 +0100)
committerJonas Bjurel <jonas.bjurel@ericsson.com>
Fri, 22 Jan 2016 16:02:12 +0000 (16:02 +0000)
NOT VERIFIED
DO NOT MERGE

Change-Id: Id5b6029d11bfcd394e6f84a7b73b8a17820561cf
Signed-off-by: Jonas Bjurel <jonas.bjurel@ericsson.com>
deploy/cloud/deploy.py
deploy/cloud/deployment.py

index 14d6a96..679b0ad 100644 (file)
@@ -42,8 +42,9 @@ class Deploy(object):
     def assign_roles_to_cluster_node_ids(self):
         self.node_roles_dict = {}
         for blade, node in self.blade_node_dict.iteritems():
-            roles = commafy(self.dea.get_node_role(blade))
-            self.node_roles_dict[node] = (roles, blade)
+            if self.dea.get_node_role(blade):
+                roles = commafy(self.dea.get_node_role(blade))
+                self.node_roles_dict[node] = (roles, blade)
 
     def configure_environment(self):
         release_list = parse(exec_cmd('fuel release -l'))
index 29134b3..63c8c1e 100644 (file)
@@ -132,7 +132,7 @@ class Deployment(object):
         node_list = parse(exec_cmd('fuel node list'))
         failed_nodes = []
         for node in node_list:
-            if node[N['status']] != 'ready':
+            if node[N['status']] != 'ready' and node[N['cluster']] != 'None':
                 failed_nodes.append((node[N['id']], node[N['status']]))
 
         if failed_nodes: