-
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
systemd start failure when nodes container restart #300
Conversation
use host cgroup for systemd initializing to avoid this failure Signed-off-by: Aoxn <yaoyao.aoxn@hotmail.com>
Welcome @aoxn! It looks like this is your first PR to kubernetes-sigs/kind 🎉 |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: aoxn If they are not already assigned, you can assign the PR to them by writing The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@aoxn: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Thanks for the PR but:
Note we are aware of https://www.freedesktop.org/wiki/Software/systemd/ContainerInterface (see the base image contents), but:
/hold |
on a related note we are adding strong assumptions in the CRI install docs, that systemd is used as the init system: |
@BenTheElder Thanks, Looking forward to this new feature! |
Introduction
systemd start failure when nodes container restart
use host cgroup for systemd initializing to avoid this failure
Problems
docker create a default cgroup mount for every node container instead of using host cgroup. systemd would start failure when nodes container restart (after SIGUSR1 was triggered) which due to some systemd cgroup behavior problems. Mount host cgroup to nodes container would resolve this problem, see
https://www.freedesktop.org/wiki/Software/systemd/ContainerInterface/
.Reproduce
root@kind-55-control-plane:/sys/fs/cgroup/unified# ps -eaf UID PID PPID C STIME TTY TIME CMD root 1 0 0 18:23 ? 00:00:00 /sbin/init root 13 0 0 18:23 pts/0 00:00:00 bash root 56 13 0 20:00 pts/0 00:00:00 ps -eaf
you would find systemd started without unit / service up.
Signed-off-by: Aoxn yaoyao.aoxn@hotmail.com