Skip to content

Commit 5e2b1ec

Browse files
almusildceara
authored andcommitted
tests: Ignore FDB transaction errors.
Some tests would fail from time to time on transaction error when two controllers try to add the same FDB into DB simultaneously. Ignore the transaction error during cleanup. Signed-off-by: Ales Musil <[email protected]> Acked-by: Xavier Simonart <[email protected]> Signed-off-by: Dumitru Ceara <[email protected]> (cherry picked from commit 3571ccd)
1 parent 65e7bcb commit 5e2b1ec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/ovn-macros.at

+3
Original file line numberDiff line numberDiff line change
@@ -353,13 +353,16 @@ m4_define([OVN_CLEANUP_SBOX],[
353353
# "Failed to locate tunnel to reach main chassis" happening when controller started e.g. before ovn-bridge-mappings is set
354354
# "Transaction causes multiple rows in \"MAC_Binding\" table to have identical values"
355355
# happening as ovn-controller has a race condition over MAC binding table with other controllers (GARP).
356+
# "Transaction causes multiple rows in \"FDB\" table to have identical values"
357+
# happens when there is a race between multiple ovn-controllers that try to create the same FDB.
356358
AT_CHECK([check_logs "
357359
$error
358360
/connection failed (No such file or directory)/d
359361
/has no network name*/d
360362
/receive tunnel port not found*/d
361363
/Failed to locate tunnel to reach main chassis/d
362364
/Transaction causes multiple rows.*MAC_Binding/d
365+
/Transaction causes multiple rows.*FDB/d
363366
" $sbox])
364367
])
365368

0 commit comments

Comments
 (0)