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
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: