From 4a0ecd0e874ccefad60fe450eef3271148ea626b Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Thu, 21 May 2020 15:00:59 -0700 Subject: [PATCH] Add warning when running simple_server This patch adds a warning log message that the Octavia API is being run under simple_server. Change-Id: Ida3acd6f3ba81facc929a4a2c3bd75c6971059c7 Story: 2007702 Task: 39818 --- octavia/cmd/api.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/octavia/cmd/api.py b/octavia/cmd/api.py index b44ed45dbd..d39bd1bc67 100644 --- a/octavia/cmd/api.py +++ b/octavia/cmd/api.py @@ -41,6 +41,10 @@ def main(): 'not set to "keystone". This is not a normal ' 'configuration and you may get "Missing project ID" ' 'errors from API calls."') + LOG.warning('You are running the Octavia API wsgi application using ' + 'simple_server. We do not recommend this outside of simple ' + 'testing. We recommend you run the Octavia API wsgi with ' + 'a more full function server such as gunicorn or uWSGI.') srv = simple_server.make_server(host, port, app) srv.serve_forever()