Hello community,

here is the log from the commit of package python-oslo.cache for 
openSUSE:Factory checked in at 2019-06-12 13:16:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-oslo.cache (Old)
 and      /work/SRC/openSUSE:Factory/.python-oslo.cache.new.4811 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-oslo.cache"

Wed Jun 12 13:16:02 2019 rev:8 rq:709042 version:1.33.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-oslo.cache/python-oslo.cache.changes      
2019-05-03 22:42:04.323196684 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-oslo.cache.new.4811/python-oslo.cache.changes
    2019-06-12 13:16:03.664705827 +0200
@@ -1,0 +2,9 @@
+Tue Jun 11 06:15:29 UTC 2019 - [email protected]
+
+- update to version 1.33.3
+  - OpenDev Migration Patch
+  - Update .gitreview for stable/stein
+  - Pass `flush_on_reconnect` to memcache pooled backend
+  - Update UPPER_CONSTRAINTS_FILE for stable/stein
+
+-------------------------------------------------------------------

Old:
----
  oslo.cache-1.33.2.tar.gz

New:
----
  oslo.cache-1.33.3.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-oslo.cache.spec ++++++
--- /var/tmp/diff_new_pack.W92j5p/_old  2019-06-12 13:16:04.124705345 +0200
+++ /var/tmp/diff_new_pack.W92j5p/_new  2019-06-12 13:16:04.128705340 +0200
@@ -17,13 +17,13 @@
 
 
 Name:           python-oslo.cache
-Version:        1.33.2
+Version:        1.33.3
 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-1.33.2.tar.gz
+Source0:        
https://files.pythonhosted.org/packages/source/o/oslo.cache/oslo.cache-1.33.3.tar.gz
 BuildRequires:  openstack-macros
 BuildRequires:  python-devel
 BuildRequires:  python2-dogpile.cache >= 0.6.2
@@ -36,7 +36,7 @@
 BuildRequires:  python2-pbr
 BuildRequires:  python2-pymongo
 BuildRequires:  python2-python-memcached
-BuildRequires:  python2-six >= 1.10.0
+BuildRequires:  python2-six >= 1.11.0
 BuildRequires:  python2-stestr
 BuildRequires:  python3-devel
 BuildRequires:  python3-dogpile.cache >= 0.6.2
@@ -49,7 +49,7 @@
 BuildRequires:  python3-pbr
 BuildRequires:  python3-pymongo
 BuildRequires:  python3-python-memcached
-BuildRequires:  python3-six >= 1.10.0
+BuildRequires:  python3-six >= 1.11.0
 BuildRequires:  python3-stestr
 Requires:       python-dogpile.cache >= 0.6.2
 Requires:       python-oslo.config >= 5.2.0
@@ -57,7 +57,7 @@
 Requires:       python-oslo.log >= 3.36.0
 Requires:       python-oslo.utils >= 3.33.0
 Requires:       python-python-memcached
-Requires:       python-six >= 1.10.0
+Requires:       python-six >= 1.11.0
 BuildArch:      noarch
 %python_subpackages
 
@@ -78,7 +78,7 @@
 Documentation for the OpenStack Oslo cache library.
 
 %prep
-%autosetup -p1 -n oslo.cache-1.33.2
+%autosetup -p1 -n oslo.cache-1.33.3
 %py_req_cleanup
 
 %build
@@ -88,7 +88,7 @@
 %{python_install}
 
 # generate html docs
-PBR_VERSION=1.33.2 sphinx-build -b html doc/source doc/build/html
+PBR_VERSION=1.33.3 sphinx-build -b html doc/source doc/build/html
 # remove the sphinx-build leftovers
 rm -rf doc/build/html/.{doctrees,buildinfo}
 

++++++ oslo.cache-1.33.2.tar.gz -> oslo.cache-1.33.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.cache-1.33.2/ChangeLog 
new/oslo.cache-1.33.3/ChangeLog
--- old/oslo.cache-1.33.2/ChangeLog     2019-03-01 15:43:49.000000000 +0100
+++ new/oslo.cache-1.33.3/ChangeLog     2019-05-16 08:26:54.000000000 +0200
@@ -1,6 +1,14 @@
 CHANGES
 =======
 
+1.33.3
+------
+
+* Pass \`flush\_on\_reconnect\` to memcache pooled backend
+* OpenDev Migration Patch
+* Update UPPER\_CONSTRAINTS\_FILE for stable/stein
+* Update .gitreview for stable/stein
+
 1.33.2
 ------
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.cache-1.33.2/PKG-INFO 
new/oslo.cache-1.33.3/PKG-INFO
--- old/oslo.cache-1.33.2/PKG-INFO      2019-03-01 15:43:50.000000000 +0100
+++ new/oslo.cache-1.33.3/PKG-INFO      2019-05-16 08:26:54.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: oslo.cache
-Version: 1.33.2
+Version: 1.33.3
 Summary: Cache storage for OpenStack projects.
 Home-page: https://docs.openstack.org/oslo.cache/latest
 Author: OpenStack
@@ -53,7 +53,7 @@
 Classifier: Programming Language :: Python :: 2.7
 Classifier: Programming Language :: Python :: 3
 Classifier: Programming Language :: Python :: 3.5
-Provides-Extra: etcd3gw
 Provides-Extra: mongo
 Provides-Extra: test
 Provides-Extra: dogpile
+Provides-Extra: etcd3gw
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.cache-1.33.2/oslo.cache.egg-info/PKG-INFO 
new/oslo.cache-1.33.3/oslo.cache.egg-info/PKG-INFO
--- old/oslo.cache-1.33.2/oslo.cache.egg-info/PKG-INFO  2019-03-01 
15:43:49.000000000 +0100
+++ new/oslo.cache-1.33.3/oslo.cache.egg-info/PKG-INFO  2019-05-16 
08:26:54.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: oslo.cache
-Version: 1.33.2
+Version: 1.33.3
 Summary: Cache storage for OpenStack projects.
 Home-page: https://docs.openstack.org/oslo.cache/latest
 Author: OpenStack
@@ -53,7 +53,7 @@
 Classifier: Programming Language :: Python :: 2.7
 Classifier: Programming Language :: Python :: 3
 Classifier: Programming Language :: Python :: 3.5
-Provides-Extra: etcd3gw
 Provides-Extra: mongo
 Provides-Extra: test
 Provides-Extra: dogpile
+Provides-Extra: etcd3gw
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.cache-1.33.2/oslo.cache.egg-info/SOURCES.txt 
new/oslo.cache-1.33.3/oslo.cache.egg-info/SOURCES.txt
--- old/oslo.cache-1.33.2/oslo.cache.egg-info/SOURCES.txt       2019-03-01 
15:43:50.000000000 +0100
+++ new/oslo.cache-1.33.3/oslo.cache.egg-info/SOURCES.txt       2019-05-16 
08:26:54.000000000 +0200
@@ -66,6 +66,7 @@
 oslo_cache/tests/functional/test_cache_backend_etcd3gw.py
 releasenotes/notes/add_reno-3b4ae0789e9c45b4.yaml
 releasenotes/notes/bug-1743036-320ed918d5fb4325.yaml
+releasenotes/notes/bug-1819957-ccff6b0ec9d1cbf2.yaml
 releasenotes/notes/etcd3gw_driver-8ba4511ae9553a91.yaml
 releasenotes/notes/memcache_socket_timeout-a7db772f052c107e.yaml
 releasenotes/source/conf.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.cache-1.33.2/oslo.cache.egg-info/pbr.json 
new/oslo.cache-1.33.3/oslo.cache.egg-info/pbr.json
--- old/oslo.cache-1.33.2/oslo.cache.egg-info/pbr.json  2019-03-01 
15:43:49.000000000 +0100
+++ new/oslo.cache-1.33.3/oslo.cache.egg-info/pbr.json  2019-05-16 
08:26:54.000000000 +0200
@@ -1 +1 @@
-{"git_version": "f4a25f6", "is_release": true}
\ No newline at end of file
+{"git_version": "aeb9577", "is_release": true}
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.cache-1.33.2/oslo_cache/_memcache_pool.py 
new/oslo.cache-1.33.3/oslo_cache/_memcache_pool.py
--- old/oslo.cache-1.33.2/oslo_cache/_memcache_pool.py  2019-03-01 
15:41:31.000000000 +0100
+++ new/oslo.cache-1.33.3/oslo_cache/_memcache_pool.py  2019-05-16 
08:24:43.000000000 +0200
@@ -215,7 +215,27 @@
         self._hosts_deaduntil = [0] * len(urls)
 
     def _create_connection(self):
-        return _MemcacheClient(self.urls, **self._arguments)
+        # 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)
 
     def _destroy_connection(self, conn):
         conn.disconnect_all()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/oslo.cache-1.33.2/releasenotes/notes/bug-1819957-ccff6b0ec9d1cbf2.yaml 
new/oslo.cache-1.33.3/releasenotes/notes/bug-1819957-ccff6b0ec9d1cbf2.yaml
--- old/oslo.cache-1.33.2/releasenotes/notes/bug-1819957-ccff6b0ec9d1cbf2.yaml  
1970-01-01 01:00:00.000000000 +0100
+++ new/oslo.cache-1.33.3/releasenotes/notes/bug-1819957-ccff6b0ec9d1cbf2.yaml  
2019-05-16 08:24:40.000000000 +0200
@@ -0,0 +1,24 @@
+---
+fixes:
+  - |
+    [`bug 1819957 <https://bugs.launchpad.net/keystone/+bug/1819957>`_]
+    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. The default is now to
+    supply the ``flush_on_reconnect`` optional argument to the backend. This
+    means that when the service connects to a memcache server, it will flush
+    all cached data in the server. This change only impacts the pooled backend
+    as it is the most likely (with heavy use of greenlet) to be impacted
+    by the problem and is the recommended production configuration.
+
+    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.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/oslo.cache-1.33.2/tox.ini 
new/oslo.cache-1.33.3/tox.ini
--- old/oslo.cache-1.33.2/tox.ini       2019-03-01 15:41:31.000000000 +0100
+++ new/oslo.cache-1.33.3/tox.ini       2019-05-16 08:24:43.000000000 +0200
@@ -7,7 +7,7 @@
     VIRTUAL_ENV={envdir}
     BRANCH_NAME=master
     CLIENT_NAME=oslo.cache
-install_command = {toxinidir}/tools/tox_install.sh 
{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
 {opts} {packages}
+install_command = {toxinidir}/tools/tox_install.sh 
{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/stein}
 {opts} {packages}
 deps = .[dogpile]
        .[mongo]
        .[etcd3gw]


Reply via email to