summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Eriksen <andreer@yahooinc.com>2023-05-23 11:17:12 +0200
committerAndreas Eriksen <andreer@yahooinc.com>2023-05-23 11:17:12 +0200
commit419f3db7c4ab310a42fd90f217bc5cf795061156 (patch)
tree1ddd76f0e77e7fc4cd007ea08fec4d6bae942ccf
parentcf522218d4f1b3e9c1a7a693a8957724f4e71d32 (diff)
ensure wireguard config is always updated
-rw-r--r--node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImpl.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImpl.java b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImpl.java
index 64efeb85e63..1ff1b5c8ffe 100644
--- a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImpl.java
+++ b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgentImpl.java
@@ -619,8 +619,10 @@ public class NodeAgentImpl implements NodeAgent {
} catch (OrchestratorException e) {
// Ensure the ACLs are up to date: The reason we're unable to suspend may be because some other
// node is unable to resume because the ACL rules of SOME Docker container is wrong...
+ // Same can happen with stale WireGuard config, so update that too
try {
aclMaintainer.ifPresent(maintainer -> maintainer.converge(context));
+ wireguardTasks.forEach(task -> getContainer(context).ifPresent(c -> task.converge(context, c.id())));
} catch (RuntimeException suppressed) {
logger.log(Level.WARNING, "Suppressing ACL update failure: " + suppressed);
e.addSuppressed(suppressed);