From 89960aff6788fcc385ff8bf3e8c0e1ebf2edc6d8 Mon Sep 17 00:00:00 2001 From: andrewsykim Date: Tue, 3 Apr 2018 12:47:19 -0400 Subject: [PATCH] coreos/containeros: restart kops-configuration service after docker drop-in is loaded --- nodeup/pkg/model/docker.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nodeup/pkg/model/docker.go b/nodeup/pkg/model/docker.go index 203167d9a3..064802c5e8 100644 --- a/nodeup/pkg/model/docker.go +++ b/nodeup/pkg/model/docker.go @@ -725,6 +725,11 @@ func (b *DockerBuilder) buildContainerOSConfigurationDropIn(c *fi.ModelBuilderCo OnChangeExecute: [][]string{ {"systemctl", "daemon-reload"}, {"systemctl", "restart", "docker.service"}, + // We need to restart kops-configuration service since nodeup needs to load images + // into docker with the new overlay storage. Restart is on the background because + // kops-configuration is of type 'one-shot' so the restart command will wait for + // nodeup to finish executing + {"systemctl", "restart", "kops-configuration.service", "&"}, }, })