Files
nova/releasenotes/notes/support-sys.argv-in-wsgi-app-2dc5006f9e9e5f9e.yaml
Balazs Gibizer d38b7e13a6 Support sys.argv in wsgi app
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
2020-11-25 12:22:41 +01:00

434 B