Remove deprecated [memcache] options
These options have had no effect and were formally deprecated during
Yoga cycle[1].
[1] 9a8686aee0
Related-Bug: #1941020
Change-Id: I9ac00109bd278bc4813a45358aeda848ab7318de
This commit is contained in:
parent
262d763f79
commit
1a41ed0999
@ -38,7 +38,6 @@ from keystone.conf import identity
|
|||||||
from keystone.conf import identity_mapping
|
from keystone.conf import identity_mapping
|
||||||
from keystone.conf import jwt_tokens
|
from keystone.conf import jwt_tokens
|
||||||
from keystone.conf import ldap
|
from keystone.conf import ldap
|
||||||
from keystone.conf import memcache
|
|
||||||
from keystone.conf import oauth1
|
from keystone.conf import oauth1
|
||||||
from keystone.conf import oauth2
|
from keystone.conf import oauth2
|
||||||
from keystone.conf import policy
|
from keystone.conf import policy
|
||||||
@ -77,7 +76,6 @@ conf_modules = [
|
|||||||
identity_mapping,
|
identity_mapping,
|
||||||
jwt_tokens,
|
jwt_tokens,
|
||||||
ldap,
|
ldap,
|
||||||
memcache,
|
|
||||||
oauth1,
|
oauth1,
|
||||||
oauth2,
|
oauth2,
|
||||||
policy,
|
policy,
|
||||||
|
@ -1,105 +0,0 @@
|
|||||||
# 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_config import cfg
|
|
||||||
from oslo_log import versionutils
|
|
||||||
|
|
||||||
from keystone.conf import utils
|
|
||||||
|
|
||||||
|
|
||||||
dead_retry = cfg.IntOpt(
|
|
||||||
'dead_retry',
|
|
||||||
default=5 * 60,
|
|
||||||
deprecated_for_removal=True,
|
|
||||||
deprecated_reason='This option has no effect. '
|
|
||||||
'Configure ``keystone.conf [cache] '
|
|
||||||
'memcache_dead_retry`` option to set the '
|
|
||||||
'dead_retry of memcached instead. ',
|
|
||||||
deprecated_since='Y',
|
|
||||||
help=utils.fmt("""
|
|
||||||
Number of seconds memcached server is considered dead before it is tried again.
|
|
||||||
This is used by the key value store system.
|
|
||||||
"""))
|
|
||||||
|
|
||||||
socket_timeout = cfg.IntOpt(
|
|
||||||
'socket_timeout',
|
|
||||||
default=3,
|
|
||||||
deprecated_for_removal=True,
|
|
||||||
deprecated_reason='This option has no effect. '
|
|
||||||
'Configure ``keystone.conf [cache] '
|
|
||||||
'memcache_socket_timeout`` option to set the '
|
|
||||||
'socket_timeout of memcached instead. ',
|
|
||||||
deprecated_since=versionutils.deprecated.TRAIN,
|
|
||||||
help=utils.fmt("""
|
|
||||||
Timeout in seconds for every call to a server. This is used by the key value
|
|
||||||
store system.
|
|
||||||
"""))
|
|
||||||
|
|
||||||
pool_maxsize = cfg.IntOpt(
|
|
||||||
'pool_maxsize',
|
|
||||||
default=10,
|
|
||||||
deprecated_for_removal=True,
|
|
||||||
deprecated_reason='This option has no effect. '
|
|
||||||
'Configure ``keystone.conf [cache] '
|
|
||||||
'memcache_pool_maxsize`` option to set the '
|
|
||||||
'pool_maxsize of memcached instead. ',
|
|
||||||
deprecated_since='Y',
|
|
||||||
help=utils.fmt("""
|
|
||||||
Max total number of open connections to every memcached server. This is used by
|
|
||||||
the key value store system.
|
|
||||||
"""))
|
|
||||||
|
|
||||||
pool_unused_timeout = cfg.IntOpt(
|
|
||||||
'pool_unused_timeout',
|
|
||||||
default=60,
|
|
||||||
deprecated_for_removal=True,
|
|
||||||
deprecated_reason='This option has no effect. '
|
|
||||||
'Configure ``keystone.conf [cache] '
|
|
||||||
'memcache_pool_unused_timeout`` option to set the '
|
|
||||||
'pool_unused_timeout of memcached instead. ',
|
|
||||||
deprecated_since='Y',
|
|
||||||
help=utils.fmt("""
|
|
||||||
Number of seconds a connection to memcached is held unused in the pool before
|
|
||||||
it is closed. This is used by the key value store system.
|
|
||||||
"""))
|
|
||||||
|
|
||||||
pool_connection_get_timeout = cfg.IntOpt(
|
|
||||||
'pool_connection_get_timeout',
|
|
||||||
default=10,
|
|
||||||
deprecated_for_removal=True,
|
|
||||||
deprecated_reason='This option has no effect. '
|
|
||||||
'Configure ``keystone.conf [cache] '
|
|
||||||
'memcache_pool_connection_get_timeout`` option to set '
|
|
||||||
'the connection_get_timeout of memcached instead. ',
|
|
||||||
deprecated_since='Y',
|
|
||||||
help=utils.fmt("""
|
|
||||||
Number of seconds that an operation will wait to get a memcache client
|
|
||||||
connection. This is used by the key value store system.
|
|
||||||
"""))
|
|
||||||
|
|
||||||
|
|
||||||
GROUP_NAME = __name__.split('.')[-1]
|
|
||||||
ALL_OPTS = [
|
|
||||||
dead_retry,
|
|
||||||
socket_timeout,
|
|
||||||
pool_maxsize,
|
|
||||||
pool_unused_timeout,
|
|
||||||
pool_connection_get_timeout,
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
def register_opts(conf):
|
|
||||||
conf.register_opts(ALL_OPTS, group=GROUP_NAME)
|
|
||||||
|
|
||||||
|
|
||||||
def list_opts():
|
|
||||||
return {GROUP_NAME: ALL_OPTS}
|
|
11
releasenotes/notes/bug-1941020-cleanup-541a2d372a1cf4cd.yaml
Normal file
11
releasenotes/notes/bug-1941020-cleanup-541a2d372a1cf4cd.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
---
|
||||||
|
upgrade:
|
||||||
|
- |
|
||||||
|
The following deprecated options in the ``[memcache]`` section have been
|
||||||
|
removed.
|
||||||
|
|
||||||
|
- ``dead_retry``
|
||||||
|
- ``pool_maxsize``
|
||||||
|
- ``pool_unused_timeout``
|
||||||
|
- ``pool_connection_get_timeout``
|
||||||
|
|
Loading…
Reference in New Issue
Block a user