From eadacaf0585c236f7cb514355e24cb5881310c72 Mon Sep 17 00:00:00 2001 From: Yu-Ju Hong Date: Tue, 7 May 2019 17:17:34 -0700 Subject: [PATCH] GCE/Windows: ignore stopping errors for stackdriver --- cluster/gce/windows/k8s-node-setup.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster/gce/windows/k8s-node-setup.psm1 b/cluster/gce/windows/k8s-node-setup.psm1 index 832c1560f39..b866f71cfc9 100644 --- a/cluster/gce/windows/k8s-node-setup.psm1 +++ b/cluster/gce/windows/k8s-node-setup.psm1 @@ -1084,7 +1084,7 @@ $STACKDRIVER_ROOT = 'C:\Program Files (x86)\Stackdriver' # `Restart-Service StackdriverLogging` may fail because StackdriverLogging # sometimes is unstoppable, so we work around it by killing the processes. function Restart-StackdriverLoggingAgent { - Stop-Service -NoWait StackdriverLogging + Stop-Service -NoWait -ErrorAction Ignore StackdriverLogging # TODO: check periodically to lower the wait time Start-Sleep 10 if ((Get-service StackdriverLogging).Status -ne 'Stopped') {