ovn-nbctl --wait=hv does not wait for tunnel creation to be completed:
ovn creates the interfaces in ovs db, then ovs-vswitchd writes ofport
in ovsdb, then ovn creates the related openflows.
Fixes: a6f5a68eb660 ("physical: Fix remote chassis flood ingress flows for
multiple encaps.")
Signed-off-by: Xavier Simonart <[email protected]>
---
v2: Updated after removal of wait_and_get_ofport.
---
tests/ovn-controller.at | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/ovn-controller.at b/tests/ovn-controller.at
index f963407dc..ef7fb78df 100644
--- a/tests/ovn-controller.at
+++ b/tests/ovn-controller.at
@@ -3842,6 +3842,9 @@ check_uuid ovn-sbctl --id=@encap create Encap type=geneve
ip=192.168.0.13 \
-- add Chassis hv2 encaps @encap
check ovn-sbctl set chassis hv2 other_config:is-remote=true
+AT_CHECK([as hv1 ovs-vsctl wait-until interface ovn-hv2-0 'ofport>0'])
+AT_CHECK([as hv1 ovs-vsctl wait-until interface ovn-hv2-1 'ofport>0'])
+
check ovn-nbctl --wait=hv sync
# Wait for both tunnels to be created by checking ovn-chassis-id external_ids.
--
2.47.1
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev