You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
extended network tests failing due to docker/image/something problems (again) #9599
@danwinship is there version drift between the host daemon and the DIND daemon? Isn't the runc stuff in Docker 1.11? I think our host is still on 1.10.3 -- not sure if this could be a source of errors.
looks like both sides are 1.10.3: the vagrant host has "docker-common-1.10.3-44.el7.x86_64" and the docker image has "docker-2:1.10.3-24.gitf476348.fc23.x86_64"
@marun how are we setting up cgroups in the container? Is it by bind mounting them, making the container privileged or mounting them inside with a script? It looks like this os failing as the container is defaulting to read only cgroups bind mounted from outside.
looks like both sides are 1.10.3: the vagrant host has "docker-common-1.10.3-44.el7.x86_64" and the docker image has "docker-2:1.10.3-24.gitf476348.fc23.x86_64"
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
@mrunalp I've traced the problem to oci-systemd-hook.x86_64 being installed on the host running the tests (thanks to @ncdc's gist of the package changes [1] for the new ami). The read-only cgroup mounting that was causing this issue is consistent with the container modification done by oci-systemd-hooks [2], and disabling the hook resulted in dind containers working again.
In the near term the dind deployment script can ensure that oci-systemd-hook is disabled before a test run, but I think it would be useful to allow the hook and dind to co-exist. They aren't compatible at present since nested docker cgroups must be rw. How would you suggest resolving this? Could a container advertise to oci-systemd-hooks that systemd fixup should not be done (e.g. via an env var like SKIP_OCI_HOOK=1)? Could a container hardlink init to something else (e.g. dind_init) and use that as the entrypoint to avoid triggering the hook? Or...?
@mrunalp I've traced the problem to oci-systemd-hook.x86_64 being installed on the host running the tests (thanks to @ncdc's gist of the package changes [1] for the new ami). The read-only cgroup mounting that was causing this issue is consistent with the container modification done by oci-systemd-hooks [2], and disabling the hook resulted in dind containers working again.
In the near term the dind deployment script can ensure that oci-systemd-hook is disabled before a test run, but I think it would be useful to allow the hook and dind to co-exist. They aren't compatible at present since nested docker cgroups must be rw. How would you suggest resolving this? Could a container advertise to oci-systemd-hooks that systemd fixup should not be done (e.g. via an env var like SKIP_OCI_HOOK=1)? Could a container hardlink init to something else (e.g. dind_init) and use that as the entrypoint to avoid triggering the hook? Or...?
Activity
runcom commentedon Jun 28, 2016
/cc @eparis @mrunalp
mrunalp commentedon Jun 28, 2016
From the error it looks like these tests are using docker in docker. can you confirm?
danwinship commentedon Jun 28, 2016
correct
stevekuznetsov commentedon Jun 28, 2016
@danwinship is there version drift between the host daemon and the DIND daemon? Isn't the runc stuff in Docker 1.11? I think our host is still on 1.10.3 -- not sure if this could be a source of errors.
mrunalp commentedon Jun 28, 2016
It expects to be able to write to cgroups in the container. Did we change anything in the setup?
Sent from my iPhone
danwinship commentedon Jun 28, 2016
looks like both sides are 1.10.3: the vagrant host has "docker-common-1.10.3-44.el7.x86_64" and the docker image has "docker-2:1.10.3-24.gitf476348.fc23.x86_64"
mrunalp commentedon Jun 28, 2016
@marun how are we setting up cgroups in the container? Is it by bind mounting them, making the container privileged or mounting them inside with a script? It looks like this os failing as the container is defaulting to read only cgroups bind mounted from outside.
Sent from my iPhone
marun commentedon Jun 28, 2016
@mrunalp dind has been relying on docker setting up cgroups with the correct permissions when the container is run with --privileged.
marun commentedon Jun 28, 2016
@mrunalp I've traced the problem to oci-systemd-hook.x86_64 being installed on the host running the tests (thanks to @ncdc's gist of the package changes [1] for the new ami). The read-only cgroup mounting that was causing this issue is consistent with the container modification done by oci-systemd-hooks [2], and disabling the hook resulted in dind containers working again.
In the near term the dind deployment script can ensure that oci-systemd-hook is disabled before a test run, but I think it would be useful to allow the hook and dind to co-exist. They aren't compatible at present since nested docker cgroups must be rw. How would you suggest resolving this? Could a container advertise to oci-systemd-hooks that systemd fixup should not be done (e.g. via an env var like SKIP_OCI_HOOK=1)? Could a container hardlink init to something else (e.g. dind_init) and use that as the entrypoint to avoid triggering the hook? Or...?
cc: @openshift/networking
1: https://gist.github.com/ncdc/d3777bf02ed042c30720d2880a0bd012
2: https://github.com/projectatomic/oci-systemd-hook#oci-systemd-hooks
mrunalp commentedon Jun 28, 2016
If hard linking works then that would be the simplest fix for now.