Skip to content

Commit

Permalink
reduce log level in list_node
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandredevely committed Oct 24, 2024
1 parent 7338070 commit fd9368b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions oc/od/orchestrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit fd9368b

Please sign in to comment.