Skip to content

HACK make /sys/fs/cgroup a docker volume for dind - #9613

Closed
ncdc wants to merge 1 commit into
openshift:masterfrom
ncdc:dind-cgroup-volume
Closed

ncdc wants to merge 1 commit into
openshift:masterfrom
ncdc:dind-cgroup-volume

Conversation

@ncdc

@ncdc ncdc commented Jun 28, 2016

Copy link
Copy Markdown
Contributor

For some reason /sys/fs/cgroup/* is getting mounted read-only when running a dind cluster. This
makes it impossible to run any containers. Until we can figure out why this is happening, switch
/sys/fs/cgroup to be a docker volume, so it's read-write.

For some reason /sys/fs/cgroup/* is getting mounted read-only when running a dind cluster. This
makes it impossible to run any containers. Until we can figure out why this is happening, switch
/sys/fs/cgroup to be a docker volume, so it's read-write.
@ncdc

ncdc commented Jun 28, 2016

Copy link
Copy Markdown
Contributor Author

[testextended][extended:networking]

@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin testextended up to 8e87e18

@openshift-bot

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/testextended SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin_extended/251/) (Extended Tests: networking)

@ncdc ncdc changed the title [do not merge] HACK make /sys/fs/cgroup a docker volume for dind HACK make /sys/fs/cgroup a docker volume for dind Jun 28, 2016
@ncdc

ncdc commented Jun 28, 2016

Copy link
Copy Markdown
Contributor Author

@bparees @jwforres @mrunalp @smarterclayton @danmcp @pweil- @mfojtik @knobunc while I'd love to find out the real reason our networking extended tests started failing yesterday, this does seem to make the tests happy again.

Does anyone know if the openshift/dind image is used for anything other than testing?

@marun

marun commented Jun 28, 2016

Copy link
Copy Markdown
Contributor

@ncdc As per #9599, oci-systemd-hook was the problem. It was creating ro cgroup mounts without considering whether the container in question was running with --privileged.

openshift/dind is used by the networking team for multinode development and testing, it's not just for ci.

@mrunalp Can you explain why this fix appears to work? I thought cgroups had to be mounted from the host to ensure that changes could be seen by both the container and the host kernel.

cc: @openshift/networking

@marun

marun commented Jun 28, 2016

Copy link
Copy Markdown
Contributor

@ncdc I think #9620 would be a preferable fix.

@ncdc

ncdc commented Jun 29, 2016

Copy link
Copy Markdown
Contributor Author

Closing in favor of 9620

@ncdc ncdc closed this Jun 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants