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 }}
This repository was archived by the owner on Nov 8, 2024. It is now read-only.
ii liblxc1 1:3.1.0+really3.0.4-2 amd64 Linux Containers userspace tools (library)
ii libpam-cgfs 1:3.1.0+really3.0.4-2 amd64 PAM module for managing cgroups for LXC
ii lxc 1:3.1.0+really3.0.4-2 amd64 Linux Containers userspace tools
ii lxcfs 3.0.4-2 amd64 FUSE based filesystem for LXC
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
Define server.hcl and run sudo nomad agent -config server.hcl
# Increase log verbosity
log_level = "DEBUG"
datacenter = "DC1"
# Setup data dir
data_dir = "/tmp/server1"
# Enable the server
server {
enabled = true
# Self-elect, should be 3 or 5 for production
bootstrap_expect = 1
}
Define client.hcl and run sudo nomad agent -config client.hcl
# Increase log verbosity
log_level = "DEBUG"
datacenter = "DC1"
# Setup data dir
data_dir = "/opt/nomad/data"
# Give the agent a unique name. Defaults to hostname
name = "nomad-agent"
# Enable the client
client {
enabled = true
# For demo assume we are talking to server1. For production,
# this should be like "nomad.service.consul:4647" and a system
# like Consul used for service discovery.
servers = ["nomad-server:4647"]
}
# Modify our port to avoid a collision with server1
ports {
http = 5656
}
plugin "nomad-driver-lxc" {
config {
enabled = true
lxc_path = "/var/lib/lxc"
}
}
ID = 3e12b0e1
Eval ID = a0f6d22d
Name = example-lxc.lxc4[0]
Node ID = 28751cda
Node Name = nomad-agent
Job ID = example-lxc
Job Version = 824638796448
Client Status = failed
Client Description = Failed tasks
Desired Status = run
Desired Description = <none>
Created = 12s ago
Modified = 8s ago
Reschedule Eligibility = 18s from now
Task "busybox" is "dead"
Task Resources
CPU Memory Disk Addresses
500 MHz 256 MiB 300 MiB
Task Events:
Started At = N/A
Finished At = 2019-10-14T15:30:59Z
Total Restarts = 0
Last Restart = N/A
Recent Events:
Time Type Description
2019-10-14T18:30:59+03:00 Killing Sent interrupt. Waiting 5s before force killing
2019-10-14T18:30:59+03:00 Not Restarting Error was unrecoverable
2019-10-14T18:30:59+03:00 Driver Failure rpc error: code = Unknown desc = error setting network type configuration: setting config item for the container failed
2019-10-14T18:30:58+03:00 Task Setup Building Task Directory
2019-10-14T18:30:58+03:00 Received Task received by client
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 failedReproduction steps
sudo nomad agent -config server.hclsudo nomad agent -config client.hclnomad job run -address nomad-server:4646
And it will fail