From 44d9bbe59de526602e3cd2dee24b895a3fa57eb2 Mon Sep 17 00:00:00 2001 From: Cyril Roelandt Date: Wed, 14 Jan 2026 21:25:03 +0100 Subject: [PATCH] Deprecate eventlet-related options We will be removing eventlet altogether starting with the H or I release. Change-Id: I3aa71bbf21948a23d948fc8b247db692b0f874ab Signed-off-by: Cyril Roelandt --- glance/common/wsgi.py | 24 +++++++++++++++++++ ...eventlet-deprecation-465f47fe1b4ba2c4.yaml | 5 ++++ 2 files changed, 29 insertions(+) create mode 100644 releasenotes/notes/eventlet-deprecation-465f47fe1b4ba2c4.yaml diff --git a/glance/common/wsgi.py b/glance/common/wsgi.py index 6e268877fa..ddfd2f0cb7 100644 --- a/glance/common/wsgi.py +++ b/glance/common/wsgi.py @@ -56,8 +56,17 @@ from glance.i18n import _, _LE, _LI, _LW from glance import sqlite_migration +EVENTLET_DEPRECATION_REASON = """ +Eventlet has been deprecated in the Gazpacho release. Glance is now expected to +be run using WSGI. The eventlet implementation will be removed in either the H +release or the I release. +""" + + bind_opts = [ cfg.HostAddressOpt('bind_host', + deprecated_reason=EVENTLET_DEPRECATION_REASON, + deprecated_since='Gazpacho', default='0.0.0.0', help=_(""" IP address to bind the glance servers to. @@ -79,6 +88,8 @@ Related options: """)), cfg.PortOpt('bind_port', + deprecated_reason=EVENTLET_DEPRECATION_REASON, + deprecated_since='Gazpacho', help=_(""" Port number on which the server will listen. @@ -98,6 +109,8 @@ Related options: socket_opts = [ cfg.IntOpt('backlog', + deprecated_reason=EVENTLET_DEPRECATION_REASON, + deprecated_since='Gazpacho', default=4096, min=1, help=_(""" @@ -119,6 +132,8 @@ Related options: """)), cfg.IntOpt('tcp_keepidle', + deprecated_reason=EVENTLET_DEPRECATION_REASON, + deprecated_since='Gazpacho', default=600, min=1, help=_(""" @@ -141,8 +156,11 @@ Related options: """)), ] + eventlet_opts = [ cfg.IntOpt('workers', + deprecated_reason=EVENTLET_DEPRECATION_REASON, + deprecated_since='Gazpacho', min=0, help=_(""" Number of Glance worker processes to start. @@ -170,6 +188,8 @@ Related options: """)), cfg.IntOpt('max_header_line', + deprecated_reason=EVENTLET_DEPRECATION_REASON, + deprecated_since='Gazpacho', default=16384, min=0, help=_(""" @@ -196,6 +216,8 @@ Related options: """)), cfg.BoolOpt('http_keepalive', + deprecated_reason=EVENTLET_DEPRECATION_REASON, + deprecated_since='Gazpacho', default=True, help=_(""" Set keep alive option for HTTP over TCP. @@ -221,6 +243,8 @@ Related options: """)), cfg.IntOpt('client_socket_timeout', + deprecated_reason=EVENTLET_DEPRECATION_REASON, + deprecated_since='Gazpacho', default=900, min=0, help=_(""" diff --git a/releasenotes/notes/eventlet-deprecation-465f47fe1b4ba2c4.yaml b/releasenotes/notes/eventlet-deprecation-465f47fe1b4ba2c4.yaml new file mode 100644 index 0000000000..1d1df236d1 --- /dev/null +++ b/releasenotes/notes/eventlet-deprecation-465f47fe1b4ba2c4.yaml @@ -0,0 +1,5 @@ +--- +deprecations: + - | + The eventlet server has been deprecated. Glance must now be run using + WSGI.