Specifically for:
360f5b0e197d ("ovsdb-idl: Preserve references for rows deleted in same IDL as
their insertion.")
A OVN test case reproducing the bug (issue when port_binding is added/deleted
within the
same IDL) is also added.
Reported-at: https://bugzilla.redhat.com/show_bug.cgi?id=2126450
Signed-off-by: Xavier Simonart <[email protected]>
---
ovs | 2 +-
tests/ovn.at | 29 +++++++++++++++++++++++++++++
2 files changed, 30 insertions(+), 1 deletion(-)
diff --git a/ovs b/ovs
index 6f24c2bc7..360f5b0e1 160000
--- a/ovs
+++ b/ovs
@@ -1 +1 @@
-Subproject commit 6f24c2bc769afde0a390ce344de1a7d9c592e5a6
+Subproject commit 360f5b0e197d49a4de5811a45e020b000b230d20
diff --git a/tests/ovn.at b/tests/ovn.at
index 07f72dc31..739c09934 100644
--- a/tests/ovn.at
+++ b/tests/ovn.at
@@ -32946,3 +32946,32 @@ check ovn-nbctl --wait=hv sync
OVN_CLEANUP([hv1])
AT_CLEANUP
])
+
+OVN_FOR_EACH_NORTHD([
+AT_SETUP([ovn-controller: batch add port and delete port in same IDL])
+ovn_start
+net_add n1
+
+sim_add hv1
+as hv1
+ovs-vsctl add-br br-phys
+ovn_attach n1 br-phys 192.168.0.1
+check ovs-vsctl add-port br-int p1
+
+ovs-vsctl set interface p1 external-ids:iface-id=sw0-port1
+check ovn-nbctl --wait=hv sync
+ovn-appctl debug/pause
+OVS_WAIT_UNTIL([test x$(as hv1 ovn-appctl -t ovn-controller debug/status) =
"xpaused"])
+
+ovn-nbctl ls-add sw0 -- lsp-add sw0 sw0-port1 -- lsp-set-addresses sw0-port1
"50:54:00:00:00:01 192.168.0.2"
+ovn-nbctl lsp-del sw0-port1
+
+ovn-appctl debug/resume
+check ovn-nbctl --wait=hv sync
+
+ovn-nbctl ls-del sw0
+check ovn-nbctl --wait=hv sync
+OVN_CLEANUP([hv1])
+AT_CLEANUP
+])
+
--
2.31.1
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev