← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1526137] Re: when upgrade openstack-dashboard many times, httpd service start failed

 

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

-- 
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):
  Invalid

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