Back to bug 1039727

Who When What Removed Added
RHEL Program Management 2013-12-09 21:28:03 UTC Target Release --- 4.0
Matthias Runge 2013-12-09 21:28:59 UTC CC derekh
Component python-django-horizon openstack-packstack
QA Contact ajeain nmagnezi
Julie Pichon 2013-12-10 09:08:42 UTC Status NEW ON_DEV
Assignee rhos-maint jpichon
Link ID OpenStack gerrit 60898
Julie Pichon 2013-12-10 11:39:27 UTC Status ON_DEV POST
Doc Text Cause: Horizon is built on top of Django, which offers the ALLOWED_HOSTS setting as a security measure (mandatory from 1.5 onwards).

https://docs.djangoproject.com/en/1.5/ref/settings/#allowed-hosts

By default in packstack, we are including the horizon's host IP and its hostname.

Consequence: For hostnames that are not specified in the ALLOWED_HOSTS list, the Horizon dashboard will return an error 500. This can cause issues for local scripts such as openstack-status which assume the dashboard should be available at http://localhost. This causes openstack-status to report status 500 for openstack-dashboard when it is actually working fine.

Workaround (if any): Add 'localhost' to the ALLOWED_HOSTS list in /etc/openstack-dashboard/local_settings, then restart httpd.

Result: The dashboard is accessible when using localhost and openstack-status indicates its status is "active".
Target Milestone --- rc
Doc Type Bug Fix Known Issue
Martin Magr 2013-12-10 17:36:28 UTC Status POST MODIFIED
CC mmagr
Fixed In Version openstack-packstack-2013.2.1-0.16.dev925.el6ost
Brandon Perkins 2013-12-10 21:08:19 UTC CC bperkins
errata-xmlrpc 2013-12-11 21:17:45 UTC Status MODIFIED ON_QA
Bruce Reeler 2013-12-12 07:15:32 UTC CC breeler
Doc Text Cause: Horizon is built on top of Django, which offers the ALLOWED_HOSTS setting as a security measure (mandatory from 1.5 onwards).

https://docs.djangoproject.com/en/1.5/ref/settings/#allowed-hosts

By default in packstack, we are including the horizon's host IP and its hostname.

Consequence: For hostnames that are not specified in the ALLOWED_HOSTS list, the Horizon dashboard will return an error 500. This can cause issues for local scripts such as openstack-status which assume the dashboard should be available at http://localhost. This causes openstack-status to report status 500 for openstack-dashboard when it is actually working fine.

Workaround (if any): Add 'localhost' to the ALLOWED_HOSTS list in /etc/openstack-dashboard/local_settings, then restart httpd.

Result: The dashboard is accessible when using localhost and openstack-status indicates its status is "active".
The OpenStack Dashboard, Horizon, is built on top of Django, which offers the ALLOWED_HOSTS setting as a security measure (mandatory from 1.5 onwards).

By default in PackStack, the Horizon host IP and its hostname are included.

As a result, for hostnames that are not specified in the ALLOWED_HOSTS list, the Horizon Dashboard will return an "error 500". This can cause issues for local scripts such as openstack-status which assume the Dashboard should be available at http://localhost. This causes openstack-status to report "status 500" for openstack-dashboard when it is actually working fine.

Workaround: Add 'localhost' to the ALLOWED_HOSTS list in /etc/openstack-dashboard/local_settings, then restart httpd.

This will make the Dashboard accessible when using localhost and openstack-status will indicate the Dashboard's status as "active".
Rami Vaknin 2013-12-15 10:01:55 UTC Status ON_QA VERIFIED
errata-xmlrpc 2013-12-19 17:45:03 UTC Status VERIFIED RELEASE_PENDING
errata-xmlrpc 2013-12-20 00:43:49 UTC Status RELEASE_PENDING CLOSED
Resolution --- ERRATA
Last Closed 2013-12-19 19:43:49 UTC
John Skeoch 2015-02-15 22:02:39 UTC CC athomas

Back to bug 1039727