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

Dr. Jens Rosenboom j.rosenboom at x-ion.de
Thu Jan 26 15:51:17 UTC 2017


** Also affects: horizon (Ubuntu)
   Importance: Undecided
       Status: New

-- 
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