Skip to content
Snippets Groups Projects
  • Kien Nguyen's avatar
    04394311
    Use <project>_install_type instead of kolla_install_type · 04394311
    Kien Nguyen authored
    Use <project>_install_type instead of kolla_install_type
    to set python_path. For example, general kolla_install_type
    is 'binary', but user wants to deploy Horizon from 'source'.
    Horizon templates still use python_path=/usr/share/openstack-dashboard,
    it is wrong.
    
    Change-Id: Ide6a24e17b1f8ab6506aa5e53f70693706830418
    04394311
    History
    Use <project>_install_type instead of kolla_install_type
    Kien Nguyen authored
    Use <project>_install_type instead of kolla_install_type
    to set python_path. For example, general kolla_install_type
    is 'binary', but user wants to deploy Horizon from 'source'.
    Horizon templates still use python_path=/usr/share/openstack-dashboard,
    it is wrong.
    
    Change-Id: Ide6a24e17b1f8ab6506aa5e53f70693706830418
cinder-wsgi.conf.j2 929 B
{% set python_path = '/usr/lib/python2.7/site-packages' if cinder_install_type == 'binary' else '/var/lib/kolla/venv/lib/python2.7/site-packages' %}
Listen {{ api_interface_address }}:{{ cinder_api_port }}

ServerSignature Off
ServerTokens Prod
TraceEnable off

<VirtualHost *:{{ cinder_api_port }}>
    WSGIDaemonProcess cinder-api processes={{ openstack_service_workers }} threads=1 user=cinder group=cinder display-name=%{GROUP} python-path={{ python_path }}
    WSGIProcessGroup cinder-api
    WSGIScriptAlias / /var/www/cgi-bin/cinder/cinder-wsgi
    WSGIApplicationGroup %{GLOBAL}
    WSGIPassAuthorization On
    <IfVersion >= 2.4>
      ErrorLogFormat "%{cu}t %M"
    </IfVersion>
    ErrorLog /var/log/kolla/cinder/cinder-api.log
    LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b %D \"%{Referer}i\" \"%{User-Agent}i\"" logformat
    CustomLog /var/log/kolla/cinder/cinder-api-access.log logformat
</VirtualHost>