Cloudpulse: rabbitmq operator check always fails
Change-Id: I3e6b2954272197b0a2f1d056e99b83b9144ec3f4
This commit is contained in:
@@ -88,21 +88,21 @@ class operator_scenario(base.Scenario):
|
|||||||
node_status_string = node_status.replace('\n', '')
|
node_status_string = node_status.replace('\n', '')
|
||||||
|
|
||||||
nodes = []
|
nodes = []
|
||||||
running_nodes = []
|
running = []
|
||||||
mathobj = re.search(
|
mathobj = re.search(
|
||||||
r'nodes,\[{disc,\[(.*?)\]', node_status_string, re.M | re.I)
|
r'nodes,\[{disc,\[(.*?)\]', node_status_string, re.M | re.I)
|
||||||
if mathobj:
|
if mathobj:
|
||||||
nodes = [x.rstrip("'").lstrip("'")
|
nodes = [x.rstrip("'").lstrip("'").rstrip(" ").lstrip(" ")
|
||||||
for x in mathobj.group(1).split(",")]
|
for x in mathobj.group(1).split(",")]
|
||||||
|
|
||||||
mathobj = re.search(
|
mathobj = re.search(
|
||||||
r'running_nodes,\[(.*?)\]}', node_status_string, re.M | re.I)
|
r'running_nodes,\[(.*?)\]}', node_status_string, re.M | re.I)
|
||||||
|
|
||||||
if mathobj:
|
if mathobj:
|
||||||
running_nodes = [x.rstrip("'").lstrip("'")
|
running = [x.rstrip("'").lstrip("'").rstrip(" ").lstrip(" ")
|
||||||
for x in mathobj.group(1).split(",")]
|
for x in mathobj.group(1).split(",")]
|
||||||
|
|
||||||
diffnodes = list(set(nodes) - set(running_nodes))
|
diffnodes = list(set(nodes) - set(running))
|
||||||
if diffnodes:
|
if diffnodes:
|
||||||
return(404, ("Failed Nodes : %s" %
|
return(404, ("Failed Nodes : %s" %
|
||||||
str(diffnodes)))
|
str(diffnodes)))
|
||||||
|
Reference in New Issue
Block a user