[ovs-dev] [PATCH 4/7] ovn: Fix race in "ovn -- ipam" test.

Ben Pfaff blp at ovn.org
Thu Oct 6 01:26:49 UTC 2016

After setting the subnet, ovn-northd needs to process the changes before
setting the dynamic addresses.

Signed-off-by: Ben Pfaff <blp at ovn.org>
 tests/ovn.at | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/ovn.at b/tests/ovn.at
index 9baa1df..c4a600a 100644
--- a/tests/ovn.at
+++ b/tests/ovn.at
@@ -4552,7 +4552,7 @@ ovn_start
 # subnet which should result in an address being allocated for the port.
 ovn-nbctl ls-add sw0
 ovn-nbctl lsp-add sw0 p0 -- lsp-set-addresses p0 dynamic
-ovn-nbctl add Logical-Switch sw0 other_config subnet=
+ovn-nbctl --wait=sb add Logical-Switch sw0 other_config subnet=
 AT_CHECK([ovn-nbctl get Logical-Switch-Port p0 dynamic_addresses], [0],

More information about the dev mailing list