diff options
author | Chris Dent <cdent@anticdent.org> | 2017-04-17 16:38:49 +0000 |
---|---|---|
committer | Chris Dent <cdent@anticdent.org> | 2017-04-25 15:40:37 +0000 |
commit | d3c084f23448d1890bfda4a06de246f2be3c1279 (patch) | |
tree | 841a7a8707238a11f85d777c63ea949b164037bf /setup.cfg | |
parent | c3597c87d883d05e624bf863b31738cf80044947 (diff) | |
download | nova-d3c084f23448d1890bfda4a06de246f2be3c1279.tar.gz |
Register osapi_compute when nova-api is wsgi
When the nova-api services starts from its own standalone binary it
registers itself in the services table. The original wsgi script in
nova/wsgi/nova-api.py did not, leading to the bug referenced below.
The new wsgi script at nova.api.openstack.compute.wsgi, modelled on
a similar thing used for the placement API, provides the necessary
service registration.
If a ServiceTooOld exception happens while trying to register the
service then a very simple (currently very stubby) application is
loaded instead of the compute api. This application returns a 500
and a message.
Some caveats/todos:
* wsgi apps managed under mod-wsgi (and presumably other containers)
are not imported/compiled/run until the first request is made. In
this case that means the service handling does not happen until
that first request, somewhat defeating the purpose if the api is a
bit idle.
Change-Id: I7c4acfaa6c50ac0e4d6de69eb62ec5bbad72ff85
Closes-Bug: #1661360
Diffstat (limited to 'setup.cfg')
-rw-r--r-- | setup.cfg | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -69,6 +69,7 @@ console_scripts = nova-xvpvncproxy = nova.cmd.xvpvncproxy:main wsgi_scripts = nova-placement-api = nova.api.openstack.placement.wsgi:init_application + nova-api-wsgi = nova.api.openstack.compute.wsgi:init_application nova.api.v21.extensions = admin_actions = nova.api.openstack.compute.admin_actions:AdminActions |