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
434 B
434 B