From 5dc89d8136f62a1fea19950d1eec4092ab7f48aa Mon Sep 17 00:00:00 2001 From: Logan V Date: Wed, 3 Aug 2016 23:06:00 -0500 Subject: [PATCH] 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 --- playbooks/os-horizon-install.yml | 1 - .../notes/horizon-servername-fix-1ac632f205c45ee9.yaml | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/horizon-servername-fix-1ac632f205c45ee9.yaml diff --git a/playbooks/os-horizon-install.yml b/playbooks/os-horizon-install.yml index cc4fddf246..c4e1154abc 100644 --- a/playbooks/os-horizon-install.yml +++ b/playbooks/os-horizon-install.yml @@ -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: diff --git a/releasenotes/notes/horizon-servername-fix-1ac632f205c45ee9.yaml b/releasenotes/notes/horizon-servername-fix-1ac632f205c45ee9.yaml new file mode 100644 index 0000000000..36022bc283 --- /dev/null +++ b/releasenotes/notes/horizon-servername-fix-1ac632f205c45ee9.yaml @@ -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.