Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-oslo.cache for
openSUSE:Factory checked in at 2021-05-10 15:37:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-oslo.cache (Old)
and /work/SRC/openSUSE:Factory/.python-oslo.cache.new.2988 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-oslo.cache"
Mon May 10 15:37:36 2021 rev:13 rq:889989 version:2.7.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-oslo.cache/python-oslo.cache.changes
2020-10-26 16:17:01.226969252 +0100
+++
/work/SRC/openSUSE:Factory/.python-oslo.cache.new.2988/python-oslo.cache.changes
2021-05-10 15:39:47.205464378 +0200
@@ -1,0 +2,11 @@
+Sun May 2 17:29:53 UTC 2021 - [email protected]
+
+- update to version 2.7.0
+ - Add Python3 wallaby unit tests
+ - Do not hardcode flush_on_reconnect, move to oslo.cache config
+ - Update master for stable/victoria
+ - Add dogpile.cache.pymemcache backend
+ - Imported Translations from Zanata
+ - Dropping lower constraints testing
+
+-------------------------------------------------------------------
Old:
----
oslo.cache-2.6.1.tar.gz
New:
----
oslo.cache-2.7.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-oslo.cache.spec ++++++
--- /var/tmp/diff_new_pack.eFAJqT/_old 2021-05-10 15:39:47.705462332 +0200
+++ /var/tmp/diff_new_pack.eFAJqT/_new 2021-05-10 15:39:47.705462332 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-oslo.cache
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,15 +17,15 @@
Name: python-oslo.cache
-Version: 2.6.1
+Version: 2.7.0
Release: 0
Summary: Cache storage for Openstack projects
License: Apache-2.0
Group: Development/Languages/Python
-URL: https://launchpad.net/%{sname}
-Source0:
https://files.pythonhosted.org/packages/source/o/oslo.cache/oslo.cache-2.6.1.tar.gz
+URL: https://docs.openstack.org/oslo.cache
+Source0:
https://files.pythonhosted.org/packages/source/o/oslo.cache/oslo.cache-2.7.0.tar.gz
BuildRequires: openstack-macros
-BuildRequires: python3-dogpile.cache >= 1.0.2
+BuildRequires: python3-dogpile.cache >= 1.1.2
BuildRequires: python3-mock
BuildRequires: python3-oslo.config >= 8.1.0
BuildRequires: python3-oslo.i18n >= 5.0.0
@@ -47,8 +47,7 @@
%package -n python3-oslo.cache
Summary: Cache storage for Openstack projects
-Group: Development/Languages/Python
-Requires: python3-dogpile.cache >= 1.0.2
+Requires: python3-dogpile.cache >= 1.1.2
Requires: python3-oslo.config >= 8.1.0
Requires: python3-oslo.i18n >= 5.0.0
Requires: python3-oslo.log >= 4.2.1
@@ -64,7 +63,6 @@
%package -n python-oslo.cache-doc
Summary: Documentation for the OpenStack Oslo Cache library
-Group: Development/Languages/Python
BuildRequires: python3-Sphinx
BuildRequires: python3-openstackdocstheme
BuildRequires: python3-sphinxcontrib-apidoc
@@ -73,7 +71,7 @@
Documentation for the OpenStack Oslo cache library.
%prep
-%autosetup -p1 -n oslo.cache-2.6.1
+%autosetup -p1 -n oslo.cache-2.7.0
%py_req_cleanup
%build
@@ -83,7 +81,7 @@
%{py3_install}
# generate html docs
-PBR_VERSION=2.6.1 %sphinx_build -b html doc/source doc/build/html
+PBR_VERSION=2.7.0 %sphinx_build -b html doc/source doc/build/html
# remove the sphinx-build leftovers
rm -rf doc/build/html/.{doctrees,buildinfo}
++++++ _service ++++++
--- /var/tmp/diff_new_pack.eFAJqT/_old 2021-05-10 15:39:47.737462201 +0200
+++ /var/tmp/diff_new_pack.eFAJqT/_new 2021-05-10 15:39:47.737462201 +0200
@@ -1,8 +1,8 @@
<services>
<service mode="disabled" name="renderspec">
- <param
name="input-template">https://opendev.org/openstack/rpm-packaging/raw/branch/stable/victoria/openstack/oslo.cache/oslo.cache.spec.j2</param>
+ <param
name="input-template">https://opendev.org/openstack/rpm-packaging/raw/branch/stable/wallaby/openstack/oslo.cache/oslo.cache.spec.j2</param>
<param name="output-name">python-oslo.cache.spec</param>
- <param
name="requirements">https://opendev.org/openstack/oslo.cache/raw/branch/stable/victoria/requirements.txt</param>
+ <param
name="requirements">https://opendev.org/openstack/oslo.cache/raw/branch/stable/wallaby/requirements.txt</param>
<param name="changelog-email">[email protected]</param>
<param name="changelog-provider">gh,openstack,oslo.cache</param>
</service>
++++++ oslo.cache-2.6.1.tar.gz -> oslo.cache-2.7.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.cache-2.6.1/.zuul.yaml
new/oslo.cache-2.7.0/.zuul.yaml
--- old/oslo.cache-2.6.1/.zuul.yaml 2020-09-11 21:16:54.000000000 +0200
+++ new/oslo.cache-2.7.0/.zuul.yaml 2021-02-08 14:17:12.000000000 +0100
@@ -38,6 +38,13 @@
OSLO_BACKEND: dogpile_cache_bmemcached
- job:
+ name: oslo.cache-functional-dogpile.cache.pymemcache
+ parent: oslo.cache-functional-memcached
+ vars:
+ tox_environment:
+ OSLO_BACKEND: dogpile_cache_pymemcache
+
+- job:
name: oslo.cache-functional-memcache_pool
parent: oslo.cache-functional-memcached
vars:
@@ -48,8 +55,7 @@
templates:
- check-requirements
- lib-forward-testing-python3
- - openstack-lower-constraints-jobs
- - openstack-python3-victoria-jobs
+ - openstack-python3-wallaby-jobs
- periodic-stable-jobs
- publish-openstack-docs-pti
- release-notes-jobs-python3
@@ -57,4 +63,5 @@
jobs:
- oslo.cache-functional-etcd3gw
- oslo.cache-functional-dogpile.cache.bmemcached
+ - oslo.cache-functional-dogpile.cache.pymemcache
- oslo.cache-functional-memcache_pool
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.cache-2.6.1/AUTHORS new/oslo.cache-2.7.0/AUTHORS
--- old/oslo.cache-2.6.1/AUTHORS 2020-09-11 21:17:57.000000000 +0200
+++ new/oslo.cache-2.7.0/AUTHORS 2021-02-08 14:17:46.000000000 +0100
@@ -45,6 +45,7 @@
Luong Anh Tuan <[email protected]>
Matt Riedemann <[email protected]>
Matthew Thode <[email protected]>
+Michal Arbet <[email protected]>
Mois??s Guimar??es de Medeiros <[email protected]>
Monty Taylor <[email protected]>
Morgan Fainberg <[email protected]>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.cache-2.6.1/ChangeLog
new/oslo.cache-2.7.0/ChangeLog
--- old/oslo.cache-2.6.1/ChangeLog 2020-09-11 21:17:57.000000000 +0200
+++ new/oslo.cache-2.7.0/ChangeLog 2021-02-08 14:17:46.000000000 +0100
@@ -1,6 +1,16 @@
CHANGES
=======
+2.7.0
+-----
+
+* Add dogpile.cache.pymemcache backend
+* Do not hardcode flush\_on\_reconnect, move to oslo.cache config
+* Dropping lower constraints testing
+* Imported Translations from Zanata
+* Add Python3 wallaby unit tests
+* Update master for stable/victoria
+
2.6.1
-----
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.cache-2.6.1/PKG-INFO
new/oslo.cache-2.7.0/PKG-INFO
--- old/oslo.cache-2.6.1/PKG-INFO 2020-09-11 21:17:57.000000000 +0200
+++ new/oslo.cache-2.7.0/PKG-INFO 2021-02-08 14:17:46.890604700 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: oslo.cache
-Version: 2.6.1
+Version: 2.7.0
Summary: Cache storage for OpenStack projects.
Home-page: https://docs.openstack.org/oslo.cache/latest
Author: OpenStack
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.cache-2.6.1/lower-constraints.txt
new/oslo.cache-2.7.0/lower-constraints.txt
--- old/oslo.cache-2.6.1/lower-constraints.txt 2020-09-11 21:16:54.000000000
+0200
+++ new/oslo.cache-2.7.0/lower-constraints.txt 2021-02-08 14:17:12.000000000
+0100
@@ -6,7 +6,7 @@
cmd2==0.8.9
debtcollector==2.1.0
decorator==4.4.2
-dogpile.cache==1.0.2
+dogpile.cache==1.1.2
entrypoints==0.3
etcd3gw==0.2.0
extras==1.0.0
@@ -37,6 +37,7 @@
prettytable==0.7.2
pycparser==2.18
pyinotify==0.9.6
+pymemcache==3.4.0
pymongo==3.0.2
pyparsing==2.2.0
pyperclip==1.8.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.cache-2.6.1/oslo.cache.egg-info/PKG-INFO
new/oslo.cache-2.7.0/oslo.cache.egg-info/PKG-INFO
--- old/oslo.cache-2.6.1/oslo.cache.egg-info/PKG-INFO 2020-09-11
21:17:57.000000000 +0200
+++ new/oslo.cache-2.7.0/oslo.cache.egg-info/PKG-INFO 2021-02-08
14:17:46.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: oslo.cache
-Version: 2.6.1
+Version: 2.7.0
Summary: Cache storage for OpenStack projects.
Home-page: https://docs.openstack.org/oslo.cache/latest
Author: OpenStack
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.cache-2.6.1/oslo.cache.egg-info/SOURCES.txt
new/oslo.cache-2.7.0/oslo.cache.egg-info/SOURCES.txt
--- old/oslo.cache-2.6.1/oslo.cache.egg-info/SOURCES.txt 2020-09-11
21:17:57.000000000 +0200
+++ new/oslo.cache-2.7.0/oslo.cache.egg-info/SOURCES.txt 2021-02-08
14:17:46.000000000 +0100
@@ -64,6 +64,8 @@
oslo_cache/tests/functional/test_base.py
oslo_cache/tests/functional/dogpile_cache_bmemcached/__init__.py
oslo_cache/tests/functional/dogpile_cache_bmemcached/test_cache_backend.py
+oslo_cache/tests/functional/dogpile_cache_pymemcache/__init__.py
+oslo_cache/tests/functional/dogpile_cache_pymemcache/test_cache_backend.py
oslo_cache/tests/functional/etcd3gw/__init__.py
oslo_cache/tests/functional/etcd3gw/test_cache_backend.py
oslo_cache/tests/functional/memcache_pool/__init__.py
@@ -74,9 +76,11 @@
oslo_cache/tests/unit/test_connection_pool.py
oslo_cache/tests/unit/test_dict_backend.py
playbooks/tests/functional/pre.yml
+releasenotes/notes/add-dogpile.cache.pymemcache-backend-627d31a76013f8e1.yaml
releasenotes/notes/add_reno-3b4ae0789e9c45b4.yaml
releasenotes/notes/bug-1743036-320ed918d5fb4325.yaml
releasenotes/notes/bug-1819957-ccff6b0ec9d1cbf2.yaml
+releasenotes/notes/bug-1888394-5a53e7a9cb25375b.yaml
releasenotes/notes/drop-python-2-7-73d3113c69d724d6.yaml
releasenotes/notes/etcd3gw_driver-8ba4511ae9553a91.yaml
releasenotes/notes/fix-memcache-pool-backend-b9e6aaab08075d68.yaml
@@ -94,6 +98,7 @@
releasenotes/source/train.rst
releasenotes/source/unreleased.rst
releasenotes/source/ussuri.rst
+releasenotes/source/victoria.rst
releasenotes/source/_static/.placeholder
releasenotes/source/_templates/.placeholder
releasenotes/source/locale/de/LC_MESSAGES/releasenotes.po
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.cache-2.6.1/oslo.cache.egg-info/pbr.json
new/oslo.cache-2.7.0/oslo.cache.egg-info/pbr.json
--- old/oslo.cache-2.6.1/oslo.cache.egg-info/pbr.json 2020-09-11
21:17:57.000000000 +0200
+++ new/oslo.cache-2.7.0/oslo.cache.egg-info/pbr.json 2021-02-08
14:17:46.000000000 +0100
@@ -1 +1 @@
-{"git_version": "df075b2", "is_release": true}
\ No newline at end of file
+{"git_version": "062d29b", "is_release": true}
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.cache-2.6.1/oslo.cache.egg-info/requires.txt
new/oslo.cache-2.7.0/oslo.cache.egg-info/requires.txt
--- old/oslo.cache-2.6.1/oslo.cache.egg-info/requires.txt 2020-09-11
21:17:57.000000000 +0200
+++ new/oslo.cache-2.7.0/oslo.cache.egg-info/requires.txt 2021-02-08
14:17:46.000000000 +0100
@@ -1,4 +1,4 @@
-dogpile.cache>=1.0.2
+dogpile.cache>=1.1.2
oslo.config>=8.1.0
oslo.i18n>=5.0.0
oslo.log>=4.2.1
@@ -20,6 +20,7 @@
oslotest>=3.2.0
pifpaf>=0.10.0
pre-commit>=2.6.0
+pymemcache>=3.4.0
pymongo!=3.1,>=3.0.2
python-binary-memcached>=0.29.0
python-memcached>=1.56
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.cache-2.6.1/oslo_cache/_memcache_pool.py
new/oslo.cache-2.7.0/oslo_cache/_memcache_pool.py
--- old/oslo.cache-2.6.1/oslo_cache/_memcache_pool.py 2020-09-11
21:16:54.000000000 +0200
+++ new/oslo.cache-2.7.0/oslo_cache/_memcache_pool.py 2021-02-08
14:17:12.000000000 +0100
@@ -211,27 +211,7 @@
self._hosts_deaduntil = [0] * len(urls)
def _create_connection(self):
- # NOTE(morgan): Explicitly set flush_on_reconnect for pooled
- # connections. This should ensure that stale data is never consumed
- # from a server that pops in/out due to a network partition
- # or disconnect.
- #
- # See the help from python-memcached:
- #
- # param flush_on_reconnect: optional flag which prevents a
- # scenario that can cause stale data to be read: If there's more
- # than one memcached server and the connection to one is
- # interrupted, keys that mapped to that server will get
- # reassigned to another. If the first server comes back, those
- # keys will map to it again. If it still has its data, get()s
- # can read stale data that was overwritten on another
- # server. This flag is off by default for backwards
- # compatibility.
- #
- # The normal non-pooled clients connect explicitly on each use and
- # does not need the explicit flush_on_reconnect
- return _MemcacheClient(self.urls, flush_on_reconnect=True,
- **self._arguments)
+ return _MemcacheClient(self.urls, **self._arguments)
def _destroy_connection(self, conn):
conn.disconnect_all()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.cache-2.6.1/oslo_cache/_opts.py
new/oslo.cache-2.7.0/oslo_cache/_opts.py
--- old/oslo.cache-2.6.1/oslo_cache/_opts.py 2020-09-11 21:16:54.000000000
+0200
+++ new/oslo.cache-2.7.0/oslo_cache/_opts.py 2021-02-08 14:17:12.000000000
+0100
@@ -38,6 +38,7 @@
'oslo_cache.dict',
'oslo_cache.mongo',
'oslo_cache.etcd3gw',
+ 'dogpile.cache.pymemcache',
'dogpile.cache.memcached',
'dogpile.cache.pylibmc',
'dogpile.cache.bmemcached',
@@ -110,6 +111,11 @@
default=10,
help='Number of seconds that an operation will wait to get '
'a memcache client connection.'),
+ cfg.BoolOpt('memcache_pool_flush_on_reconnect',
+ default=False,
+ help='Global toggle if memcache will be flushed'
+ ' on reconnect.'
+ ' (oslo_cache.memcache_pool backend only).'),
cfg.BoolOpt('tls_enabled',
default=False,
help='Global toggle for TLS usage when comunicating with'
@@ -150,6 +156,25 @@
conf.register_opt(option, group=section)
+def set_defaults(conf, memcache_pool_flush_on_reconnect=False):
+ """Set defaults for configuration variables.
+
+ Overrides default options values.
+
+ :param conf: Configuration object, managed by the caller.
+ :type conf: oslo.config.cfg.ConfigOpts
+
+ :param memcache_pool_flush_on_reconnect: The default state for the
+ ``flush_on_reconnect`` flag. By default deactivated
+ :type memcache_pool_flush_on_reconnect: bool
+ """
+ conf.register_opt(FILE_OPTIONS, group='cache')
+
+ cfg.set_defaults(
+ FILE_OPTIONS,
+ memcache_pool_flush_on_reconnect=memcache_pool_flush_on_reconnect)
+
+
def list_opts():
"""Return a list of oslo_config options.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/oslo.cache-2.6.1/oslo_cache/backends/memcache_pool.py
new/oslo.cache-2.7.0/oslo_cache/backends/memcache_pool.py
--- old/oslo.cache-2.6.1/oslo_cache/backends/memcache_pool.py 2020-09-11
21:16:54.000000000 +0200
+++ new/oslo.cache-2.7.0/oslo_cache/backends/memcache_pool.py 2021-02-08
14:17:12.000000000 +0100
@@ -48,6 +48,8 @@
'socket_timeout': arguments.get('socket_timeout', 3.0),
'server_max_value_length':
arguments.get('server_max_value_length'),
+ 'flush_on_reconnect': arguments.get('pool_flush_on_reconnect',
+ False),
},
maxsize=arguments.get('pool_maxsize', 10),
unused_timeout=arguments.get('pool_unused_timeout', 60),
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.cache-2.6.1/oslo_cache/core.py
new/oslo.cache-2.7.0/oslo_cache/core.py
--- old/oslo.cache-2.6.1/oslo_cache/core.py 2020-09-11 21:16:54.000000000
+0200
+++ new/oslo.cache-2.7.0/oslo_cache/core.py 2021-02-08 14:17:12.000000000
+0100
@@ -139,10 +139,31 @@
# NOTE(yorik-sar): these arguments will be used for memcache-related
# backends. Use setdefault for url to support old-style setting through
# backend_argument=url:127.0.0.1:11211
+ #
+ # NOTE(morgan): Explicitly set flush_on_reconnect for pooled
+ # connections. This should ensure that stale data is never consumed
+ # from a server that pops in/out due to a network partition
+ # or disconnect.
+ #
+ # See the help from python-memcached:
+ #
+ # param flush_on_reconnect: optional flag which prevents a
+ # scenario that can cause stale data to be read: If there's more
+ # than one memcached server and the connection to one is
+ # interrupted, keys that mapped to that server will get
+ # reassigned to another. If the first server comes back, those
+ # keys will map to it again. If it still has its data, get()s
+ # can read stale data that was overwritten on another
+ # server. This flag is off by default for backwards
+ # compatibility.
+ #
+ # The normal non-pooled clients connect explicitly on each use and
+ # does not need the explicit flush_on_reconnect
conf_dict.setdefault('%s.arguments.url' % prefix,
conf.cache.memcache_servers)
for arg in ('dead_retry', 'socket_timeout', 'pool_maxsize',
- 'pool_unused_timeout', 'pool_connection_get_timeout'):
+ 'pool_unused_timeout', 'pool_connection_get_timeout',
+ 'pool_flush_on_reconnect'):
value = getattr(conf.cache, 'memcache_' + arg)
conf_dict['%s.arguments.%s' % (prefix, arg)] = value
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/oslo.cache-2.6.1/oslo_cache/tests/functional/dogpile_cache_pymemcache/test_cache_backend.py
new/oslo.cache-2.7.0/oslo_cache/tests/functional/dogpile_cache_pymemcache/test_cache_backend.py
---
old/oslo.cache-2.6.1/oslo_cache/tests/functional/dogpile_cache_pymemcache/test_cache_backend.py
1970-01-01 01:00:00.000000000 +0100
+++
new/oslo.cache-2.7.0/oslo_cache/tests/functional/dogpile_cache_pymemcache/test_cache_backend.py
2021-02-08 14:17:12.000000000 +0100
@@ -0,0 +1,29 @@
+# Copyright 2021 Red Hat, Inc.
+#
+# Licensed under the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License. You may obtain
+# a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+
+from oslo_cache.tests.functional import test_base
+
+
+class TestDogpileCachePyMemcacheBackend(test_base.BaseTestCaseCacheBackend):
+ def setUp(self):
+ self.config_fixture.config(
+ group="cache",
+ backend="dogpile.cache.pymemcache",
+ memcache_servers="localhost:11212",
+ )
+
+ # NOTE(hberaud): super must be called after all to ensure that
+ # config fixture is properly initialized with value related to
+ # the current backend in use.
+ super().setUp()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/oslo.cache-2.6.1/oslo_cache/tests/unit/test_cache_basics.py
new/oslo.cache-2.7.0/oslo_cache/tests/unit/test_cache_basics.py
--- old/oslo.cache-2.6.1/oslo_cache/tests/unit/test_cache_basics.py
2020-09-11 21:16:54.000000000 +0200
+++ new/oslo.cache-2.7.0/oslo_cache/tests/unit/test_cache_basics.py
2021-02-08 14:17:12.000000000 +0100
@@ -352,6 +352,36 @@
config_dict['test_prefix.arguments.tls_context'],
)
+ def test_cache_dictionary_config_builder_flush_on_reconnect_enabled(self):
+ """Validate we build a sane dogpile.cache dictionary config."""
+ self.config_fixture.config(group='cache',
+ enabled=True,
+ config_prefix='test_prefix',
+ backend='oslo_cache.dict',
+ memcache_pool_flush_on_reconnect=True)
+
+ config_dict = cache._build_cache_config(self.config_fixture.conf)
+
+ self.assertTrue(self.config_fixture.conf.cache.
+ memcache_pool_flush_on_reconnect)
+ self.assertTrue(config_dict['test_prefix.arguments'
+ '.pool_flush_on_reconnect'])
+
+ def test_cache_dictionary_config_builder_flush_on_reconnect_disabled(self):
+ """Validate we build a sane dogpile.cache dictionary config."""
+ self.config_fixture.config(group='cache',
+ enabled=True,
+ config_prefix='test_prefix',
+ backend='oslo_cache.dict',
+ memcache_pool_flush_on_reconnect=False)
+
+ config_dict = cache._build_cache_config(self.config_fixture.conf)
+
+ self.assertFalse(self.config_fixture.conf.cache.
+ memcache_pool_flush_on_reconnect)
+ self.assertFalse(config_dict['test_prefix.arguments'
+ '.pool_flush_on_reconnect'])
+
def test_cache_debug_proxy(self):
single_value = 'Test Value'
single_key = 'testkey'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/oslo.cache-2.6.1/releasenotes/notes/add-dogpile.cache.pymemcache-backend-627d31a76013f8e1.yaml
new/oslo.cache-2.7.0/releasenotes/notes/add-dogpile.cache.pymemcache-backend-627d31a76013f8e1.yaml
---
old/oslo.cache-2.6.1/releasenotes/notes/add-dogpile.cache.pymemcache-backend-627d31a76013f8e1.yaml
1970-01-01 01:00:00.000000000 +0100
+++
new/oslo.cache-2.7.0/releasenotes/notes/add-dogpile.cache.pymemcache-backend-627d31a76013f8e1.yaml
2021-02-08 14:17:12.000000000 +0100
@@ -0,0 +1,4 @@
+---
+features:
+ - |
+ Added a new memcached driver that uses pymemcache through dogpile.cache.
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/oslo.cache-2.6.1/releasenotes/notes/bug-1888394-5a53e7a9cb25375b.yaml
new/oslo.cache-2.7.0/releasenotes/notes/bug-1888394-5a53e7a9cb25375b.yaml
--- old/oslo.cache-2.6.1/releasenotes/notes/bug-1888394-5a53e7a9cb25375b.yaml
1970-01-01 01:00:00.000000000 +0100
+++ new/oslo.cache-2.7.0/releasenotes/notes/bug-1888394-5a53e7a9cb25375b.yaml
2021-02-08 14:17:12.000000000 +0100
@@ -0,0 +1,22 @@
+---
+fixes:
+ - |
+ [`bug 1888394 <https://bugs.launchpad.net/oslo.cache/+bug/1888394>`_]
+ If a memcache server disappears and then reconnects when multiple memcache
+ servers are used (specific to the python-memcached based backends) it is
+ possible that the server will contain stale data. To avoid this, param
+ flush_on_reconnect was used in code.
+
+ But unfortunatelly this option is causing another issue.
+ If memcache server disappears, or client had broken connection to memcache
server,
+ clients start to flush server on reconnect.
+
+ This means that network connections will go UP and can cause server to be
overloaded
+ until memcache will be unresponsive.
+
+ Simply said this option can cause loop of flushs and overloaded memcached
servers.
+ This change is moving optional parameter `flush_on_reconnect` to
oslo.cache config.
+
+features:
+ - Configuration option ``memcache_pool_flush_on_reconnect`` added to control
+ if flush will be sent to memcached server after reconnect.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.cache-2.6.1/releasenotes/source/index.rst
new/oslo.cache-2.7.0/releasenotes/source/index.rst
--- old/oslo.cache-2.6.1/releasenotes/source/index.rst 2020-09-11
21:16:54.000000000 +0200
+++ new/oslo.cache-2.7.0/releasenotes/source/index.rst 2021-02-08
14:17:12.000000000 +0100
@@ -6,6 +6,7 @@
:maxdepth: 1
unreleased
+ victoria
ussuri
train
stein
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/oslo.cache-2.6.1/releasenotes/source/locale/en_GB/LC_MESSAGES/releasenotes.po
new/oslo.cache-2.7.0/releasenotes/source/locale/en_GB/LC_MESSAGES/releasenotes.po
---
old/oslo.cache-2.6.1/releasenotes/source/locale/en_GB/LC_MESSAGES/releasenotes.po
2020-09-11 21:16:54.000000000 +0200
+++
new/oslo.cache-2.7.0/releasenotes/source/locale/en_GB/LC_MESSAGES/releasenotes.po
2021-02-08 14:17:12.000000000 +0100
@@ -5,13 +5,13 @@
# Andi Chandler <[email protected]>, 2020. #zanata
msgid ""
msgstr ""
-"Project-Id-Version: oslo.cache\n"
+"Project-Id-Version: oslo.cache Release Notes\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-04-14 11:40+0000\n"
+"POT-Creation-Date: 2020-09-14 16:49+0000\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"PO-Revision-Date: 2020-04-16 12:35+0000\n"
+"PO-Revision-Date: 2020-10-03 10:32+0000\n"
"Last-Translator: Andi Chandler <[email protected]>\n"
"Language-Team: English (United Kingdom)\n"
"Language: en_GB\n"
@@ -152,6 +152,9 @@
msgid "Ussuri Series Release Notes"
msgstr "Ussuri Series Release Notes"
+msgid "Victoria Series Release Notes"
+msgstr "Victoria Series Release Notes"
+
msgid ""
"[`bug 1743036 <https://bugs.launchpad.net/oslo.cache+bug/1743036>`_] The "
"`backend_argument` value(s) for `url` when configuring memcache did not "
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.cache-2.6.1/releasenotes/source/victoria.rst
new/oslo.cache-2.7.0/releasenotes/source/victoria.rst
--- old/oslo.cache-2.6.1/releasenotes/source/victoria.rst 1970-01-01
01:00:00.000000000 +0100
+++ new/oslo.cache-2.7.0/releasenotes/source/victoria.rst 2021-02-08
14:17:12.000000000 +0100
@@ -0,0 +1,6 @@
+=============================
+Victoria Series Release Notes
+=============================
+
+.. release-notes::
+ :branch: stable/victoria
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.cache-2.6.1/requirements.txt
new/oslo.cache-2.7.0/requirements.txt
--- old/oslo.cache-2.6.1/requirements.txt 2020-09-11 21:16:54.000000000
+0200
+++ new/oslo.cache-2.7.0/requirements.txt 2021-02-08 14:17:12.000000000
+0100
@@ -2,7 +2,7 @@
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
-dogpile.cache>=1.0.2 # BSD
+dogpile.cache>=1.1.2 # BSD
oslo.config>=8.1.0 # Apache-2.0
oslo.i18n>=5.0.0 # Apache-2.0
oslo.log>=4.2.1 # Apache-2.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.cache-2.6.1/test-requirements.txt
new/oslo.cache-2.7.0/test-requirements.txt
--- old/oslo.cache-2.6.1/test-requirements.txt 2020-09-11 21:16:54.000000000
+0200
+++ new/oslo.cache-2.7.0/test-requirements.txt 2021-02-08 14:17:12.000000000
+0100
@@ -8,6 +8,7 @@
bandit>=1.6.0,<1.7.0 # Apache-2.0
stestr>=2.0.0 # Apache-2.0
pre-commit>=2.6.0 # MIT
+pymemcache>=3.4.0 # Apache-2.0
python-binary-memcached>=0.29.0 # MIT
python-memcached>=1.56 # PSF
pymongo!=3.1,>=3.0.2 # Apache-2.0