Hello community,
here is the log from the commit of package python-ovsdbapp for openSUSE:Factory
checked in at 2020-08-10 15:06:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-ovsdbapp (Old)
and /work/SRC/openSUSE:Factory/.python-ovsdbapp.new.3399 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-ovsdbapp"
Mon Aug 10 15:06:05 2020 rev:7 rq:825327 version:1.2.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-ovsdbapp/python-ovsdbapp.changes
2020-06-05 20:19:53.803801712 +0200
+++
/work/SRC/openSUSE:Factory/.python-ovsdbapp.new.3399/python-ovsdbapp.changes
2020-08-10 15:06:56.764283937 +0200
@@ -1,0 +2,12 @@
+Mon Aug 10 10:23:06 UTC 2020 - [email protected]
+
+- update to version 1.2.0
+ - Allow read-only Commands to bypass txns in execute()
+ - Add "inactivity_probe" parameter to "enable_connection_uri"
+ - Accept a Row as a result in AddCommand
+ - Update .gitreview for stable/ussuri
+ - Tempest job inherits from Neutron tempest OVN job
+ - Fix spurious test failure
+ - Update TOX/UPPER_CONSTRAINTS_FILE for stable/ussuri
+
+-------------------------------------------------------------------
Old:
----
ovsdbapp-1.1.0.tar.gz
New:
----
ovsdbapp-1.2.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-ovsdbapp.spec ++++++
--- /var/tmp/diff_new_pack.u1GY5a/_old 2020-08-10 15:06:59.892285589 +0200
+++ /var/tmp/diff_new_pack.u1GY5a/_new 2020-08-10 15:06:59.896285591 +0200
@@ -18,13 +18,13 @@
%define with_tests 1
Name: python-ovsdbapp
-Version: 1.1.0
+Version: 1.2.0
Release: 0
Summary: A library for creating OVSDB applications
License: Apache-2.0
Group: Development/Languages/Python
URL: https://launchpad.net/ovsdbapp
-Source0:
https://files.pythonhosted.org/packages/source/o/ovsdbapp/ovsdbapp-1.1.0.tar.gz
+Source0:
https://files.pythonhosted.org/packages/source/o/ovsdbapp/ovsdbapp-1.2.0.tar.gz
BuildRequires: openstack-macros
BuildRequires: python3-fixtures >= 3.0.0
BuildRequires: python3-netaddr >= 0.7.18
@@ -72,7 +72,7 @@
%{py3_build}
# generate html docs
-PBR_VERSION=1.1.0 PYTHONPATH=. \
+PBR_VERSION=1.2.0 PYTHONPATH=. \
%sphinx_build -b html doc/source doc/build/html
rm -rf doc/build/html/.{doctrees,buildinfo}
++++++ ovsdbapp-1.1.0.tar.gz -> ovsdbapp-1.2.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ovsdbapp-1.1.0/ChangeLog new/ovsdbapp-1.2.0/ChangeLog
--- old/ovsdbapp-1.1.0/ChangeLog 2020-04-02 19:56:42.000000000 +0200
+++ new/ovsdbapp-1.2.0/ChangeLog 2020-05-27 12:03:06.000000000 +0200
@@ -1,6 +1,17 @@
CHANGES
=======
+1.2.0
+-----
+
+* Accept a Row as a result in AddCommand
+* Tempest job inherits from Neutron tempest OVN job
+* Add "inactivity\_probe" parameter to "enable\_connection\_uri"
+* Fix spurious test failure
+* Allow read-only Commands to bypass txns in execute()
+* Update TOX/UPPER\_CONSTRAINTS\_FILE for stable/ussuri
+* Update .gitreview for stable/ussuri
+
1.1.0
-----
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ovsdbapp-1.1.0/PKG-INFO new/ovsdbapp-1.2.0/PKG-INFO
--- old/ovsdbapp-1.1.0/PKG-INFO 2020-04-02 19:56:42.000000000 +0200
+++ new/ovsdbapp-1.2.0/PKG-INFO 2020-05-27 12:03:07.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.2
Name: ovsdbapp
-Version: 1.1.0
+Version: 1.2.0
Summary: A library for creating OVSDB applications
Home-page: https://pypi.org/project/ovsdbapp/
Author: OpenStack
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ovsdbapp-1.1.0/ovsdbapp/backend/ovs_idl/command.py
new/ovsdbapp-1.2.0/ovsdbapp/backend/ovs_idl/command.py
--- old/ovsdbapp-1.1.0/ovsdbapp/backend/ovs_idl/command.py 2020-04-02
19:55:17.000000000 +0200
+++ new/ovsdbapp-1.2.0/ovsdbapp/backend/ovs_idl/command.py 2020-05-27
12:01:48.000000000 +0200
@@ -15,6 +15,7 @@
import collections
import logging
+import ovs.db.idl
import six
from ovsdbapp import api
@@ -75,8 +76,17 @@
def post_commit(self, txn):
# If get_insert_uuid fails, self.result was not a result of a
# recent insert. Most likely we are post_commit after a lookup()
- real_uuid = txn.get_insert_uuid(self.result) or self.result
- row = self.api.tables[self.table_name].rows[real_uuid]
+ if isinstance(self.result, rowview.RowView):
+ return
+ if isinstance(self.result, ovs.db.idl.Row):
+ row = self.result
+ else:
+ real_uuid = txn.get_insert_uuid(self.result) or self.result
+ # If we have multiple commands in a transation, post_commit can
+ # be called even if *this* command caused no change. Theoretically
+ # the subclass should have set a UUID/RowView result in that case
+ # which is handled above, so raise exception if real_uuid not found
+ row = self.api.tables[self.table_name].rows[real_uuid]
self.result = rowview.RowView(row)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/ovsdbapp-1.1.0/ovsdbapp/schema/open_vswitch/helpers.py
new/ovsdbapp-1.2.0/ovsdbapp/schema/open_vswitch/helpers.py
--- old/ovsdbapp-1.1.0/ovsdbapp/schema/open_vswitch/helpers.py 2020-04-02
19:55:17.000000000 +0200
+++ new/ovsdbapp-1.2.0/ovsdbapp/schema/open_vswitch/helpers.py 2020-05-27
12:01:47.000000000 +0200
@@ -29,13 +29,17 @@
# TODO(jlibosva): Get rid of this runtime configuration and raise a message to
# set Manager outside of ovsdbapp.
def enable_connection_uri(conn_uri, execute=None, **kwargs):
- timeout = kwargs.get('timeout', 5)
- probe = timeout if kwargs.get('set_timeout') else None
+ timeout = kwargs.pop('timeout', 5)
+ # NOTE(ralonsoh): the command timeout , "timeout", is defined in seconds;
+ # the probe timeout is defined in milliseconds. If "timeout" is used, must
+ # be converted to ms.
+ probe = (timeout * 1000 if kwargs.pop('set_timeout', None) else
+ kwargs.pop('inactivity_probe', None))
man_uri = _connection_to_manager_uri(conn_uri)
cmd = ['ovs-vsctl', '--timeout=%d' % timeout, '--id=@manager',
'--', 'create', 'Manager', 'target="%s"' % man_uri,
'--', 'add', 'Open_vSwitch', '.', 'manager_options', '@manager']
- if probe:
+ if probe is not None:
cmd += ['--', 'set', 'Manager', man_uri, 'inactivity_probe=%s' % probe]
if execute:
return execute(cmd, **kwargs).rstrip()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/ovsdbapp-1.1.0/ovsdbapp/schema/ovn_northbound/commands.py
new/ovsdbapp-1.2.0/ovsdbapp/schema/ovn_northbound/commands.py
--- old/ovsdbapp-1.1.0/ovsdbapp/schema/ovn_northbound/commands.py
2020-04-02 19:55:17.000000000 +0200
+++ new/ovsdbapp-1.2.0/ovsdbapp/schema/ovn_northbound/commands.py
2020-05-27 12:01:48.000000000 +0200
@@ -415,7 +415,7 @@
table = 'Logical_Switch_Port'
-class LspGetParentCommand(cmd.BaseCommand):
+class LspGetParentCommand(cmd.ReadOnlyCommand):
def __init__(self, api, port):
super(LspGetParentCommand, self).__init__(api)
self.port = port
@@ -425,7 +425,7 @@
self.result = next(iter(lsp.parent_name), "")
-class LspGetTagCommand(cmd.BaseCommand):
+class LspGetTagCommand(cmd.ReadOnlyCommand):
def __init__(self, api, port):
super(LspGetTagCommand, self).__init__(api)
self.port = port
@@ -454,7 +454,7 @@
lsp.addresses = self.addresses
-class LspGetAddressesCommand(cmd.BaseCommand):
+class LspGetAddressesCommand(cmd.ReadOnlyCommand):
def __init__(self, api, port):
super(LspGetAddressesCommand, self).__init__(api)
self.port = port
@@ -477,7 +477,7 @@
lsp.port_security = self.addresses
-class LspGetPortSecurityCommand(cmd.BaseCommand):
+class LspGetPortSecurityCommand(cmd.ReadOnlyCommand):
def __init__(self, api, port):
super(LspGetPortSecurityCommand, self).__init__(api)
self.port = port
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/ovsdbapp-1.1.0/ovsdbapp/tests/unit/backend/ovs_idl/test_connection.py
new/ovsdbapp-1.2.0/ovsdbapp/tests/unit/backend/ovs_idl/test_connection.py
--- old/ovsdbapp-1.1.0/ovsdbapp/tests/unit/backend/ovs_idl/test_connection.py
2020-04-02 19:55:17.000000000 +0200
+++ new/ovsdbapp-1.2.0/ovsdbapp/tests/unit/backend/ovs_idl/test_connection.py
2020-05-27 12:01:48.000000000 +0200
@@ -38,8 +38,7 @@
self.idl.has_ever_connected.return_value = False
self.conn.start()
self.idl.has_ever_connected.assert_called_once()
- mock_wait_for_change.assert_called_once_with(self.conn.idl,
- self.conn.timeout)
+ mock_wait_for_change.assert_any_call(self.conn.idl, self.conn.timeout)
mock_poller.assert_called_once_with()
mock_thread.assert_called_once_with(target=self.conn.run)
mock_thread.return_value.setDaemon.assert_called_once_with(True)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ovsdbapp-1.1.0/ovsdbapp.egg-info/PKG-INFO
new/ovsdbapp-1.2.0/ovsdbapp.egg-info/PKG-INFO
--- old/ovsdbapp-1.1.0/ovsdbapp.egg-info/PKG-INFO 2020-04-02
19:56:42.000000000 +0200
+++ new/ovsdbapp-1.2.0/ovsdbapp.egg-info/PKG-INFO 2020-05-27
12:03:06.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.2
Name: ovsdbapp
-Version: 1.1.0
+Version: 1.2.0
Summary: A library for creating OVSDB applications
Home-page: https://pypi.org/project/ovsdbapp/
Author: OpenStack
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ovsdbapp-1.1.0/ovsdbapp.egg-info/pbr.json
new/ovsdbapp-1.2.0/ovsdbapp.egg-info/pbr.json
--- old/ovsdbapp-1.1.0/ovsdbapp.egg-info/pbr.json 2020-04-02
19:56:42.000000000 +0200
+++ new/ovsdbapp-1.2.0/ovsdbapp.egg-info/pbr.json 2020-05-27
12:03:06.000000000 +0200
@@ -1 +1 @@
-{"git_version": "85d6323", "is_release": true}
\ No newline at end of file
+{"git_version": "89660b0", "is_release": true}
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ovsdbapp-1.1.0/tox.ini new/ovsdbapp-1.2.0/tox.ini
--- old/ovsdbapp-1.1.0/tox.ini 2020-04-02 19:55:17.000000000 +0200
+++ new/ovsdbapp-1.2.0/tox.ini 2020-05-27 12:01:48.000000000 +0200
@@ -11,7 +11,7 @@
OS_TEST_PATH=./ovsdbapp/tests/unit
install_command = pip install {opts} {packages}
deps =
-
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
+
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/ussuri}
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
commands = stestr run --slowest {posargs}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ovsdbapp-1.1.0/zuul.d/ovsdbapp-jobs.yaml
new/ovsdbapp-1.2.0/zuul.d/ovsdbapp-jobs.yaml
--- old/ovsdbapp-1.1.0/zuul.d/ovsdbapp-jobs.yaml 2020-04-02
19:55:17.000000000 +0200
+++ new/ovsdbapp-1.2.0/zuul.d/ovsdbapp-jobs.yaml 2020-05-27
12:01:48.000000000 +0200
@@ -1,8 +1,7 @@
- job:
- name: ovsdbapp-tempest-dsvm-networking-ovn-ovs-release
+ name: ovsdbapp-neutron-ovn-tempest-ovs-release
description: Job testing for devstack/tempest testing networking-ovn with
the latest released OVN branch and ovsdbapp from source
- parent: networking-ovn-tempest-dsvm-ovs-release
+ parent: neutron-ovn-tempest-ovs-release
vars:
devstack_localrc:
LIBS_FROM_GIT: ovsdbapp
- USE_PYTHON3: true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ovsdbapp-1.1.0/zuul.d/project.yaml
new/ovsdbapp-1.2.0/zuul.d/project.yaml
--- old/ovsdbapp-1.1.0/zuul.d/project.yaml 2020-04-02 19:55:17.000000000
+0200
+++ new/ovsdbapp-1.2.0/zuul.d/project.yaml 2020-05-27 12:01:48.000000000
+0200
@@ -7,8 +7,8 @@
check:
jobs:
- openstack-tox-functional
- - ovsdbapp-tempest-dsvm-networking-ovn-ovs-release
+ - ovsdbapp-neutron-ovn-tempest-ovs-release
gate:
jobs:
- openstack-tox-functional
- - ovsdbapp-tempest-dsvm-networking-ovn-ovs-release
+ - ovsdbapp-neutron-ovn-tempest-ovs-release