neutron/neutron/tests/unit/agent/common
Kevin Benton a6c231cdd7 Make run_ofctl check for socket error
When the OVS bridge is still being initialized we get
a "failed to connect to socket" error when running ovs-ofctl.
This shows up quite frequently in our functional tests and
may be the source of their high failure rate.

Ultimately we need to change the behavior of run_ofctl to not
ignore errors by default, but this will require a lot of effort
because there are many places that likely expect this behavior.

As a workaround, this patch checks for the specific socket failure
and attempts the command again up to 10 times, sleeping for 1
second between each attempt to wait for the bridge to be ready.

Closes-Bug: #1550623
Closes-Bug: #1551593
Change-Id: I663a54608ed96133014104fe033ecea0a867ac4c
2016-03-01 13:42:50 -08:00
..
__init__.py Add missing neutron/tests/unit/agent/common/__init__.py 2015-04-01 22:43:13 +02:00
test_config.py Reorganize unit test tree 2015-04-06 23:28:31 +00:00
test_ovs_lib.py Make run_ofctl check for socket error 2016-03-01 13:42:50 -08:00
test_polling.py OVS agent support on Hyper-V 2015-03-25 13:48:33 -07:00
test_utils.py Remove MidonetInterfaceDriver 2015-11-10 16:09:52 +09:00