d38b7e13a6
At least uwsgi supports passing command line arguments to python wsgi apps by specifying them as --pyargv for to uwsgi binary. Then the wsgi app can access them normally via sys.argv. This patch makes sure that nova-api and nova-metadata-api passes sys.argv to oslo.config and therefore specifying config files for these services now possible. For example the following line in the systemclt service file makes sure that the nova-api service reads both the nova.conf and the nova-extra.conf ExecStart = /usr/local/bin/uwsgi --procname-prefix nova-api \ --ini /etc/nova/nova-api-uwsgi.ini \ --pyargv "--config-file=/etc/nova/nova.conf --config-file=/etc/nova/nova-extra.conf" Change-Id: If4783adda92da33d512d7c2834f0bb2e2a9b9654 Related-Bug: #1871482
10 lines
434 B
YAML
10 lines
434 B
YAML
---
|
|
features:
|
|
- |
|
|
Now nova-api and nova-api-metadata WSGI services support command line
|
|
arguments similarly to other nova services. For example these services
|
|
now support specifying mutliple config files via --config-file parameter.
|
|
Please note that passing command line arguments to WSGI apps depends on
|
|
the given WSGI runner. For example uwsgi supports this via the --pyargv
|
|
parameter of the uwsgi binary.
|