Bug 1040688

Summary: [Doc] Upgrading from 3 to 4 breaks horizon
Product: Red Hat OpenStack Reporter: Jeff Dexter <jdexter>
Component: doc-Release_NotesAssignee: Don Domingo <ddomingo>
Status: CLOSED DUPLICATE QA Contact: ecs-bugs
Severity: high Docs Contact:
Priority: medium    
Version: 4.0CC: aortega, benglish, breeler, jpichon, mrunge, slong, yeylon
Target Milestone: asyncKeywords: Documentation, Triaged
Target Release: 4.0   
Hardware: All   
OS: Linux   
Whiteboard: docs-rhos5-relnotes
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
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-09 03:33:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.