Skip to content

Commit

Permalink
[Windows] Fix restart OVS service issue (#1756)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
ruicao93 authored Jan 18, 2021
1 parent 30ba724 commit 741ad6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/jenkins/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 741ad6d

Please sign in to comment.