From 58dcda0e29975f2d64ea571d14649ede43209da0 Mon Sep 17 00:00:00 2001 From: Michael Polenchuk Date: Fri, 12 Aug 2016 10:41:40 +0300 Subject: 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 Change-Id: If0d0a1480d648167f1bcf726f0d6d345d2e00711 --- deploy/cloud/deployment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'deploy') 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: -- cgit 1.2.3-korg