Skip to content

Commit

Permalink
cni-server: wait ovs-vswitchd to be running (#2759)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzujian committed May 6, 2023
1 parent 1933ed8 commit 99be9cb
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions dist/images/start-cniserver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,12 @@ then
rm ${CNI_SOCK}
fi

while true
do
sleep 1
if [[ -e "$OVS_SOCK" ]]
then
break
else
echo "waiting for ovs ready"
while true; do
if [[ -e "$OVS_SOCK" ]]; then
/usr/share/openvswitch/scripts/ovs-ctl status && break
fi
echo "waiting for ovs ready"
sleep 1
done

# update links to point to the iptables binaries
Expand Down

0 comments on commit 99be9cb

Please sign in to comment.