Remove deprecated wsgi config options

This was marked for deprecation when we removed
eventlet, let's remove it and any related code.

TrivialFix

Signed-off-by: Brian Haley <haleyb.dev@gmail.com>
Change-Id: I557639cb35728340a2dd738cdc76b6d08b424451
This commit is contained in:
Brian Haley committed 2026-04-15 11:15:54 -04:00
1 parent e8107e9e5b
commit 150faa0f37
3 files changed
-54

No files matched your search

-5
View File
@@ -18,7 +18,6 @@ Utility methods for working with WSGI servers
"""
from neutron_lib import context
from neutron_lib import exceptions as exception
from oslo_config import cfg
import oslo_i18n
from oslo_log import log as logging
from oslo_serialization import jsonutils
@@ -29,10 +28,6 @@ import webob.dec
import webob.exc
from neutron._i18n import _
from neutron.conf import wsgi as wsgi_config
CONF = cfg.CONF
wsgi_config.register_socket_opts()
LOG = logging.getLogger(__name__)
-46
View File
@@ -1,46 +0,0 @@
# Copyright 2011 OpenStack Foundation.
# All Rights Reserved.
#
# 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_service import wsgi
from neutron._i18n import _
socket_opts = [
cfg.IntOpt('backlog',
default=4096,
deprecated_for_removal=True,
deprecated_since='2026.1',
deprecated_reason=_("This option has no effect."),
help=_("Number of backlog requests to configure "
"the socket with")),
cfg.IntOpt('retry_until_window',
default=30,
deprecated_for_removal=True,
deprecated_since='2026.1',
deprecated_reason=_("This option has no effect."),
help=_("Number of seconds to keep retrying to listen")),
cfg.BoolOpt('use_ssl',
default=False,
deprecated_for_removal=True,
deprecated_since='2026.1',
deprecated_reason=_("This option has no effect."),
help=_('Enable SSL on the API server')),
]
def register_socket_opts(cfg=cfg.CONF):
cfg.register_opts(socket_opts)
wsgi.register_opts(cfg)
-3
View File
@@ -22,7 +22,6 @@ from oslo_config import cfg
# load all options.
import neutron.agent.agent_extensions_manager # noqa: F401
import neutron.agent.securitygroups_rpc # noqa: F401
import neutron.api.wsgi # noqa: F401
import neutron.conf.agent.agent_extensions_manager
import neutron.conf.agent.common
import neutron.conf.agent.database.agents_db
@@ -59,7 +58,6 @@ import neutron.conf.services.extdns_designate_driver
import neutron.conf.services.logging
import neutron.conf.services.metering_agent
import neutron.conf.services.provider_configuration
import neutron.conf.wsgi
import neutron.db.migration.cli
import neutron.extensions.l3 # noqa: F401
import neutron.extensions.securitygroup # noqa: F401
@@ -186,7 +184,6 @@ def list_opts():
itertools.chain(
neutron.conf.common.core_cli_opts,
neutron.conf.common.core_opts,
neutron.conf.wsgi.socket_opts,
neutron.conf.service.SERVICE_OPTS,
neutron.conf.service.RPC_EXTRA_OPTS)
),