Skip to content

Commit

Permalink
Update cleanup.sh
Browse files Browse the repository at this point in the history
Fix Error from server(BadRequest): pod ovs-ovn-xxxxx does not have a host assigned
  • Loading branch information
Yan Wei committed Feb 11, 2021
1 parent 9faaff5 commit d32b423
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/images/cleanup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ kubectl delete deployment ovn-central kube-ovn-controller -n kube-system --ignor
for ovsstatus in $(kubectl get pod --no-headers -n kube-system -lapp=ovs | awk '{print $1"+"$3}')
do
status=`echo ${ovsstatus#*+}`
if [ "status" = "Running" ]; then
if [ "$status" = "Running" ]; then
ovs=`echo ${ovsstatus%+*}`
kubectl exec -n kube-system "$ovs" -- bash /kube-ovn/uninstall.sh
fi
Expand Down

0 comments on commit d32b423

Please sign in to comment.