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

Pods stuck in terminating state #39

Closed
radu-matei opened this issue Mar 13, 2024 · 6 comments · Fixed by #47
Closed

Pods stuck in terminating state #39

radu-matei opened this issue Mar 13, 2024 · 6 comments · Fixed by #47
Labels
bug Something isn't working

Comments

@radu-matei
Copy link
Member

On some Kubernetes distributions we are still experiencing pods being stuck in "Terminating" state.

#23 apparently was only half of the issue — the shim actually being able to handle SIGTERM; what we appear to experience is the shim not receiving the signal altogether, and that is currently being investigated in containerd/runwasi#418.

Filing this to track the fix in the Spin shim.

@Mossaka
Copy link
Member

Mossaka commented Mar 15, 2024

Follow up - we should add integraion tests on CI to test spin shim on k3s clusters

@Mossaka
Copy link
Member

Mossaka commented Mar 15, 2024

Follow up [Open Discussion]: when the shim ttrpc server panics / crashes, there should be a way to tell from containerd or shim logs?

@rajatjindal
Copy link
Member

Follow up - we should add integraion tests on CI to test spin shim on k3s clusters

will adding the steps I listed out to reproduce the issue here enough or we need it to be more involved?

I am happy to add those steps as a CI test here

@Mossaka
Copy link
Member

Mossaka commented Mar 15, 2024

@rajatjindal Yes, I was thinking about adding it as a CI step. Something similar to https://github.com/containerd/runwasi/blob/main/test/k3s/bootstrap.sh

@rajatjindal
Copy link
Member

Hi @Mossaka, thank you for the pointer.

can I take up the task to add tests for k3s?

re: ttrpc issue. given how critical that workflow is, I think we should have logging in the containerd logs. Also it would be nice to have a mechanism to healthcheck it and possibly restart automatically if possible.

@rajatjindal
Copy link
Member

In this draft PR, I've attempted to add a very simple test to exercise delete operation using the existing setup for integration tests.

One thing I could not decide on is to have a script for this or should this be added in rust integration tests suite? do we have any preference of doing one over the other?

It currenty fails as expected (pending fix for this issue being merged). An example run could be found here

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

Successfully merging a pull request may close this issue.

3 participants