From 0b4608bf0b40d50834bd5ab2e50096ec6c284822 Mon Sep 17 00:00:00 2001 From: Ilya Shakhat Date: Tue, 14 Nov 2017 13:41:50 +0100 Subject: [PATCH] Initialize osprofiler in WSGI application This patch adds missing initialization of OSProfiler when Nova API is running as WSGI application. Change-Id: I779b144cfdfbe4a9a572990bad9720113402ac7f Related-Bug: #1731864 --- nova/api/openstack/wsgi_app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nova/api/openstack/wsgi_app.py b/nova/api/openstack/wsgi_app.py index 0e9ae6d0fa5d..c6e9f2aa88d1 100644 --- a/nova/api/openstack/wsgi_app.py +++ b/nova/api/openstack/wsgi_app.py @@ -82,6 +82,8 @@ def init_application(name): except exception.ServiceTooOld as exc: return error_application(exc, name) + service.setup_profiler(name, CONF.host) + conf = conf_files[0] return deploy.loadapp('config:%s' % conf, name=name)