Skip to content

Commit

Permalink
health
Browse files Browse the repository at this point in the history
  • Loading branch information
NotChristianGarcia committed Oct 29, 2024
1 parent c25e7c1 commit 989d82c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions service/health.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def graceful_rm_pod(pod, log=None):

return rm_pod(pod.k8_name)
except Exception as e:
logger.error(f"Failed to gracefully remove pod {pod.k8_name}: {e}")
logger.error(f"Failed to gracefully remove pod {pod.k8_name}")
raise

def graceful_rm_volume(volume):
Expand All @@ -119,8 +119,9 @@ def graceful_rm_volume(volume):

return rm_volume(volume.k8_name)
except Exception as e:
logger.error(f"Failed to gracefully remove volume {volume.k8_name}: {e}")
logger.error(f"Failed to gracefully remove volume {volume.k8_name}")
raise

def check_k8_pods(k8_pods):
"""
Check the health of Kubernetes pods.
Expand Down
3 changes: 2 additions & 1 deletion service/models_pods.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,8 @@ def check_template(cls, values):
template = values.get('template')
tenant_id = values.get('tenant_id')
site_id = values.get('site_id')

logger.debug(f"top of PodBaseFull.check_template() with template: {template}, tenant_id: {tenant_id}, site_id: {site_id}")

if template is not None and tenant_id is not None and site_id is not None:
logger.debug(f"top of PodBaseFull.check_template() with template: {template}, tenant_id: {tenant_id}, site_id: {site_id}")
template_name_str, template, template_tag = derive_template_info(template, tenant_id, site_id)
Expand Down

0 comments on commit 989d82c

Please sign in to comment.