-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Change cgroup driver from cgroupfs to systemd #6651
Conversation
The minikube iso is using systemd, so change the container runtime to use the same cgroup manager instead of the default (cgroupfs). Avoids kubeadm init message: [WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd". Also change the configuration for the containerd and cri-o runtimes.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: afbjorklund 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 |
/ok-to-test |
Error: running mkcmp: exit status 1 |
Seems like the crio restart is taking a really long time to complete. Two minutes, just for the restart ?
|
Apparently systemd thinks that the network is offline, and crio service depends on it.
So we are hitting a 120 second systemd timeout, before it gives up on the service... static bool arg_quiet = false;
static usec_t arg_timeout = 120 * USEC_PER_SEC; |
Apparently systemd is either buggy, or needs to be informed better about $ sudo networkctl
IDX LINK TYPE OPERATIONAL SETUP
1 lo loopback carrier unmanaged
2 eth0 ether [[0;1;32mroutable [[0m [[0;1;33mconfig
uring[[0m
3 eth1 ether [[0;1;32mroutable [[0m [[0;1;33mconfig
uring[[0m
4 sit0 sit off unmanaged
5 mybridge bridge [[0;1;32mroutable [[0m unmanaged
6 veth11d292ea ether carrier unmanaged
7 vethf775b924 ether carrier unmanaged Possibly related to not liking the DHCP server much:
Possible workarounds: systemd/systemd#5154 |
Opened #6655 about the startup being slow, I think that was the reason for the test failures ? |
@afbjorklund the kic docker tests are 70 min. They usually run in 20 min. In podman also we explicitly specify the cgroups to be cgroups. Does that mean we need to keep separate logic for vm and contrainers? Could we make everything use same type of cgroups? |
As far as I know, kubernetes recommends using the same cgroup manager as the host OS. Knee deep in systemd bugs already, even before it was trying to run inside a container. |
I wonder if there is a correlation between his PR and the docker tests running in 70 minutes (more than 3 times than normal times which is 20 mins) |
@medyagh : note that this PR only changes deploy/iso/minikube-iso |
@medyagh : did you find the issue for the slowdown ? probably not anything on the ISO, right ? For me it seems like the "CI / docker_*" and "CI / podman_*" tests are always failing (timeout) |
The minikube iso is using systemd, so change the container runtime
to use the same cgroup manager instead of the default (cgroupfs).
Avoids kubeadm init message:
Also change the configuration for the containerd and cri-o runtimes.
Closes #4770