Filter out non-cluster nodes 11/18511/2
authorMichael Polenchuk <mpolenchuk@mirantis.com>
Fri, 12 Aug 2016 07:41:40 +0000 (10:41 +0300)
committerMichael Polenchuk <mpolenchuk@mirantis.com>
Fri, 12 Aug 2016 09:20:05 +0000 (12:20 +0300)
In order to avoid fetching up non-cluster nodes
filter them out by option of id.

JIRA: FUEL-183
Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
Change-Id: If0d0a1480d648167f1bcf726f0d6d345d2e00711

deploy/cloud/deployment.py

index f8e1617..4a9fcd9 100644 (file)
@@ -157,10 +157,10 @@ class Deployment(object):
 
 
     def verify_node_status(self):
-        node_list = parse(exec_cmd('fuel node list'))
+        node_list = parse(exec_cmd('fuel --env %s node' % self.env_id))
         failed_nodes = []
         for node in node_list:
-            if node[N['status']] != 'ready' and node[N['cluster']] != 'None':
+            if node[N['status']] != 'ready':
                 failed_nodes.append((node[N['id']], node[N['status']]))
 
         if failed_nodes: