Skip to content

Commit

Permalink
pod logs when startup fails
Browse files Browse the repository at this point in the history
  • Loading branch information
oseoin committed Jul 1, 2024
1 parent 3630ec0 commit c7d7b35
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/suite/utils/resources_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,13 @@ def wait_until_all_pods_are_ready(v1: CoreV1Api, namespace) -> None:
wait_before_test()
counter = counter + 1
if counter >= 300:
print("\n===================== IC Logs Start =====================")
try:
logs = kube_apis.v1.read_namespaced_pod_log(pod_name, "nginx-ingress")
print(logs)
except:
print("Failed to load logs for nginx-ingress pod")
print("\n===================== IC Logs End =====================")
raise PodNotReadyException()
print("All pods are Ready")

Expand Down

0 comments on commit c7d7b35

Please sign in to comment.