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

Inconsistent treatment of pods that are scheduled but pending #520

Open
kdelee opened this issue Jan 18, 2022 · 0 comments
Open

Inconsistent treatment of pods that are scheduled but pending #520

kdelee opened this issue Jan 18, 2022 · 0 comments

Comments

@kdelee
Copy link
Member

kdelee commented Jan 18, 2022

When submitting kubernetes work, at times a pod is created but not yet scheduled. This means the pod will not have all the containers started immediately. Most of the time receptor deals with this fine, showing the work status as Pending, which is the desired and correct behavior.

Occasionally I have seen the work unit end up in an Error state and have the error detail "Error creating pod: expected 1 container in pod but there were 0"
this means we are ending up in

return fmt.Errorf("expected 1 container in pod but there were %d", len(kw.pod.Status.ContainerStatuses))

I've found this when working on making awx respect more the state of the kubernetes work state for container group jobs in ansible/awx#11551

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants