From eff2c01c1b0d0051af6ae5d2e6d7052498dc1698 Mon Sep 17 00:00:00 2001 From: Jeffrey Clark Date: Mon, 20 Jun 2022 10:22:53 -0500 Subject: [PATCH] cni: add loopback to linux bridge (#13428) CNI changed how to bring up the interface in v0.2.0. Support was moved to a new loopback plugin. https://github.com/containernetworking/cni/pull/121 Fixes #10014 --- .changelog/13428.txt | 3 +++ client/allocrunner/networking_bridge_linux.go | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 .changelog/13428.txt diff --git a/.changelog/13428.txt b/.changelog/13428.txt new file mode 100644 index 00000000000..70203bdbc71 --- /dev/null +++ b/.changelog/13428.txt @@ -0,0 +1,3 @@ +```release-note:bug +cni: Fixed a bug where loopback address was not set for all drivers +``` diff --git a/client/allocrunner/networking_bridge_linux.go b/client/allocrunner/networking_bridge_linux.go index 1c331bddd22..732dd85a783 100644 --- a/client/allocrunner/networking_bridge_linux.go +++ b/client/allocrunner/networking_bridge_linux.go @@ -142,6 +142,9 @@ const nomadCNIConfigTemplate = `{ "cniVersion": "0.4.0", "name": "nomad", "plugins": [ + { + "type": "loopback" + }, { "type": "bridge", "bridge": "%s",