修复 Kata VM 内 DinD 的 cgroup v2 nesting #131

Merged
panxiao81 merged 1 commits from fix/kata-dind-cgroup-nesting into main 2026-09-21 11:16:48 +00:00
Owner

变更

  • 通过 docker:dind 官方 entrypoint 启动 dockerd
  • 保留 Kata guest 所需的 /dev/kmsg 初始化
  • 补充 kind/systemd EUCLEAN 故障说明

根因

Pool 直接执行 dockerd,绕过了官方 dind wrapper 的 cgroup v2 nesting 初始化。Docker 子容器的 private cgroup namespace 因而成为 threaded,kind node 内 systemd 创建 init.scope 时返回 Structure needs cleaning。

验证

  • kubectl kustomize platform/sandbox-ci-runners
  • yamllint(仅既有长行 warning)
  • 合并部署后使用 self-hosted,vm-dev 运行真实 kind smoke。
## 变更 - 通过 docker:dind 官方 entrypoint 启动 dockerd - 保留 Kata guest 所需的 /dev/kmsg 初始化 - 补充 kind/systemd EUCLEAN 故障说明 ## 根因 Pool 直接执行 dockerd,绕过了官方 dind wrapper 的 cgroup v2 nesting 初始化。Docker 子容器的 private cgroup namespace 因而成为 threaded,kind node 内 systemd 创建 init.scope 时返回 Structure needs cleaning。 ## 验证 - kubectl kustomize platform/sandbox-ci-runners - yamllint(仅既有长行 warning) - 合并部署后使用 self-hosted,vm-dev 运行真实 kind smoke。
panxiao81 added 1 commit 2026-09-21 11:15:26 +00:00
fix: 恢复 Kata DinD cgroup 初始化
yaml / yaml (pull_request) Successful in 17s
834fdcb771
panxiao81 merged commit 56598d6c84 into main 2026-09-21 11:16:48 +00:00
panxiao81 deleted branch fix/kata-dind-cgroup-nesting 2026-09-21 11:16:48 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: panxiao81/homelab-infra#131