You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when you use k8s.WaitUntilPodAvailable() and your pod fails to start because of a container failing you get an output like:
2023-03-02T09:35:04Z retry.go:91: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned.
2023-03-02T09:35:04Z client.go:42: Configuring Kubernetes client using config file /root/.kube/kind-kuma-2-config with context
2023-03-02T09:35:04Z retry.go:103: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned. returned an error: Pod test-server-57d5fdcbc8-tt2cq is not available, reason: , message: . Sleeping for 3s and will try again.
2023-03-02T09:35:07Z retry.go:91: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned.
2023-03-02T09:35:07Z client.go:42: Configuring Kubernetes client using config file /root/.kube/kind-kuma-2-config with context
2023-03-02T09:35:07Z retry.go:103: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned. returned an error: Pod test-server-57d5fdcbc8-tt2cq is not available, reason: , message: . Sleeping for 3s and will try again.
2023-03-02T09:35:10Z retry.go:91: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned.
2023-03-02T09:35:10Z client.go:42: Configuring Kubernetes client using config file /root/.kube/kind-kuma-2-config with context
2023-03-02T09:35:10Z retry.go:103: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned. returned an error: Pod test-server-57d5fdcbc8-tt2cq is not available, reason: , message: . Sleeping for 3s and will try again.
2023-03-02T09:35:13Z retry.go:91: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned.
2023-03-02T09:35:13Z client.go:42: Configuring Kubernetes client using config file /root/.kube/kind-kuma-2-config with context
2023-03-02T09:35:13Z retry.go:103: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned. returned an error: Pod test-server-57d5fdcbc8-tt2cq is not available, reason: , message: . Sleeping for 3s and will try again.
2023-03-02T09:35:16Z retry.go:91: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned.
2023-03-02T09:35:16Z client.go:42: Configuring Kubernetes client using config file /root/.kube/kind-kuma-2-config with context
2023-03-02T09:35:16Z retry.go:103: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned. returned an error: Pod test-server-57d5fdcbc8-tt2cq is not available, reason: , message: . Sleeping for 3s and will try again.
2023-03-02T09:35:19Z retry.go:91: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned.
2023-03-02T09:35:19Z client.go:42: Configuring Kubernetes client using config file /root/.kube/kind-kuma-2-config with context
2023-03-02T09:35:19Z retry.go:103: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned. returned an error: Pod test-server-57d5fdcbc8-tt2cq is not available, reason: , message: . Sleeping for 3s and will try again.
2023-03-02T09:35:22Z retry.go:91: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned.
2023-03-02T09:35:22Z client.go:42: Configuring Kubernetes client using config file /root/.kube/kind-kuma-2-config with context
2023-03-02T09:35:22Z retry.go:103: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned. returned an error: Pod test-server-57d5fdcbc8-tt2cq is not available, reason: , message: . Sleeping for 3s and will try again.
2023-03-02T09:35:25Z retry.go:91: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned.
2023-03-02T09:35:25Z client.go:42: Configuring Kubernetes client using config file /root/.kube/kind-kuma-2-config with context
2023-03-02T09:35:25Z retry.go:103: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned. returned an error: Pod test-server-57d5fdcbc8-tt2cq is not available, reason: , message: . Sleeping for 3s and will try again.
2023-03-02T09:35:28Z retry.go:91: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned.
2023-03-02T09:35:28Z client.go:42: Configuring Kubernetes client using config file /root/.kube/kind-kuma-2-config with context
2023-03-02T09:35:28Z retry.go:103: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned. returned an error: Pod test-server-57d5fdcbc8-tt2cq is not available, reason: , message: . Sleeping for 3s and will try again.
2023-03-02T09:35:31Z retry.go:91: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned.
2023-03-02T09:35:31Z client.go:42: Configuring Kubernetes client using config file /root/.kube/kind-kuma-2-config with context
2023-03-02T09:35:31Z retry.go:103: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned. returned an error: Pod test-server-57d5fdcbc8-tt2cq is not available, reason: , message: . Sleeping for 3s and will try again.
2023-03-02T09:35:34Z retry.go:91: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned.
2023-03-02T09:35:34Z client.go:42: Configuring Kubernetes client using config file /root/.kube/kind-kuma-2-config with context
2023-03-02T09:35:34Z retry.go:103: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned. returned an error: Pod test-server-57d5fdcbc8-tt2cq is not available, reason: , message: . Sleeping for 3s and will try again.
2023-03-02T09:35:37Z retry.go:91: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned.
2023-03-02T09:35:37Z client.go:42: Configuring Kubernetes client using config file /root/.kube/kind-kuma-2-config with context
2023-03-02T09:35:37Z retry.go:103: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned. returned an error: Pod test-server-57d5fdcbc8-tt2cq is not available, reason: , message: . Sleeping for 3s and will try again.
2023-03-02T09:35:40Z retry.go:91: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned.
2023-03-02T09:35:40Z client.go:42: Configuring Kubernetes client using config file /root/.kube/kind-kuma-2-config with context
2023-03-02T09:35:40Z retry.go:103: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned. returned an error: Pod test-server-57d5fdcbc8-tt2cq is not available, reason: , message: . Sleeping for 3s and will try again.
2023-03-02T09:35:43Z retry.go:91: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned.
2023-03-02T09:35:43Z client.go:42: Configuring Kubernetes client using config file /root/.kube/kind-kuma-2-config with context
2023-03-02T09:35:43Z retry.go:103: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned. returned an error: Pod test-server-57d5fdcbc8-tt2cq is not available, reason: , message: . Sleeping for 3s and will try again.
2023-03-02T09:35:46Z retry.go:91: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned.
2023-03-02T09:35:46Z client.go:42: Configuring Kubernetes client using config file /root/.kube/kind-kuma-2-config with context
2023-03-02T09:35:46Z retry.go:103: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned. returned an error: Pod test-server-57d5fdcbc8-tt2cq is not available, reason: , message: . Sleeping for 3s and will try again.
2023-03-02T09:35:49Z retry.go:91: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned.
2023-03-02T09:35:49Z client.go:42: Configuring Kubernetes client using config file /root/.kube/kind-kuma-2-config with context
2023-03-02T09:35:49Z retry.go:103: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned. returned an error: Pod test-server-57d5fdcbc8-tt2cq is not available, reason: , message: . Sleeping for 3s and will try again.
2023-03-02T09:35:52Z retry.go:91: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned.
2023-03-02T09:35:52Z client.go:42: Configuring Kubernetes client using config file /root/.kube/kind-kuma-2-config with context
2023-03-02T09:35:52Z retry.go:103: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned. returned an error: Pod test-server-57d5fdcbc8-tt2cq is not available, reason: , message: . Sleeping for 3s and will try again.
2023-03-02T09:35:55Z retry.go:91: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned.
2023-03-02T09:35:55Z client.go:42: Configuring Kubernetes client using config file /root/.kube/kind-kuma-2-config with context
2023-03-02T09:35:55Z retry.go:103: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned. returned an error: Pod test-server-57d5fdcbc8-tt2cq is not available, reason: , message: . Sleeping for 3s and will try again.
2023-03-02T09:35:58Z retry.go:91: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned.
2023-03-02T09:35:58Z client.go:42: Configuring Kubernetes client using config file /root/.kube/kind-kuma-2-config with context
2023-03-02T09:35:58Z retry.go:103: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned. returned an error: Pod test-server-57d5fdcbc8-tt2cq is not available, reason: , message: . Sleeping for 3s and will try again.
2023-03-02T09:36:01Z retry.go:91: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned.
2023-03-02T09:36:01Z client.go:42: Configuring Kubernetes client using config file /root/.kube/kind-kuma-2-config with context
2023-03-02T09:36:01Z retry.go:103: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned. returned an error: Pod test-server-57d5fdcbc8-tt2cq is not available, reason: , message: . Sleeping for 3s and will try again.
2023-03-02T09:36:04Z retry.go:91: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned.
2023-03-02T09:36:04Z client.go:42: Configuring Kubernetes client using config file /root/.kube/kind-kuma-2-config with context
2023-03-02T09:36:04Z retry.go:103: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned. returned an error: Pod test-server-57d5fdcbc8-tt2cq is not available, reason: , message: . Sleeping for 3s and will try again.
2023-03-02T09:36:07Z retry.go:91: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned.
2023-03-02T09:36:07Z client.go:42: Configuring Kubernetes client using config file /root/.kube/kind-kuma-2-config with context
2023-03-02T09:36:07Z retry.go:103: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned. returned an error: Pod test-server-57d5fdcbc8-tt2cq is not available, reason: , message: . Sleeping for 3s and will try again.
2023-03-02T09:36:10Z retry.go:91: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned.
2023-03-02T09:36:10Z client.go:42: Configuring Kubernetes client using config file /root/.kube/kind-kuma-2-config with context
2023-03-02T09:36:10Z retry.go:103: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned. returned an error: Pod test-server-57d5fdcbc8-tt2cq is not available, reason: , message: . Sleeping for 3s and will try again.
2023-03-02T09:36:13Z retry.go:91: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned.
2023-03-02T09:36:13Z client.go:42: Configuring Kubernetes client using config file /root/.kube/kind-kuma-2-config with context
2023-03-02T09:36:13Z retry.go:103: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned. returned an error: Pod test-server-57d5fdcbc8-tt2cq is not available, reason: , message: . Sleeping for 3s and will try again.
2023-03-02T09:36:16Z retry.go:91: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned.
2023-03-02T09:36:16Z client.go:42: Configuring Kubernetes client using config file /root/.kube/kind-kuma-2-config with context
2023-03-02T09:36:16Z retry.go:103: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned. returned an error: Pod test-server-57d5fdcbc8-tt2cq is not available, reason: , message: . Sleeping for 3s and will try again.
2023-03-02T09:36:19Z retry.go:91: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned.
2023-03-02T09:36:19Z client.go:42: Configuring Kubernetes client using config file /root/.kube/kind-kuma-2-config with context
2023-03-02T09:36:19Z retry.go:103: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned. returned an error: Pod test-server-57d5fdcbc8-tt2cq is not available, reason: , message: . Sleeping for 3s and will try again.
2023-03-02T09:36:22Z retry.go:91: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned.
2023-03-02T09:36:22Z client.go:42: Configuring Kubernetes client using config file /root/.kube/kind-kuma-2-config with context
2023-03-02T09:36:22Z retry.go:103: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned. returned an error: Pod test-server-57d5fdcbc8-tt2cq is not available, reason: , message: . Sleeping for 3s and will try again.
2023-03-02T09:36:25Z retry.go:91: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned.
2023-03-02T09:36:25Z client.go:42: Configuring Kubernetes client using config file /root/.kube/kind-kuma-2-config with context
2023-03-02T09:36:25Z retry.go:103: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned. returned an error: Pod test-server-57d5fdcbc8-tt2cq is not available, reason: , message: . Sleeping for 3s and will try again.
2023-03-02T09:36:28Z retry.go:91: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned.
2023-03-02T09:36:28Z client.go:42: Configuring Kubernetes client using config file /root/.kube/kind-kuma-2-config with context
2023-03-02T09:36:28Z retry.go:103: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned. returned an error: Pod test-server-57d5fdcbc8-tt2cq is not available, reason: , message: . Sleeping for 3s and will try again.
2023-03-02T09:36:31Z retry.go:91: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned.
2023-03-02T09:36:31Z client.go:42: Configuring Kubernetes client using config file /root/.kube/kind-kuma-2-config with context
2023-03-02T09:36:31Z retry.go:103: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned. returned an error: Pod test-server-57d5fdcbc8-tt2cq is not available, reason: , message: . Sleeping for 3s and will try again.
2023-03-02T09:36:34Z retry.go:91: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned.
2023-03-02T09:36:34Z client.go:42: Configuring Kubernetes client using config file /root/.kube/kind-kuma-2-config with context
2023-03-02T09:36:34Z retry.go:103: Wait for pod test-server-57d5fdcbc8-tt2cq to be provisioned. returned an error: Pod test-server-57d5fdcbc8-tt2cq is not available, reason: , message: . Sleeping for 3s and will try again.
It would be nice to:
Get the conditions of the pod
If the pod.Status.Phase == running dump the logs of the default container.
The text was updated successfully, but these errors were encountered:
lahabana
added a commit
to lahabana/terratest
that referenced
this issue
Mar 2, 2023
Currently when you use
k8s.WaitUntilPodAvailable()
and your pod fails to start because of a container failing you get an output like:It would be nice to:
The text was updated successfully, but these errors were encountered: