aboutsummaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
authorMichael Polenchuk <mpolenchuk@mirantis.com>2016-08-12 10:41:40 +0300
committerMichael Polenchuk <mpolenchuk@mirantis.com>2016-08-12 12:20:05 +0300
commit58dcda0e29975f2d64ea571d14649ede43209da0 (patch)
tree2ee9ee16c498303f018d12e7ca2d6a3f1be4c9f5 /deploy
parent242641444b6f64ef7e1ca6399a77d080f74987d7 (diff)
Filter out non-cluster nodes
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
Diffstat (limited to 'deploy')
-rw-r--r--deploy/cloud/deployment.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/deploy/cloud/deployment.py b/deploy/cloud/deployment.py
index f8e1617f8..4a9fcd9a8 100644
--- a/deploy/cloud/deployment.py
+++ b/deploy/cloud/deployment.py
@@ -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: