]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix establishing UDP connection
authorJakub Libosvar <libosvar@redhat.com>
Thu, 13 Aug 2015 09:08:20 +0000 (09:08 +0000)
committerJakub Libosvar <libosvar@redhat.com>
Wed, 16 Sep 2015 07:35:25 +0000 (09:35 +0200)
commit78aed58edbe6eb8a71339c7add491fe9de9a0546
tree212533c14eace6c3caef13242222dc36bf292ebb
parentcd4d88937462903057609e798fa18b171a566f44
Fix establishing UDP connection

Previously, in establish_connection() for UDP protocol data were sent
but never read on peer socket. That lead to successful read on peer side
if this connection was filtered. Having constant testing string masked
this issue as we can't distinguish to which test of connectivity data
belong.

This patch makes unique data string per test_connectivity() and
also makes establish_connection() to create an ASSURED entry in
conntrack table. Finally, in last test after firewall filter was
removed, connection is re-established in order to avoid troubles with
terminated processes or TCP continuing sending packets which weren't
successfully delivered.

Closes-Bug: 1478847
Change-Id: I2920d587d8df8d96dc1c752c28f48ba495f3cf0f
neutron/tests/common/net_helpers.py
neutron/tests/functional/agent/linux/test_iptables.py