OVSDB application library
Go to file
Brian Haley eb8a07aacf Use log.warning() from the logging library
Every time I run a large chunk of neutron unit tests, for
example:

$ tox -e py310 -- neutron.tests.unit.plugins.ml2.drivers

I see this warning (it doesn't cause a failure):

Captured stderr:
~~~~~~~~~~~~~~~~
    .../neutron/.tox/py310/lib/python3.10/site-packages/ovs/db/idl.py:1484:
  DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
    vlog.warn("error parsing column %s in table %s: %s"

Looking at the OVS python library code it seems perfectly fine.

Backtracking, I was able to find the offending code that
actually lived in ovsdbapp. It is a little bit obfuscated
as it was re-mapping the OVS library vlog.Vlog.warn() call
to log.warn(), but I was able to test my theory by modifying
code in my local neutron .tox directory and the warning
went away.

I was never able to narrow things down to a single test, or
class, or file, even running with '--concurrency 1', so I
do not know exactly how this code is getting exercised,
there could be a test that is not cleaning-up properly,
maybe some day we will figure that out.

TrivialFix but not TrivialToFind

Change-Id: Ic6256b4bab48298fe599b7904e9edb0e35b93ce4
2024-05-24 11:54:13 -04:00
doc Remove executable from python files which don't really needs it 2024-05-06 12:23:36 +02:00
ovsdbapp Use log.warning() from the logging library 2024-05-24 11:54:13 -04:00
releasenotes reno: Update master for unmaintained/zed 2024-04-30 08:54:47 +00:00
tools Use OVN's OVS submodule for functional tests 2023-04-03 15:46:39 -05:00
zuul.d Switch to 2023.1 Python3 unit tests and generic template name 2022-09-14 09:27:15 +00:00
.gitignore Switch to stestr 2018-07-10 16:23:46 +07:00
.gitreview OpenDev Migration Patch 2019-04-19 19:43:59 +00:00
.pre-commit-config.yaml Add pre-commit configuration 2024-05-06 12:23:45 +02:00
.pylintrc Bump hacking 2024-01-27 23:14:24 +09:00
.stestr.conf [CI] Set the default OS_TEST_PATH in the stestr conf file 2023-03-16 15:29:18 +01:00
bindep.txt Add OVN Northbound API for LS, LSP, and DHCP 2017-07-03 23:19:46 -05:00
CONTRIBUTING.rst Update Zuul jobs: Enable docs publishing 2019-09-05 09:17:05 +02: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 Merge "PDF documentation build" 2019-09-26 11:59:36 +00:00
requirements.txt Improve compatibility with netaddr 1.x 2024-05-10 10:20:22 +02:00
setup.cfg Update supported python versions 2023-12-20 00:01:50 +09:00
setup.py Updated from global requirements 2017-03-15 04:26:57 +00:00
test-requirements.txt Bump hacking 2024-01-27 23:14:24 +09:00
TESTING.rst Add ability to debug OVS virtual environments 2017-07-13 19:51:31 +00:00
tox.ini tox: Drop envdir 2024-02-03 00:04:59 +09:00

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