oslo.config override gunicorn command line

Bug #1897238 reported by Mystic
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo.config
New
Undecided
Unassigned

Bug Description

I have a flask app that was wrapped by WSGI middleware that is to log for each request. In the custom middleware, I use oslo.config to read from the config file(Not from the CLI parameters, from 'default_config_files'). When starting the app with Gunicorn, it throws the error:

gunicorn: error: unrecognized arguments: -c /etc/cc/server.conf cc_api.socket_io:application
usage: gunicorn [-h] [--config-dir DIR] [--config-file PATH]

I use this gunicorn command to start app:
gunicorn -c /etc/cc/server.conf cc_api.socket_io:application

The usage I used is right? If not, how to use oslo.config?

BTW, I do not want to get config file path from CLI.

Tags: oslo
Mystic (pplmx)
tags: added: oslo
Mystic (pplmx)
description: updated
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.