deprecate `wsgi_log_format` config variable

Running under a real wsgi environment, such as uwsgi or apache /
mod_wsgi is preferred now, and there is a different logging solution
for that. This was always an eventlet leaky abstraction. So we'll just
deprecate this for now, and the code can be removed once eventlet on
the API side is removed.

Change-Id: I934a1693cbfd539d8575d022519510d19d13aaab
This commit is contained in:
Sean Dague 2017-07-24 10:00:01 -04:00 committed by melanie witt
parent fdf27abf7d
commit 27c341c1bf
2 changed files with 17 additions and 1 deletions

View File

@ -45,12 +45,22 @@ Possible values:
default='%(client_ip)s "%(request_line)s" status: %(status_code)s'
' len: %(body_length)s time: %(wall_seconds).7f',
deprecated_group='DEFAULT',
deprecated_for_removal=True,
deprecated_since='16.0.0',
deprecated_reason="""
This option only works when running nova-api under eventlet, and
encodes very eventlet specific pieces of information. Starting in Pike
the preferred model for running nova-api is under uwsgi or apache
mod_wsgi.
""",
help="""
It represents a python format string that is used as the template to generate
log lines. The following values can be formatted into it: client_ip,
date_time, request_line, status_code, body_length, wall_seconds.
This option is used for building custom request loglines.
This option is used for building custom request loglines when running
nova-api under eventlet. If used under uwsgi or apache, this option
has no effect.
Possible values:

View File

@ -0,0 +1,6 @@
---
deprecations:
- |
Configuration option ``wsgi_log_format`` is deprecated. This only
applies when running nova-api under eventlet, which is no longer
the preferred deployment mode.