Deprecate eventlet related configuration
The "standard-threads", "pydev-debug-host" and "pydev-debug-port" cli configuration items were only used by Keystone eventlet model in Newton release. Deprecate them now. Change-Id: If4f2f318999fc291ce93b12ce57a95dfca5dcf05 bp: deprecated-as-of-stein
This commit is contained in:
parent
9f2b84608e
commit
62e2d91437
@ -15,6 +15,7 @@ import logging
|
||||
from oslo_cache import core as cache
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log
|
||||
from oslo_log import versionutils
|
||||
import oslo_messaging
|
||||
from oslo_middleware import cors
|
||||
from osprofiler import opts as profiler
|
||||
@ -88,6 +89,8 @@ conf_modules = [
|
||||
|
||||
|
||||
oslo_messaging.set_transport_defaults(control_exchange='keystone')
|
||||
_DEPRECATED_REASON = ('This option is only used by eventlet mode which has'
|
||||
'been removed from Keystone in Newton release.')
|
||||
|
||||
|
||||
def set_default_for_default_log_levels():
|
||||
@ -122,13 +125,22 @@ def configure(conf=None):
|
||||
|
||||
conf.register_cli_opt(
|
||||
cfg.BoolOpt('standard-threads', default=False,
|
||||
help='Do not monkey-patch threading system modules.'))
|
||||
help='Do not monkey-patch threading system modules.',
|
||||
deprecated_for_removal=True,
|
||||
deprecated_reason=_DEPRECATED_REASON,
|
||||
deprecated_since=versionutils.deprecated.STEIN))
|
||||
conf.register_cli_opt(
|
||||
cfg.StrOpt('pydev-debug-host',
|
||||
help='Host to connect to for remote debugger.'))
|
||||
help='Host to connect to for remote debugger.',
|
||||
deprecated_for_removal=True,
|
||||
deprecated_reason=_DEPRECATED_REASON,
|
||||
deprecated_since=versionutils.deprecated.STEIN))
|
||||
conf.register_cli_opt(
|
||||
cfg.PortOpt('pydev-debug-port',
|
||||
help='Port to connect to for remote debugger.'))
|
||||
help='Port to connect to for remote debugger.',
|
||||
deprecated_for_removal=True,
|
||||
deprecated_reason=_DEPRECATED_REASON,
|
||||
deprecated_since=versionutils.deprecated.STEIN))
|
||||
|
||||
for module in conf_modules:
|
||||
module.register_opts(conf)
|
||||
|
@ -0,0 +1,7 @@
|
||||
---
|
||||
deprecations:
|
||||
- >
|
||||
The commandline options `standard-threads, `pydev-debug-host` and
|
||||
`pydev-debug-port` are only used by Keystone eventlet model in Newton
|
||||
release before. They are deprecated now and will be removed in the next
|
||||
release.
|
Loading…
x
Reference in New Issue
Block a user