From d7677afedd07e0626014360c4955201aa5d56aba Mon Sep 17 00:00:00 2001 From: Jeffrey Clark Date: Fri, 17 Jun 2022 14:54:55 -0500 Subject: [PATCH 1/2] cni: add loopback to linux bridge 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 --- client/allocrunner/networking_bridge_linux.go | 3 +++ 1 file changed, 3 insertions(+) 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", From 2063569351077ceac3ebf2d40897f9ee5c512712 Mon Sep 17 00:00:00 2001 From: Tim Gross Date: Mon, 20 Jun 2022 11:04:30 -0400 Subject: [PATCH 2/2] changelog entry --- .changelog/13428.txt | 3 +++ 1 file changed, 3 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 +```