Skip to content

Commit

Permalink
ovs: Bump submodule to tip of branch-3.0 and add related test
Browse files Browse the repository at this point in the history
Specifically for:
e379e42d47f8 ("ovsdb-idl: Preserve references for rows deleted in same IDL run 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 <xsimonar@redhat.com>
Signed-off-by: Dumitru Ceara <dceara@redhat.com>
(cherry picked from commit c18415d)
  • Loading branch information
simonartxavier authored and dceara committed Oct 21, 2022
1 parent 54ed044 commit 68e0100
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ovs
Submodule ovs updated 486 files
29 changes: 29 additions & 0 deletions tests/ovn.at
Original file line number Diff line number Diff line change
Expand Up @@ -30471,3 +30471,32 @@ check ovn-nbctl lrp-del lr0-sw1
OVN_CLEANUP([hv1],[hv2])
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

check 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"])

check ovn-nbctl ls-add sw0 -- lsp-add sw0 sw0-port1
check ovn-nbctl lsp-del sw0-port1
check ovn-nbctl --wait=sb sync

ovn-appctl debug/resume
check ovn-nbctl --wait=hv sync

check ovn-nbctl ls-del sw0
check ovn-nbctl --wait=hv sync
OVN_CLEANUP([hv1])
AT_CLEANUP
])

0 comments on commit 68e0100

Please sign in to comment.