Commit 2c7b793a authored by Grégory Wisniewski's avatar Grégory Wisniewski

Allow restart a test cluster with less storage nodes.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1972 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 16be4f7c
......@@ -270,7 +270,10 @@ class NEOCluster(object):
raise AssertionError, 'Timeout when starting cluster'
storage_node_list = neoctl.getNodeList(
node_type=NodeTypes.STORAGE)
if len(storage_node_list) == target_count:
# wait at least number of started storages, admin node can know
# more nodes when the cluster restart with an existing partition
# table referencing non-running nodes
if len(storage_node_list) >= target_count:
break
time.sleep(0.5)
neoctl.enableStorageList([x[2] for x in storage_node_list])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment