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