File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -28,13 +28,13 @@ def cluster_is_ok():
28
28
# We need to ensure that partitions is empty, and the list of running nodes
29
29
# is the same as the list of known nodes.
30
30
31
- status = re .sub (r'\s' , '' , status )
31
+ status = re .sub (r'\s' , '' , status )
32
32
known_nodes = re .search (r'\{nodes,\[\{disc,\[([^]]+)\]' , status )
33
33
running_nodes = re .search (r'\{running_nodes,\[([^]]+)\]' , status )
34
34
partitions = re .search (r'\{partitions,\[([^]]*)\]' , status )
35
35
36
36
if not known_nodes or not running_nodes or not partitions :
37
- print ("Couldn't parse status output: %r" % status )
37
+ print ("No matches found in output: %r" % status )
38
38
return False
39
39
40
40
known_nodes = ',' .join (sorted (known_nodes .group (1 ).split (',' )))
@@ -65,3 +65,4 @@ def safe_reboot():
65
65
sleep (5 )
66
66
67
67
execute (vm .reboot , hosts = [env ['host_string' ]])
68
+ sleep (10 )
You can’t perform that action at this time.
0 commit comments