[skip e2e] Comment out the response log of cus get (#14990)

Signed-off-by: ThreadDao <yufen.zong@zilliz.com>
pull/15002/head
ThreadDao 2022-01-07 13:55:21 +08:00 committed by GitHub
parent 545ff88f9d
commit 39070ed341
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -83,7 +83,7 @@ class CustomResourceOperations(object):
api_response = api_instance.get_namespaced_custom_object(self.group, self.version,
self.namespace, self.plural,
name=metadata_name)
log.debug(f"get custom resource response: {api_response}")
# log.debug(f"get custom resource response: {api_response}")
except ApiException as e:
log.error("Exception when calling CustomObjectsApi->get_namespaced_custom_object: %s\n" % e)
raise Exception(str(e))

View File

@ -123,10 +123,13 @@ class MilvusOperator(object):
while time.time() < starttime + timeout:
time.sleep(10)
res_object = cus_res.get(release_name)
if res_object.get('status', None) is not None:
if 'Healthy' == res_object['status']['status']:
mic_status = res_object.get('status', None)
if mic_status is not None:
if 'Healthy' == mic_status.get('status'):
log.info(f"milvus healthy in {time.time() - starttime} seconds")
return True
else:
log.info(f"milvus status is: {mic_status.get('status')}")
log.info(f"end to check healthy until timeout {timeout}")
return False