neutron/neutron/tests/common
Hynek Mlnarik 198bb55ba7 Fix of ping usage in net_helpers.async_ping()
net_helpers.async_ping() should pass when each of the ICMP echo requests
is matched by a corresponding ICMP echo reply, and it should fail if a
response is not received for some request. The async_ping implementation
relies on the ping exit code: when ping returns nonzero exit code,
RuntimeException would be consequentially thrown and async_ping assertion
would thus fail.

Current implementation of net_helpers.async_ping() is broken due to its
usage of -c parameter of ping command and assumption that if _some_ of
the ICMP replies does not arrive, ping would return nonzero exit code.
However, Linux ping works in the way that if _at least one_ reply is
received from any number of ICMP ping requests, result code is 0
(success) and thus no RuntimeException is thrown. This commit fixes
assert_ping to be a reliable assertion guaranteeing that no ping request
stays without reply. For simple bash reproducer and more thorough
discussion of possible solutions, see the bug description.

Closes-Bug: #1588731
Change-Id: I9257b94a8ebbfaf1c4266c1f8ce3097657bacee5
(cherry picked from commit 2dcacaae88)
2016-07-25 22:38:51 +00:00
..
agents OVS: Add support for IPv6 addresses as tunnel endpoints 2016-05-18 16:07:46 -04:00
__init__.py Test HA router failover 2014-11-24 12:05:09 +02:00
base.py Override opportunistic database tests to PyMySQL 2015-06-23 21:04:06 +02:00
config_fixtures.py Move ConfigDict and ConfigFileFixture to neutron.tests.common 2015-09-24 20:47:44 +02:00
conn_testers.py ovsfw: Load vlan tag from other_config 2016-04-11 15:30:38 +00:00
helpers.py Merge "Add the rebinding chance in _bind_port_if_needed" 2016-02-15 17:14:00 +00:00
l3_test_common.py Fix reference to uninitialized iptables manager 2016-03-23 17:40:17 +00:00
machine_fixtures.py ovs-fw: Mark conntrack entries invalid if no rule is matched 2016-03-29 19:54:42 +00:00
net_helpers.py Fix of ping usage in net_helpers.async_ping() 2016-07-25 22:38:51 +00:00