Skip to content

Commit

Permalink
tests: Fix flaky "ofctrl wait before clearing flows".
Browse files Browse the repository at this point in the history
Signed-off-by: Xavier Simonart <xsimonar@redhat.com>
Signed-off-by: 0-day Robot <robot@bytheb.org>
  • Loading branch information
simonartxavier authored and ovsrobot committed Dec 10, 2024
1 parent 2aeba01 commit 734b7f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/ovn-controller.at
Original file line number Diff line number Diff line change
Expand Up @@ -2305,6 +2305,9 @@ OVS_WAIT_UNTIL([grep -q 'wait-before-clear' hv1/ovn-controller.log])
OVS_WAIT_UNTIL([test 0 = $(ovs-ofctl dump-flows br-int | grep -F 10.1.2.4 | grep -cvF 2.2.2.2)])

# Check in the middle of the wait.
# Wait for ovn-controller to claim the port as it might cause some lflow_run.
OVS_WAIT_UNTIL([test 2 = $(grep -c 'Claiming lport ls1-lp1 for this chassis' hv1/ovn-controller.log)])

lflow_run_1=$(ovn-appctl -t ovn-controller coverage/read-counter lflow_run)
AT_CHECK([ovs-ofctl dump-flows br-int | grep -F 10.1.2.3], [0], [ignore])

Expand Down

0 comments on commit 734b7f5

Please sign in to comment.