diff options
-rw-r--r-- | deploy/tempest.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/deploy/tempest.py b/deploy/tempest.py index 0c48d778..e403cd2f 100644 --- a/deploy/tempest.py +++ b/deploy/tempest.py @@ -164,13 +164,16 @@ def install_os_for_vm_step2(cluster_id, client): def discover_host(hosts_name, client): - while True: + retry = 90 + while retry: hosts_info = get_hosts(client) if len(hosts_info) == len(hosts_name): print('discover hosts success!') - break + return else: time.sleep(10) + retry = retry - 1 + err_exit('Failed to discover hosts') def update_network(cluster_id, network_map, client): |