Fix gnocchi-api could not start up issue

After using python3 to build image, need to change related
wsgi profile like we did for other openstack service.

Test pass for openstack apply with 4 additonal services enabled

Closes-Bug: 1886819

Depends-on: https://review.opendev.org/#/c/741826
Change-Id: Ic7345760a0a387c87f79b78e7949df920da83044
Signed-off-by: Zhipeng Liu <zhipengs.liu@intel.com>
(cherry picked from commit a8e6da1fe0)
This commit is contained in:
Zhipeng Liu 2020-07-10 18:44:09 +08:00 committed by zhipeng liu
parent 3b1fe20d58
commit add8e9a1e8
1 changed files with 2 additions and 1 deletions

View File

@ -1900,9 +1900,10 @@ data:
SetEnvIf X-Forwarded-For "^.*\..*\..*\..*" forwarded
CustomLog /dev/stdout combined env=!forwarded
CustomLog /dev/stdout proxy env=forwarded
WSGISocketPrefix /var/run/httpd/wsgi
<VirtualHost *:{{ tuple "metric" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}>
WSGIDaemonProcess gnocchi processes=1 threads=2 user=gnocchi group=gnocchi display-name=%{GROUP}
WSGIDaemonProcess gnocchi processes=1 threads=2 user=gnocchi group=gnocchi display-name=%{GROUP} python-home=/var/lib/openstack socket-user=apache
WSGIProcessGroup gnocchi
WSGIScriptAlias / "/var/lib/openstack/bin/gnocchi-api"
WSGIApplicationGroup %{GLOBAL}