Now keystonemiddleware use oslo.cache to init the
MemcacheClientPool. The MemcacheClientPool in
Olso.cache needs (urls, arguments, **kwargs) parameter
to init, but keystonemiddleware passed only
(urls, **kwargs). Then it leads the error:
__init__() takes exactly 3 arguments (2 given)
This patch fixed this issue.
Please note that even this error is fixed, set
"memcache_use_advanced_pool = True" will lead another
error, see bug #1747565 for the detail. It will be
fixed in the following patch.
Reviewed: https:/ /review. openstack. org/583684 /git.openstack. org/cgit/ openstack/ keystonemiddlew are/commit/ ?id=c21f7f43eef 21f4b78273058b8 6fc5b9005f1d93
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit c21f7f43eef21f4 b78273058b86fc5 b9005f1d93
Author: wangxiyuan <email address hidden>
Date: Thu Feb 8 17:19:28 2018 +0800
Add arguments for MemcacheClientPool init
Now keystonemiddleware use oslo.cache to init the entPool. The MemcacheClientPool in
MemcacheCli
Olso.cache needs (urls, arguments, **kwargs) parameter
to init, but keystonemiddleware passed only
(urls, **kwargs). Then it leads the error:
__init__() takes exactly 3 arguments (2 given)
This patch fixed this issue.
Please note that even this error is fixed, set use_advanced_ pool = True" will lead another
"memcache_
error, see bug #1747565 for the detail. It will be
fixed in the following patch.
Conflicts: ddleware/ tests/unit/ auth_token/ test_cache. py
keystonemi
Closes-bug: #1748160 207314312a6b6a0 6a6de23e92c ecf117bd56f7691 74508dc269)
Change-Id: I642f959ab8b010
(cherry picked from commit ce06c0ce1035964