I’m having some trouble getting Nomad to reference the CNI plugins from the Debian 12 packages. The Debian 12 packages drop the CNI plugins in /usr/lib/cni:
$ dpkg -L containernetworking-plugins | grep loopback
/usr/lib/cni/loopback
and so I have a plugin config directive in /etc/nomad.d/nomad.hcl:
plugin "cni" {
directory = "/usr/lib/cni"
}
however after a restart I’m getting log messages like so:
... msg="failed to setup alloc: pre-run hook \"network\" failed: failed to configure networking for alloc: failed to configure network: plugin type=\"loopback\" failed (add): failed to find plugin \"loopback\" in path [/opt/cni/bin]" failed=true
which seems to suggest that Nomad is still looking for CNI in /opt/cni/bin.