Merge "Add warning when running simple_server"

This commit is contained in:
Zuul 2020-06-30 00:17:43 +00:00 committed by Gerrit Code Review
commit a1b5b81cc5
1 changed files with 4 additions and 0 deletions

View File

@ -41,6 +41,10 @@ def main():
'not set to "keystone". This is not a normal ' 'not set to "keystone". This is not a normal '
'configuration and you may get "Missing project ID" ' 'configuration and you may get "Missing project ID" '
'errors from API calls."') '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 = simple_server.make_server(host, port, app)
srv.serve_forever() srv.serve_forever()