Merge "Don't deprecate the entire oslo_service.wsgi module"
This commit is contained in:
@@ -37,18 +37,6 @@ from oslo_service import sslutils
|
|||||||
|
|
||||||
from debtcollector import removals
|
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__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
@@ -67,6 +55,15 @@ class InvalidInput(Exception):
|
|||||||
"Unexpected argument for periodic task creation: %(arg)s.")
|
"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):
|
class Server(service.ServiceBase):
|
||||||
"""Server class to manage a WSGI server, serving a WSGI application."""
|
"""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