OVSDB application library
Go to file
Lucas Alvares Gomes f971e5d1a4 Transaction: Handle NOT_LOCKED status
This patch is changing the commit_block() from the Transaction class to
handle the NOT_LOCKED status and treat it as an error.

The reason to treat it as an error is because, when the connection with
the OVSDB is reestabilished we don't know if that transaction will
belong to a worker that is holding a valid lock or not, so we won't
attempt to retry it.

The patch is also adding a log for unknown status, in case another
status that is not handled by ovsdbapp is returned the log will give us
some hints about what's going on instead of failing siently.

Related-Bug: #1754291
Change-Id: I5dcb226c387092cba1adb9dbf1ec782e0bac66ba
(cherry picked from commit b7c9dc9f0a)
2018-03-08 17:14:02 +00:00
doc/source Removes unnecessary utf-8 encoding 2017-07-20 16:35:33 +05:30
ovsdbapp Transaction: Handle NOT_LOCKED status 2018-03-08 17:14:02 +00:00
releasenotes Update reno for stable/pike 2017-07-28 21:06:07 +00:00
tools Have debug_venv use OVN venv 2017-09-01 10:45:09 -05:00
.gitignore Ignore .testrepository and editor(s) files 2017-04-21 10:09:30 +01:00
.gitreview Update .gitreview for stable/queens 2018-01-24 18:10:00 +00:00
.pylintrc pylint: Disable duplicate-code for check 2017-07-03 20:31:35 +00:00
.testr.conf Fix pep8/cookiecutter test running 2017-02-24 15:32:17 -05:00
CONTRIBUTING.rst Add cookiecutter output 2017-02-24 15:02:19 -05:00
HACKING.rst Update the documentation link for doc migration 2017-07-21 14:13:21 +08: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
requirements.txt Updated from global requirements 2018-02-13 01:59:01 +00: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 Updated from global requirements 2018-02-13 01:59:01 +00:00
tox.ini Update UPPER_CONSTRAINTS_FILE for stable/queens 2018-01-24 18:10:03 +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