On Thu, Jun 5, 2025 at 3:44 PM Dumitru Ceara via dev < ovs-dev@openvswitch.org> wrote:
> The tests were (very very rarely) failing due to an unfortunate pattern > matching. Improve the way we detect the client port. > > Fixes: 58683a4271e6 ("ovn-controller: Handle DNAT/no-NAT conntrack tuple > collisions.") > Signed-off-by: Dumitru Ceara <dce...@redhat.com> > --- > tests/system-ovn.at | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/tests/system-ovn.at b/tests/system-ovn.at > index e9f0b45852..d6d5cada16 100644 > --- a/tests/system-ovn.at > +++ b/tests/system-ovn.at > @@ -6155,7 +6155,8 @@ NS_CHECK_EXEC([vm2], [nc 66.66.66.66 666 -p 2001 > -z], [0], [ignore], [ignore]) > # - one in vm2's zone (dnat) > AT_CHECK([ovs-appctl dpctl/dump-conntrack | grep 2001 | \ > grep "orig=.src=42\.42\.42\.3" | \ > -sed -e 's/port=2001/port=<clnt_s_port>/g' \ > +sed -e 's/sport=2001/sport=<clnt_s_port>/g' \ > + -e 's/dport=2001/dport=<clnt_s_port>/g' \ > -e 's/sport=4242,dport=[[0-9]]\+/sport=4242,dport=<rnd_port>/g' \ > -e 's/state=[[0-9_A-Z]]*/state=<cleared>/g' \ > -e 's/zone=[[0-9]]*/zone=<cleared>/' | sort], [0], [dnl > @@ -6264,7 +6265,8 @@ NS_CHECK_EXEC([vm2], [nc 6666::1 666 -p 2001 -z], > [0], [ignore], [ignore]) > # - one in vm2's zone (dnat) > AT_CHECK([ovs-appctl dpctl/dump-conntrack | grep 2001 | \ > grep "orig=.src=4242::3" | \ > -sed -e 's/port=2001/port=<clnt_s_port>/g' \ > +sed -e 's/sport=2001/sport=<clnt_s_port>/g' \ > + -e 's/dport=2001/dport=<clnt_s_port>/g' \ > -e 's/sport=4242,dport=[[0-9]]\+/sport=4242,dport=<rnd_port>/g' \ > -e 's/state=[[0-9_A-Z]]*/state=<cleared>/g' \ > -e 's/zone=[[0-9]]*/zone=<cleared>/' | sort], [0], [dnl > -- > 2.49.0 > > _______________________________________________ > dev mailing list > d...@openvswitch.org > https://mail.openvswitch.org/mailman/listinfo/ovs-dev > > Looks good to me, thanks. Acked-by: Ales Musil <amu...@redhat.com> _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev