mirror of https://github.com/milvus-io/milvus.git
[skip e2e] Comment out the response log of cus get (#14990)
Signed-off-by: ThreadDao <yufen.zong@zilliz.com>pull/15002/head
parent
545ff88f9d
commit
39070ed341
|
@ -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))
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue