From b53d81b03cad73fac7f558d287db0354f0a46ec1 Mon Sep 17 00:00:00 2001 From: Matt Riedemann Date: Sat, 3 Mar 2018 17:48:43 -0500 Subject: [PATCH] Deprecate running API services under eventlet This sets the timer on removing support for running API services under eventlet. Nova has supported running under WSGI since Pike, and does run with Apache by default in the gate. Change-Id: I83d6c100d0d2628f38a029cffa22d0c2bc15d667 --- nova/service.py | 4 ++++ .../notes/deprecate-api-eventlet-1a0279f1f2333082.yaml | 5 +++++ 2 files changed, 9 insertions(+) create mode 100644 releasenotes/notes/deprecate-api-eventlet-1a0279f1f2333082.yaml diff --git a/nova/service.py b/nova/service.py index 37c5fdbdd9f2..260a1d66cf75 100644 --- a/nova/service.py +++ b/nova/service.py @@ -325,6 +325,10 @@ class WSGIService(service.Service): # NOTE(danms): Name can be metadata, osapi_compute, per # nova.service's enabled_apis self.binary = 'nova-%s' % name + + LOG.warning('Running %s using eventlet is deprecated. Deploy with ' + 'a WSGI server such as uwsgi or mod_wsgi.', self.binary) + self.topic = None self.manager = self._get_manager() self.loader = loader or api_wsgi.Loader() diff --git a/releasenotes/notes/deprecate-api-eventlet-1a0279f1f2333082.yaml b/releasenotes/notes/deprecate-api-eventlet-1a0279f1f2333082.yaml new file mode 100644 index 000000000000..39b31acc18d4 --- /dev/null +++ b/releasenotes/notes/deprecate-api-eventlet-1a0279f1f2333082.yaml @@ -0,0 +1,5 @@ +--- +deprecations: + - | + Running API services (nova-osapi_compute or nova-metadata) with eventlet + is now deprecated. Deploy with a WSGI server such as uwsgi or mod_wsgi.