Skip to content

Commit 96863f9

Browse files
Merge pull request #11617 from kubernetes/revert-11561-ilyaz/fix_ctrd
Revert "Restore "containerd: upgrade io.containerd.runtime.v1.linux to io.containerd.runc.v2 (suppot cgroup v2)""
2 parents 17a0473 + e37f4e4 commit 96863f9

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed

pkg/minikube/cruntime/containerd.go

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ const (
4949
containerdConfigTemplate = `root = "/var/lib/containerd"
5050
state = "/run/containerd"
5151
oom_score = 0
52+
5253
[grpc]
5354
address = "/run/containerd/containerd.sock"
5455
uid = 0
@@ -78,21 +79,16 @@ oom_score = 0
7879
enable_selinux = false
7980
sandbox_image = "{{ .PodInfraContainerImage }}"
8081
stats_collect_period = 10
82+
systemd_cgroup = {{ .SystemdCgroup }}
8183
enable_tls_streaming = false
8284
max_container_log_line_size = 16384
83-
84-
[plugins."io.containerd.grpc.v1.cri"]
85-
[plugins."io.containerd.grpc.v1.cri".containerd]
86-
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes]
87-
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
88-
runtime_type = "io.containerd.runc.v2"
89-
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
90-
SystemdCgroup = {{ .SystemdCgroup }}
91-
9285
[plugins.cri.containerd]
9386
snapshotter = "overlayfs"
87+
no_pivot = true
9488
[plugins.cri.containerd.default_runtime]
95-
runtime_type = "io.containerd.runc.v2"
89+
runtime_type = "io.containerd.runtime.v1.linux"
90+
runtime_engine = ""
91+
runtime_root = ""
9692
[plugins.cri.containerd.untrusted_workload_runtime]
9793
runtime_type = ""
9894
runtime_engine = ""
@@ -111,6 +107,12 @@ oom_score = 0
111107
{{ end -}}
112108
[plugins.diff-service]
113109
default = ["walking"]
110+
[plugins.linux]
111+
shim = "containerd-shim"
112+
runtime = "runc"
113+
runtime_root = ""
114+
no_shim = false
115+
shim_debug = false
114116
[plugins.scheduler]
115117
pause_threshold = 0.02
116118
deletion_threshold = 0

test/integration/docker_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func validateContainerdSystemd(ctx context.Context, t *testing.T, profile string
114114
if err != nil {
115115
t.Errorf("failed to get docker cgroup driver. args %q: %v", rr.Command(), err)
116116
}
117-
if !strings.Contains(rr.Output(), "SystemdCgroup = true") {
117+
if !strings.Contains(rr.Output(), "systemd_cgroup = true") {
118118
t.Fatalf("expected systemd cgroup driver, got: %v", rr.Output())
119119
}
120120
}

test/integration/status_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func TestInsufficientStorage(t *testing.T) {
6565
verifyClusterState(t, stdout)
6666
}
6767

68-
// runStatusCmd runs the status command expecting non-zero exit code and returns stdout
68+
// runStatusCmd runs the status command and returns stdout
6969
func runStatusCmd(ctx context.Context, t *testing.T, profile string, increaseEnv bool) []byte {
7070
// make sure minikube status shows insufficient storage
7171
c := exec.CommandContext(ctx, Target(), "status", "-p", profile, "--output=json", "--layout=cluster")
@@ -76,7 +76,7 @@ func runStatusCmd(ctx context.Context, t *testing.T, profile string, increaseEnv
7676
rr, err := Run(t, c)
7777
// status exits non-0 if status isn't Running
7878
if err == nil {
79-
t.Fatalf("expected command to fail, but it succeeded: %v", rr.Command())
79+
t.Fatalf("expected command to fail, but it succeeded: %v\n%v", rr.Command(), err)
8080
}
8181
return rr.Stdout.Bytes()
8282
}

0 commit comments

Comments
 (0)