Bug 1040688 - [Doc] Upgrading from 3 to 4 breaks horizon
Summary: [Doc] Upgrading from 3 to 4 breaks horizon
Keywords:
Status: CLOSED DUPLICATE of bug 1028678
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: doc-Release_Notes
Version: 4.0
Hardware: All
OS: Linux
medium
high
Target Milestone: async
: 4.0
Assignee: Don Domingo
QA Contact: ecs-bugs
URL:
Whiteboard: docs-rhos5-relnotes
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-11 22:12 UTC by Jeff Dexter
Modified: 2015-02-17 01:01 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Known Issue
Doc Text:
After upgrading to Red Hat Enterprise Linux 4, attempting to open the dashboard may fail with a '500 Internal Server Error'. This is caused by an incomplete ALLOWED_HOST setting. If this occurs, you will need to: 1. Add the fully-qualified domain name of your dashboard host to the ALLOWED_HOSTS parameter of the /etc/openstack-dashboard/local_settings file. 2. Change the owner and group of the var/lib/openstack-dashboard/.secret_key_store file to 'apache': # chown apache:apache /var/lib/openstack-dashboard/.secret_key_store
Clone Of:
Environment:
Last Closed: 2014-07-09 03:33:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jeff Dexter 2013-12-11 22:12:35 UTC
Description of problem:
When upgrading from RHOS 3 to RHOS 4, Horizon does not work

Version-Release number of selected component (if applicable):
openstack-dashboard 2013.2.5.el6ost

How reproducible:
Install RHOS3.0 allinone
stop all services
for i in /etc/init.d/quantum-* ; do $i stop ; done
for i in /etc/init.d/openstack-* ; do $i stop ; done

Add channel for Rhos 4
remove channel for Rhos 3
yum upgrade

Sync databases
keystone-manage db_sync
cinder-manage db sync
glance-manage db_sync
nova-manage db sync

neutron-db-manage --config-file /etc/neutron/neutron.conf \
  --config-file /etc/neutron/plugin.ini current
  
neutron-db-manage --config-file /etc/neutron/neutron.conf \
  --config-file /etc/neutron/plugin.ini stamp grizzly
  
  neutron-db-manage --config-file /etc/neutron/neutron.conf \
  --config-file /etc/neutron/plugin.ini upgrade head
  
start services

go to dashboard

Actual results:
500 error 

Expected results:
dashboard

Additional info:
To fix the issue I had to 
#yum erase openstack-dashboard
#yum install openstack-dashboard
# chown apache:apache /var/lib/openstack-dashboard/.secret_key_store
edit the following in /etc/openstack-dashboard/local_settings
ALLOWED_HOSTS = ['horizon.example.com', 'localhost', '10.13.215.133', 'rhostest.jkdexter.usersys.redhat.com']

Comment 2 Matthias Runge 2013-12-16 07:46:26 UTC
> Additional info:
> To fix the issue I had to 
> #yum erase openstack-dashboard
> #yum install openstack-dashboard
> # chown apache:apache /var/lib/openstack-dashboard/.secret_key_store
> edit the following in /etc/openstack-dashboard/local_settings
> ALLOWED_HOSTS = ['horizon.example.com', 'localhost', '10.13.215.133',
> 'rhostest.jkdexter.usersys.redhat.com']

Thank you for the report, I think this needs some docs. I'm sure, you won't need to re-install openstack-dashboard at all.

Editing/changing the ALLOWED_HOSTS setting is nothing we can or should do during install/upgrade phase at all.

This does not need any package change, but docs.

Comment 3 Summer Long 2014-01-06 04:42:11 UTC
Upgrade info is now in the Release Notes; moving there.

Comment 4 Bruce Reeler 2014-03-10 05:58:24 UTC
This bug is being assigned to ddomingo, who is now the designated docs specialist for Release Notes after 4.0.z2.


Note You need to log in before you can comment on or make changes to this bug.