[openstack-dev] [kolla][osprofiler][keystone][neutron][nova] osprofiler in paste deploy files

Matthieu Simonin matthieu.simonin at inria.fr
Mon May 29 09:08:18 UTC 2017


Hello, 

I'd like to have more insight on OSProfiler support in paste-deploy files as it seems not similar across projects.
As a result, the way you can enable it on Kolla side differs. Here are some examples:

a) Nova paste.ini already contains OSProfiler middleware[1].

b) Keystone paste.ini doesn't contain OSProfiler but the file is exposed in Kolla-ansible. 
Thus it can be overwritten[2] by providing an alternate paste file using a node_custom_config directory.

c) Neutron paste.ini doesn't contain OSProfiler middleware[3]. For devstack, a hook can reconfigure the file at deploy time[4].
For Kolla, it seems that the only solution right now is to rebuild the whole docker image.

As a user of Kolla and OSprofiler a) is the most convenient thing. 

Regarding b) and c), is it a deliberate choice to ship the paste deploy files without OSProfiler middleware? 

Do you think we could converge ? ideally having a) for every API services ?

Best,

Matt

[1]: https://github.com/openstack/nova/blob/0d31fb303e07b7ed9f55b9c823b43e6db5153ee6/etc/nova/api-paste.ini#L29-L37
[2]: https://github.com/openstack/kolla-ansible/blob/fe61612ec6db469cccf2d2b4f0bd404ad4ced112/ansible/roles/keystone/tasks/config.yml#L119
[3]: https://github.com/openstack/neutron/blob/e4557a7793fbf3461bfae36ead41ee4d349920ab/neutron/tests/contrib/hooks/osprofiler
[4]: https://github.com/openstack/neutron/blob/e4557a7793fbf3461bfae36ead41ee4d349920ab/etc/api-paste.ini#L6-L9



More information about the OpenStack-dev mailing list