yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #43365
[Bug 1526137] Re: when upgrade openstack-dashboard many times, httpd service start failed
** Project changed: openstack-community => horizon
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1526137
Title:
when upgrade openstack-dashboard many times, httpd service start
failed
Status in OpenStack Dashboard (Horizon):
New
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1526137/+subscriptions