Skip to content

Commit

Permalink
fix: update check script for restart ovs-ovn after rebuild ovsdb (#1534)
Browse files Browse the repository at this point in the history
  • Loading branch information
lut777 committed May 16, 2022
1 parent c84a14c commit 39e5f0a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dist/images/db_autocheck_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ restoreNB(){
echo "restore db file, operate in pod ${podNameArray[0]}"
kubectl exec -it -n $KUBE_OVN_NS ${podNameArray[0]} -- mv /etc/ovn/ovnnb_db_standalone.db /etc/ovn/ovnnb_db.db
kubectl scale deployment -n $KUBE_OVN_NS ovn-central --replicas=$replicas
kubectl -n kube-system delete pod -l app=ovs
echo "finish restore db file and ovn-central replicas"
exit 0
}
Expand Down

0 comments on commit 39e5f0a

Please sign in to comment.