[skip e2e]Refine wait_pods_ready function (#14544)

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
pull/14542/merge
zhuwenxing 2021-12-29 20:58:37 +08:00 committed by GitHub
parent 28b0189de8
commit 639137a45d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -36,6 +36,9 @@ def wait_pods_ready(namespace, label_selector, expected_num=None, timeout=360):
all_pos_ready_flag = False
else:
for item in api_response.items:
if item.status.phase != 'Running':
all_pos_ready_flag = False
break
for c in item.status.container_statuses:
log.info(f"{c.name} status is {c.ready}")
if c.ready is False: