Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

concourse worker does not support cgroup v2 #5080

Open
drahnr opened this issue Jan 29, 2020 · 1 comment
Open

concourse worker does not support cgroup v2 #5080

drahnr opened this issue Jan 29, 2020 · 1 comment
Labels
bug

Comments

@drahnr
Copy link

@drahnr drahnr commented Jan 29, 2020

Bug Report

v2 linux namespaces are not compatible with concourse worker

Steps to Reproduce

Use a linux distribution which switched to namespaces v2.Try to run concourse. All containers (checks, tasks, ... ) fail to spawn.
See also:
https://discuss.concourse-ci.org/t/failing-workers-with-cgroup-already-being-mounted/1966/2

Expected Results

Either be warned about the issue or just work as per usual :)

Actual Results

Failing checks

Additional Context

Reproducible with Fedora 31 which changed the default namespaces from v1 to v2 .

Version Info

  • Concourse version: concourse 5.7.2
  • Deployment type (BOSH/Docker/binary): binary/worker, docker/web
  • Infrastructure/IaaS: Fedora 31
  • Browser (if applicable): firefox
  • Did this used to work? before there was a v2 namespace impl, yes
@drahnr drahnr added the bug label Jan 29, 2020
@cirocosta

This comment has been minimized.

Copy link
Member

@cirocosta cirocosta commented Jan 30, 2020

Hey @drahnr, thanks for reportting!

indeed, that's not something that the workers can deal with at the moment,
buuut, we have an ongoing track to leverage contanerd directly
(https://project.concourse-ci.org/projects/MDc6UHJvamVjdDMxNTcxMzE=), which, is
almost there to be able to completely leverage cgroupv2:
containerd/containerd#3726

in the mean time, it seems like we could at least let folks know how to get
around that in systems (like fedora) that are comming with cgroupv2 enabled by
default.

wdyt?

if so, do you have any good sources that we could points folks to to have
cgroupv1 rather than 2? thinking about a possible documentation snippet.

thanks!

@cirocosta cirocosta changed the title concourse worker cgroup already mounted with v2 namespaces concourse worker does not support cgroup v2 Jan 30, 2020
@cirocosta cirocosta added this to To do in containerd workers via automation Jan 30, 2020
@cirocosta cirocosta moved this from To do to End goals in containerd workers Jan 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
containerd workers
  
End goals
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.