From ef54ff44a18e7a611b8b74131da270f7be61e64b Mon Sep 17 00:00:00 2001 From: Rui Cao Date: Mon, 18 Jan 2021 16:02:21 +0800 Subject: [PATCH] [Windows] Fix restart OVS issue Service ovs-vswitchd depends on service ovsdb-server. So the ovsdb-server service cannot be restarted directly when ovs-vswitchd is running. Signed-off-by: Rui Cao --- ci/jenkins/test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ci/jenkins/test.sh b/ci/jenkins/test.sh index cd439d4e5c0..cb21e682632 100755 --- a/ci/jenkins/test.sh +++ b/ci/jenkins/test.sh @@ -228,8 +228,8 @@ function deliver_antrea_windows { ssh -o StrictHostKeyChecking=no -n Administrator@${IP} "powershell stop-service kubelet" ssh -o StrictHostKeyChecking=no -n Administrator@${IP} "powershell restart-service docker" ssh -o StrictHostKeyChecking=no -n Administrator@${IP} "powershell start-service kubelet" - ssh -o StrictHostKeyChecking=no -n Administrator@${IP} "powershell restart-service ovsdb-server" - ssh -o StrictHostKeyChecking=no -n Administrator@${IP} "powershell restart-service ovs-vswitchd" + ssh -o StrictHostKeyChecking=no -n Administrator@${IP} "powershell start-service ovsdb-server" + ssh -o StrictHostKeyChecking=no -n Administrator@${IP} "powershell start-service ovs-vswitchd" echo "===== Use script to startup antrea agent =====" ssh -o StrictHostKeyChecking=no -n Administrator@${IP} "rm -rf /cygdrive/c/k/antrea && mkdir -p /cygdrive/c/k/antrea/bin && mkdir -p /cygdrive/c/k/antrea/etc && rm -rf /cygdrive/c/opt/cni/bin && mkdir -p /cygdrive/c/opt/cni/bin && mkdir -p /cygdrive/c/etc/cni/net.d" scp -o StrictHostKeyChecking=no -T $KUBECONFIG Administrator@${IP}:/cygdrive/c/k/config