Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error PodNotAvailable not handled in proper way #1326

Open
2 tasks
shmykyta opened this issue Aug 3, 2023 · 0 comments
Open
2 tasks

Error PodNotAvailable not handled in proper way #1326

shmykyta opened this issue Aug 3, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@shmykyta
Copy link

shmykyta commented Aug 3, 2023

Describe the bug

In our test using function WaitUntilPodAvailableE and when we updated the library we that that enhancement what should clarify the issue why pod is failing or not ready is always return , and . in reason and message.

Current log:

Wait for pod sleeper to be provisioned. returned an error: Pod sleeper is not available, reason: , message: . Sleeping for 5s and will try again.

To Reproduce

Kuberenetes cluster version: 1.24
Lib version: v0.43.0

apiVersion: v1
kind: Pod
metadata:
  name: sleeper
  labels:
    app: sleeper
spec:
  containers:
    - name: sleeper
      image: ubuntu
      readinessProbe:
        exec:
          command:
            - /bin/sh
            - -c
            - !
            - sleep 100
        failureThreshold: 3
        initialDelaySeconds: 10
        periodSeconds: 10
        timeoutSeconds: 5
      command: [ "/bin/sh" ]
      args: [ "-c", "sleep 300" ]
k8s.WaitUntilPodAvailableE(t, options, podName, count, 5*time.Second)

Expected behavior

Proper error reason and message

Nice to have

  • Terminal output
  • Screenshots

Versions

  • Terratest version: v0.43.0
  • Kubernetes version: 1.24
  • Go version: 1.19

Additional informantin

PR with changes: #1223

@shmykyta shmykyta added the bug Something isn't working label Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant