Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

etc: change cgroup driver to cgroupfs #61

Merged
merged 1 commit into from
Jul 13, 2017

Conversation

dongsupark
Copy link
Member

With runc 1.0.0-rc2 on Container Linux 1465, kube-spawn init hangs forever with message like: "Created API client, waiting for the control plane to become ready". That's because docker daemon cannot execute runc, which returns error like "no subsystem for mount".
See also: opencontainers/runc#1175 (comment)

This issue was apparently resolved in runc 1.0.0-rc3, so in theory runc 1.0.0-rc3 should work fine with Docker 17.05. Unfortunately on Container Linux, it's not trivial to replace only the runc binary with a custom one, because Container Linux makes use of torcx to provide
docker as well as runc: /run/torcx/unpack is sealed, read-only mounted.

As workaround, we should change cgroupdriver for docker and kubelet from systemd to cgroupfs. Then init process will succeed without hanging forever.

See also #45

With runc 1.0.0-rc2 on Container Linux 1465, kube-spawn init hangs
forever with message like: "Created API client, waiting for the
control plane to become ready".
That's because docker daemon cannot execute runc, which returns error
like "no subsystem for mount". See also:
opencontainers/runc#1175 (comment)

This issue was apparently resolved in runc 1.0.0-rc3, so in theory
runc 1.0.0-rc3 should work fine with Docker 17.05. Unfortunately on
Container Linux, it's not trivial to replace only the runc binary with
a custom one, because Container Linux makes use of torcx to provide
docker as well as runc: /run/torcx/unpack is sealed, read-only mounted.

As workaround, we should change cgroupdriver for docker and kubelet
from systemd to cgroupfs. Then init process will succeed without hanging
forever.

See also #45
@dongsupark dongsupark added the bug label Jul 13, 2017
@dongsupark dongsupark self-assigned this Jul 13, 2017
@dongsupark dongsupark requested a review from robertgzr July 13, 2017 10:14
@dongsupark dongsupark added this to the 0.1.0 milestone Jul 13, 2017
Copy link
Contributor

@robertgzr robertgzr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@robertgzr robertgzr merged commit 53ca00a into master Jul 13, 2017
@schu schu deleted the dongsu/cgroupdriver-kubelet-docker branch July 13, 2017 15:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants