[Bug 1659570] Re: Installing murano-dashboard=3.0.0 deletes needed files

Dr. Jens Rosenboom j.rosenboom at x-ion.de
Thu Jan 26 21:57:27 UTC 2017


Actually, I was installing it onto a UCA Newton deployment on Xenial, as
that is what murano-dashboard 3.0.0 would match, see
https://releases.openstack.org/newton/index.html#horizon-plugins. Also
needs some django package updated in zesty. If we get this issue fixed,
I would hope that murano-dashboard 3.0.0 would get added to UCA Newton,
too.

But anyway, the issue appears without murano-dashboard, just by running
the collectstatic -c command, so that should get fixed independently. I
also verified that this doesn't happen when I do the same thing on
Debian testing, so it seems to be related to the way Ubuntu packaged
horizon.

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to horizon in Ubuntu.
https://bugs.launchpad.net/bugs/1659570

Title:
  Installing murano-dashboard=3.0.0 deletes needed files

Status in horizon package in Ubuntu:
  New
Status in murano-dashboard package in Ubuntu:
  New

Bug description:
  The reason is that in the postinst this is called:

  /usr/share/openstack-dashboard/manage.py collectstatic --clear
  --noinput

  where the "--clear" options means "delete existing files". The files
  are collected into /usr/share/openstack-dashboard/horizon/static/, now
  sadly there is a symlink:

  # ls -l /usr/share/openstack-dashboard/openstack_dashboard/static/horizon
  lrwxrwxrwx 1 horizon horizon 62 Oct  8 19:35 /usr/share/openstack-dashboard/openstack_dashboard/static/horizon -> ../../../../lib/python2.7/dist-packages/horizon/static/horizon

  and manage.py happily follows that symlink and deletes all the files
  behind it, leading to failure of the "manage.py compress" called after
  that:

  Compressing... CommandError: An error occurred during rendering
  /usr/share/openstack-
  dashboard/openstack_dashboard/templates/horizon/_conf.html:
  'horizon/js/horizon.js' could not be found in the COMPRESS_ROOT
  '/usr/share/openstack-dashboard/static' or with staticfiles.

  Now I'm not sure whether this error should be really attributed to
  murano-dashboard or to the way openstack-dashboard is packaged/set up.
  The issue happens identically if I run the collectstatic command
  manually without murano-dashboard being installed.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/horizon/+bug/1659570/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list