From dfbc2a56b6fd0cf0a98fe6a2dc046a44c30a05b2 Mon Sep 17 00:00:00 2001
From: Adrien Cunin <adrien.cunin@osones.com>
Date: Thu, 7 Dec 2017 15:46:01 +0100
Subject: [PATCH] Set WSGIApplicationGroup %{GLOBAL} as recommended

mod_wsgi hangs trying to import the recent versions of
python-gobject-base used by python-keyring library, which is in turn
used by python-keystoneclient. This does not happen if the
WSGIApplicationGroup is global.

Change-Id: I4c7408699fddf327feb1c3b47e8e47cf2dd946f1
Closes-Bug: #1708655
Closes-Bug: #1624791
Related-Bug: #1700176
---
 templates/openstack_dashboard.conf.j2 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/openstack_dashboard.conf.j2 b/templates/openstack_dashboard.conf.j2
index 8ad1ab79..ff5ed7ea 100644
--- a/templates/openstack_dashboard.conf.j2
+++ b/templates/openstack_dashboard.conf.j2
@@ -36,7 +36,7 @@
     WSGIDaemonProcess horizon user={{ horizon_system_user_name }} group={{ horizon_system_group_name }} processes={{ horizon_wsgi_processes | default(horizon_wsgi_threads) }} threads={{ horizon_wsgi_threads }} python-path={{ horizon_bin | dirname }}/lib/python2.7/site-packages
 
     WSGIProcessGroup horizon
-    WSGIApplicationGroup horizon
+    WSGIApplicationGroup %{GLOBAL}
 
     <Directory {{ horizon_lib_wsgi_file | dirname }}>
       <Files django.wsgi>