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

Invalid cgroup-parent slice name #259

Open
fpoltronieri opened this issue Apr 11, 2023 · 1 comment
Open

Invalid cgroup-parent slice name #259

fpoltronieri opened this issue Apr 11, 2023 · 1 comment

Comments

@fpoltronieri
Copy link

I installed ContainerNet on Ubuntu 22.04 following the instructions for a Bare-metal installation (Option 1).
When running the example:
sudo python3 examples/containernet_example.py

I got the following error:
File "/usr/local/lib/python3.10/dist-packages/docker/[errors.py](http://errors.py/)", line 31, in create_api_error_from_http_exception raise cls(e, response=response, explanation=explanation) docker.errors.APIError: 400 Client Error: Bad Request ("cgroup-parent for systemd cgroup should be a valid slice named as "xxx.slice".

So, after digging a bit, I found out that ContainerNet was creating a cgroup-parent with an unsupported naming convention.
Changing the value of the cgroup-parent variable in containernet/mininet/node.py
from: /docker
to: docker.slice
fixed the error.

Could you please upload the main branch or do I need to create a merge request?

Bests,
Filippo

@Silaltrex
Copy link

Thank you, I've had the same issue since last week, and didn't really know how to fix it, your fix has worked well for me to !

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

No branches or pull requests

2 participants