when upgrade openstack-dashboard many times, httpd service start failed

Bug #1526137 reported by gs-opencos-zte
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Invalid
Undecided
Unassigned

Bug Description

there is a bug in post script of openstack-horizon.spec :

%post -n openstack-dashboard
# ugly hack to set a unique SECRET_KEY
sed -i "/^from horizon.utils import secret_key$/d" /etc/openstack-dashboard/local_settings
sed -i "/^SECRET_KEY.*$/{N;s/^.*$/SECRET_KEY='`openssl rand -hex 10`'/}" /etc/openstack-dashboard/local_settings

When upgrading dashboard rpm, SECRET_KEY in /etc/openstack-dashboard/local_settings will be updated, and it will be swallow a line of the config file at the same time. so after upgrding openstack-dashboard for twelve times, the line of "CACHES = {" will be deleted, and the bug happened.

affects: openstack-community → horizon
Revision history for this message
Rob Cresswell (robcresswell-deactivatedaccount) wrote :

This looks like a bug in the packaged version of Horizon, not Horizon itself. Open a bug in the distribution tracker or speak to the packager.

Changed in horizon:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.