-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Podman Restart Kind But SIGKILL
may occur
#3325
Comments
SIGKILL
may occur
SIGKILL
may occurSIGKILL
may occur
Why do you think this is a kind bug? We not only don't advertise support for |
#2272 is the existing tracking issue for podman restart support. |
I guess that it is possible that the I noticed that it always spends about 90 seconds to restart the kind container every time if the restart action does not finish in 10 seconds. I am just wondering why and how this happends. I have checked out the source code of podman and containerd and kind and kubeadm, and i did not find where |
podman should not be sending sigkill, the exit signal is configured for the container and cannot be sigkill. the process is systemd, which we can't control and must be PID1 and expects a different signal, which we configure in the image metadata |
Lines 231 to 233 in 80a64d9
|
As I am getting the same delay - let me rephrase the issue. The configured StopSignal is honored, so the signal 37 is used to get the container down but the service in the container (that is in the scope of kind), is just taking (for some reason) his long time to shutdown.
kind could when creating the kind-control-plane container with podman use "podman create --stop-timeout=120" to alter the default timeout for stopping (stop process: use SIGTERM or configured StopSignal -> timeout -> SIGKILL). Better would be to find the root cause of the delay but I'm not there yet ... |
What happened:
I have modified the config files like this issue (#3071) to avoid the effect of inner IP changing , So the kind in podman can restart successfully.
But I found there's some probability that
podman restart
will end with the signal sending ofSIGKILL
. The default timeout setting ofpodman restart
is 10 seconds. And ifSIGKILL
occurs, the kind container can not work normally, for example, it will get error bykubectl get pods
.And if the restart of kind cotnainer finishes in time, the kind container will work successfully in less than 10 seconds, there is no
SIGKILL
shown in the following figure, it got no error bykubectl get pods
.Finally, If setting timeout of
podman restart
to 120 seconds, i found it would spend 90 seconds to finish the restart action if the action did not complete in 10 seconds.What you expected to happen:
The restart action can complete in 10 seconds.
How to reproduce it (as minimally and precisely as possible):
kind create cluster
and then podman restratthe id of kind container
Anything else we need to know?:
Environment:
kind version
):kind version 0.17.0
kindest/node:v1.26.2
docker info
orpodman info
):/etc/os-release
):kubectl version
):None
The text was updated successfully, but these errors were encountered: