Make sure the IGMP/MLD group is learned and processed before sending
traffic.  Otherwise the IP multicast packets get dropped.

Spotted in one of the ovsrobot runs:
https://github.com/ovsrobot/ovn/runs/7321368564?check_suite_focus=true

  ovn.at:24712: waiting until check_packets 'hv1/vif1-tx.pcap expected_az1' \
                   'hv2/vif2-tx.pcap expected_az2'...
  ovn.at:24712: wait failed after 30 seconds
  --- exp       2022-07-13 13:55:21.909520463 +0000
  +++ rcv       2022-07-13 13:55:21.909520463 +0000
  @@ -3,6 +3,5 @@ --- hv1/vif1-tx.pcap
   
33330000000100000001010086dd60000000000e113e00100000000000000000000000000042ff0adeadbeef0000000000000000000193407a69000e2b4e61736461640a

   --- hv2/vif2-tx.pcap
  
-01005e00014400000002020008004500001e95f140001e117e6b2c2c2c02ef000144e518e518000aed350000
   
33330000000100000002020086dd60000000000e113e00100000000000000000000000000042ff0adeadbeef0000000000000000000193407a69000e2b4e61736461640a

  ../../../tests/ovs-macros.at:255: hard failure
  561. ovn.at:24712: 561. interconnection - IGMP/MLD multicast -- ovn-northd -- 
parallelization=no -- ovn_monitor_all=yes (ovn.at:24712): FAILED 
(ovs-macros.at:255)

Signed-off-by: Dumitru Ceara <[email protected]>
---
 tests/ovn.at | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/tests/ovn.at b/tests/ovn.at
index c346975e6..c4c1c40e9 100644
--- a/tests/ovn.at
+++ b/tests/ovn.at
@@ -24885,6 +24885,18 @@ send_mld_v2_report hv2-vif2 hv2 \
     ff0adeadbeef00000000000000000001 04 c0e4 \
     /dev/null
 
+# Check that the IGMP and MLD groups are learned on both AZs (on the LS
+# and TS).
+ovn_as az1
+wait_row_count IGMP_Group 2 address=239.0.1.68
+wait_row_count IGMP_Group 2 address='"ff0a:dead:beef::1"'
+check ovn-nbctl --wait=hv sync
+
+ovn_as az2
+wait_row_count IGMP_Group 2 address=239.0.1.68
+wait_row_count IGMP_Group 2 address='"ff0a:dead:beef::1"'
+check ovn-nbctl --wait=hv sync
+
 # Send an IP multicast packet from LSP2, it should be forwarded
 # to lsp1 and lsp3.
 > expected_az1
-- 
2.31.1

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to