Do not override Horizon ServerName in playbook

The playbook var overrides horizon to the non-RFC compliant container
name, which causes Horizon not to start when debug is disabled.

The horizon-error.log error generated is:
http://cdn.pasteraw.com/80bqvxborw4f3a74yl7mb7get40lkit

And the reason the error does NOT occur when debug is enabled can
be found here:
https://github.com/django/django/blob/master/django/http/request.py#L100-L112

Change-Id: I10aaeec856bd2ba3c38cb2b209d3f0cc9cc3ec0f
This commit is contained in:
Logan V 2016-08-03 23:06:00 -05:00 committed by Kevin Carter (cloudnull)
parent 4c4d1ccd7a
commit 5dc89d8136
2 changed files with 5 additions and 1 deletions

View File

@ -37,7 +37,6 @@
when: inventory_hostname == groups['horizon_all'][0]
roles:
- role: "os_horizon"
horizon_server_name: "{{ container_name }}"
horizon_venv_tag: "{{ openstack_release }}"
horizon_venv_download_url: "{{ openstack_repo_url }}/venvs/{{ openstack_release }}/{{ ansible_distribution | lower }}/horizon-{{ openstack_release }}.tgz"
tags:

View File

@ -0,0 +1,5 @@
---
fixes:
- Horizon deployments were broken due to an incorrect hostname setting being
placed in the apache ServerName configuration. This caused Horizon startup
failure any time debug was disabled.