-
Notifications
You must be signed in to change notification settings - Fork 19
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
LXC driver failure: error setting network type configuration: setting config item for the container failed #16
Comments
We did some additional tests and downgraded lxc from Do you have any plans to support LXCv3? |
I changed this function from nomad-driver-lxc to always return |
Hi @yum-install-brains ! Thanks for reaching out. It's definitely a bug that current driver doesn't support LXC 3. In my brief testing, I verified that the published binary fails with the error you reported, but I succeed when I recompile the current Can you try using a recompiled version but without your modification to |
@yum-install-brains Thank you so much for reporting this again, it's a tricky one! - I reported the underlying issue to the lxc library we use: lxc/go-lxc#135 and will follow up there. |
At this point, I'd recommend folks to recompile their nomad-driver-lxc with the lxc version they are running against. We'd appreciate pull requests to workaround this issue - or we may address it when the upstream issue is addressed. |
Would it be possible to provide pre-built binaries at least for the most common LXC versions out there? For example 3.0.3 that ships with Ubuntu 18.04. I did try to compile the plugin myself but building go is quite a painful experience for someone who isn't a go developer. Your official instructions of Edit: |
Likely related to this bug in go-lxc |
Nomad version
Nomad v0.9.6 (1f8eddf2211d064b150f141c86e30d9fceabec89)
Operating system and Environment details
OS name and verison:
Kerner version:
LXC version
Issue
lxc-driver throws an error:
Driver Failure rpc error: code = Unknown desc = error setting network type configuration: setting config item for the container failed
Reproduction steps
sudo nomad agent -config server.hcl
sudo nomad agent -config client.hcl
nomad job run -address nomad-server:4646
And it will fail
The text was updated successfully, but these errors were encountered: