Skip to content

Commit

Permalink
Add small sleep before waiting for the agent
Browse files Browse the repository at this point in the history
  • Loading branch information
Frostman committed Oct 5, 2023
1 parent 6b3096e commit ea66cda
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hack/vlab-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ function control {
bin/hhfab vlab ssh --vm control-1 PATH=/opt/bin "$@"
}

sleep 10 # give agent ctrl a chance to process everything
control kubectl get agent -o wide
control kubectl wait --for=condition=Applied --timeout=3600s agent/switch-1 agent/switch-2
control kubectl get agent -o wide
Expand All @@ -18,5 +19,6 @@ control kubectl fabric vpc attach --vpc vpc-2 --conn server-2--mclag--switch-1--

control kubectl fabric vpc peer --vpc vpc-1 --vpc vpc-2

sleep 10 # give agent ctrl a chance to process everything
control kubectl wait --for=condition=Applied --timeout=3600s agent/switch-1 agent/switch-2
control kubectl get agent -o wide

0 comments on commit ea66cda

Please sign in to comment.