OVSDB application library
Go to file
Lucas Alvares Gomes d85e5b8029 Fix functional tests timeout race condition
The test_idl_run_exception_terminates test sometimes fails in the gate
with the following error;

ovsdbapp.exceptions.TimeoutException: Commands
[<ovsdbapp.schema.open_vswitch.commands.BridgeExistsCommand object at
0x7fcec0639150>] exceeded timeout 1 seconds

This seems to be due to another test called
test_post_commit_vswitchd_incomplete_timeout setting the transaction
timeout to 1 second. If the tests runs concurrently there's a chance
that such change would also affect the other tests.

This patch is changing the way that we force a timeout for the
test_post_commit_vswitchd_incomplete_timeout test by mocking the
timeout_exceed() method to return True within the scope of that patch
only.

Change-Id: I3f391f0b80285a2418987e2c51985732fa2cc352
Signed-off-by: Lucas Alvares Gomes <lucasagomes@gmail.com>
2018-11-19 13:39:29 +00:00
doc/source Removes unnecessary utf-8 encoding 2017-07-20 16:35:33 +05:30
ovsdbapp Fix functional tests timeout race condition 2018-11-19 13:39:29 +00:00
playbooks/legacy Move ovsdbapp jobs to its tree 2018-09-21 09:46:42 +01:00
releasenotes Update reno for stable/rocky 2018-08-17 18:59:59 +00:00
tools Check for oslo library usage 2018-08-23 09:03:54 -05:00
zuul.d Move ovsdbapp jobs to its tree 2018-09-21 09:46:42 +01:00
.gitignore Switch to stestr 2018-07-10 16:23:46 +07:00
.gitreview Add .gitreview 2017-03-13 16:48:53 -05:00
.pylintrc update pylint to 1.9.2 2018-08-21 09:36:16 -04:00
.stestr.conf Make it possible to run functional tests again 2018-07-19 17:37:39 +00:00
CONTRIBUTING.rst Add cookiecutter output 2017-02-24 15:02:19 -05:00
HACKING.rst Check for oslo library usage 2018-08-23 09:03:54 -05:00
LICENSE Add cookiecutter output 2017-02-24 15:02:19 -05:00
README.rst There is no documentation for ovsdbapp 2017-07-20 16:18:21 +05:30
TESTING.rst Add ability to debug OVS virtual environments 2017-07-13 19:51:31 +00:00
babel.cfg Add cookiecutter output 2017-02-24 15:02:19 -05:00
bindep.txt Add OVN Northbound API for LS, LSP, and DHCP 2017-07-03 23:19:46 -05:00
lower-constraints.txt update pylint to 1.9.2 2018-08-21 09:36:16 -04:00
requirements.txt Remove the oslo-utils dependency 2018-08-21 11:16:26 +02:00
setup.cfg Enable warning-is-error in doc build 2017-07-08 17:30:45 +00:00
setup.py Updated from global requirements 2017-03-15 04:26:57 +00:00
test-requirements.txt update pylint to 1.9.2 2018-08-21 09:36:16 -04:00
tox.ini Merge "fix tox python3 overrides" 2018-08-23 16:41:42 +00:00

README.rst

ovsdbapp

A library for creating OVSDB applications

The ovdsbapp library is useful for creating applications that communicate via Open_vSwitch's OVSDB protocol (https://tools.ietf.org/html/rfc7047). It wraps the Python 'ovs' and adds an event loop and friendly transactions.

Features

  • An thread-based event loop for using ovs.db.Idl
  • Transaction support
  • Native OVSDB communication