[Bug 1584040] [NEW] Horizon wsgi can run in the wrong WSGIProcessGroup

Cedric Brandily 1584040 at bugs.launchpad.net
Fri May 20 12:48:26 UTC 2016


Public bug reported:

Horizon wsgi can run in the wrong WSGIProcessGroup when multiple
WSGIProcessGroup are defined. Typically with the 2 following
configurations enabled on apache2:

# /etc/apache2/conf-enabled/openstack-dashboard.conf
   WSGIScriptAlias /horizon /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
   WSGIDaemonProcess horizon user=horizon group=horizon processes=3 threads=10
   WSGIProcessGroup horizon
   Alias /static /usr/share/openstack-dashboard/openstack_dashboard/static/
   Alias /horizon/static /usr/share/openstack-dashboard/openstack_dashboard/static/
   <Directory /usr/share/openstack-dashboard/openstack_dashboard/wsgi>
     Order allow,deny
     Allow from all
   </Directory>

# /etc/apache2/conf-enabled/wsgi.conf
   WSGIScriptAlias /mywsgi /usr/share/mywsgi/.. process-group=mywsgi
   WSGIDaemonProcess mywsgi user=mywsgi group=mywsgi processes=5 threads=10
   WSGIProcessGroup mywsgi
   <Directory /usr/share/mywsgi>
     Order allow,deny
     Allow from all
   </Directory>

Nothing ensures that Horizon wsgi will run in "horizon"
WSGIProcessGroup.


To ensure it we should use:
   WSGIScriptAlias /horizon /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi processes-group=horizon
instead of:
   WSGIScriptAlias /horizon /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi


It affects my Kilo openstack-dashboard on Trusty BUT should affect every openstack-dashboard on every ubuntu

** Affects: horizon (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to horizon in Ubuntu.
https://bugs.launchpad.net/bugs/1584040

Title:
  Horizon wsgi can run in the wrong WSGIProcessGroup

Status in horizon package in Ubuntu:
  New

Bug description:
  Horizon wsgi can run in the wrong WSGIProcessGroup when multiple
  WSGIProcessGroup are defined. Typically with the 2 following
  configurations enabled on apache2:

  # /etc/apache2/conf-enabled/openstack-dashboard.conf
     WSGIScriptAlias /horizon /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
     WSGIDaemonProcess horizon user=horizon group=horizon processes=3 threads=10
     WSGIProcessGroup horizon
     Alias /static /usr/share/openstack-dashboard/openstack_dashboard/static/
     Alias /horizon/static /usr/share/openstack-dashboard/openstack_dashboard/static/
     <Directory /usr/share/openstack-dashboard/openstack_dashboard/wsgi>
       Order allow,deny
       Allow from all
     </Directory>

  # /etc/apache2/conf-enabled/wsgi.conf
     WSGIScriptAlias /mywsgi /usr/share/mywsgi/.. process-group=mywsgi
     WSGIDaemonProcess mywsgi user=mywsgi group=mywsgi processes=5 threads=10
     WSGIProcessGroup mywsgi
     <Directory /usr/share/mywsgi>
       Order allow,deny
       Allow from all
     </Directory>

  Nothing ensures that Horizon wsgi will run in "horizon"
  WSGIProcessGroup.

  
  To ensure it we should use:
     WSGIScriptAlias /horizon /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi processes-group=horizon
  instead of:
     WSGIScriptAlias /horizon /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi

  
  It affects my Kilo openstack-dashboard on Trusty BUT should affect every openstack-dashboard on every ubuntu

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/horizon/+bug/1584040/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list