From fd9368b57842b1cdea970d55c994e4073e856b03 Mon Sep 17 00:00:00 2001 From: alexandredevely <12896316+alexandredevely@users.noreply.github.com> Date: Thu, 24 Oct 2024 10:48:39 +0200 Subject: [PATCH] reduce log level in list_node --- oc/od/orchestrator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/oc/od/orchestrator.py b/oc/od/orchestrator.py index a8bccbe..5423dc1 100755 --- a/oc/od/orchestrator.py +++ b/oc/od/orchestrator.py @@ -2479,14 +2479,14 @@ def pullimage_on_all_nodes(self, app:dict): try: # query nodes listnode = self.kubeapi.list_node(label_selector=label_selector) - self.logger.info(f"pulling image on nodelist={listnode}") + # self.logger.debug(f"pulling image on nodelist={listnode}") except Exception as e: - self.logger.warning( f"Can not get list of nodes. {e}, service account can not get nodelist, check RoleBinding and ClusterRoleBinding" ) + self.logger.info( f"this is not an error can not get list of nodes. {e}, service account can not get nodelist, check RoleBinding and ClusterRoleBinding" ) if isinstance( listnode, V1NodeList ) and len(listnode.items) > 0: for node in listnode.items : if isinstance( node, V1Node): - self.logger.debug( f"pulling image on node={node.metadata.name}") + self.logger.info( f"pulling image on node={node.metadata.name}") pull = self.pullimage( app, node.metadata.name ) bReturn = pull and bReturn # return False if one error occurs else: