8000 stage1: disabling cgroup namespace in systemd-nspawn by alepuccetti · Pull Request #2989 · rkt/rkt · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Feb 24, 2020. It is now read-only.

stage1: disabling cgroup namespace in systemd-nspawn #2989

Merged
merged 1 commit into from
Jul 27, 2016

Conversation

alepuccetti
Copy link
Contributor
@alepuccetti alepuccetti commented Jul 27, 2016

If the kernel has the cgroup namespace enabled, systemd v232 will use it
by default. This was introduced by systemd/systemd#3809
and it will cause problems in rkt when cgns is enabled and cgroup-v1 is used.
For more information see systemd/systemd#3589 (comment).
This patch tells systemd-nspawn not to use cgroup namespace using
the environment variable introduced by systemd/systemd#3809.

@alepuccetti alepuccetti force-pushed the alessandro/nspawn-use-cgns branch 2 times, most recently from af161b6 to 1520ad8 Compare July 27, 2016 12:25
// This was introduced by https://github.com/systemd/systemd/pull/3809 and it will cause
// problems in rkt when cgns is enabled and cgroup-v1 is used. For more information see
// https://github.com/systemd/systemd/pull/3589#discussion_r70277625.
// This patch tells systemd-nspawn not to use cgroup namespace using the environment variable
Copy link
Member

Choose a reason for hiding this comment

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

s/This patch/The following line/?

@alban alban added this to the v1.12.0 milestone Jul 27, 2016
@alban
Copy link
Member
alban commented Jul 27, 2016

One nit, LGTM if green otherwise.

@iaguis it fixed the issue in your test, right?

If the kernel has the cgroup namespace enabled, systemd v232 will use it
by default. This was introduced by systemd/systemd#3809
and it will cause problems in rkt when cgns is enabled and cgroup-v1 is used.
For more information see systemd/systemd#3589 (comment).
This patch tells systemd-nspawn not to use cgroup namespace using
the environment variable introduced by systemd/systemd#3809.
@alepuccetti alepuccetti force-pushed the alessandro/nspawn-use-cgns branch from 1520ad8 to 8fcb19a Compare July 27, 2016 12:30
@iaguis
Copy link
Member
iaguis commented Jul 27, 2016

@iaguis it fixed the issue in your test, right?

Yes.

For context, flavor src-master was failing on TestAppIsolatorCPU.

When testing with this patch the failure was gone.

@iaguis
Copy link
Member
iaguis commented Jul 27, 2016

There's a weird timeout on Fedora 24, it seems the tests hanged on TestMissingOrInvalidOSArchRun until they timed out.

12:55:24 === RUN   TestMissingOrInvalidOSArchRun
13:40:59 panic: test timed out after 1h0m0s

It doesn't seem related to this change.

@iaguis iaguis merged commit 18e7091 into rkt:master Jul 27, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0