Don't deprecate the entire oslo_service.wsgi module
The aforementioned contains many utilities beyond the eventlet-based server, which are used across OpenStack. While these utilities should arguably have never been added to oslo.service and would be better placed in another service (e.g. an oslo.wsgi library), the reality is that they are here now and we're can't deprecate them until that move happens. Remove the module deprecation, and instead deprecate the class. Change-Id: I6e8e7b3a44ca06488cf87631de3a5526f7c8496c Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
This commit is contained in:
@@ -37,18 +37,6 @@ from oslo_service import sslutils
|
||||
|
||||
from debtcollector import removals
|
||||
|
||||
removals.removed_module(
|
||||
__name__,
|
||||
replacement="uwsgi",
|
||||
removal_version="2026.2",
|
||||
message=(
|
||||
"The 'oslo_service.wsgi' module is deprecated and will be removed in "
|
||||
"version 2026.2. We recommend transitioning to 'uwsgi' for serving "
|
||||
"WSGI applications."
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -67,6 +55,15 @@ class InvalidInput(Exception):
|
||||
"Unexpected argument for periodic task creation: %(arg)s.")
|
||||
|
||||
|
||||
@removals.removed_class(
|
||||
'Server',
|
||||
removal_version="2026.2",
|
||||
message=(
|
||||
"The Server class utilises the eventlet service, and eventlet support "
|
||||
"is deprecated for removal. You should remove use of eventlet servers "
|
||||
"from your application and switch to deploying via WSGI."
|
||||
)
|
||||
)
|
||||
class Server(service.ServiceBase):
|
||||
"""Server class to manage a WSGI server, serving a WSGI application."""
|
||||
|
||||
|
@@ -0,0 +1,6 @@
|
||||
---
|
||||
upgrade:
|
||||
- |
|
||||
The ``oslo_service.wsgi`` module has been undeprecated. It contains many
|
||||
utilities besides the eventlet-based ``Server`` class. Instead, only the
|
||||
``Server`` class itself is now deprecated.
|
Reference in New Issue
Block a user