← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1594249] Re: [SRU] Update of dashboard fails on Xenial

 

This bug was fixed in the package horizon - 2:9.0.1-0ubuntu2

---------------
horizon (2:9.0.1-0ubuntu2) xenial; urgency=medium

  * d/theme/ubuntu_theme.py: When setting UBUNTU_THEME for AVAILABLE_THEMES,
    use the symlinked path that already exists under
    /usr/share/openstack-dashboard/openstack_dashboard (LP: #1594249).

 -- Corey Bryant <corey.bryant@xxxxxxxxxxxxx>  Tue, 21 Jun 2016 13:41:09
-0400

** Changed in: horizon (Ubuntu Xenial)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1594249

Title:
  [SRU] Update of dashboard fails on Xenial

Status in Ubuntu Cloud Archive:
  Invalid
Status in Ubuntu Cloud Archive mitaka series:
  Fix Committed
Status in horizon package in Ubuntu:
  Invalid
Status in horizon source package in Xenial:
  Fix Released

Bug description:
  [Impact]
  NOTE: this bug is limited to the proposed pockets of xenial and trusty-mitaka (UCA).

  I am currently trying to update the horizon dashboard on Ubuntu 16.04
  running OpenStack Mitaka using the new versions coming in from the
  package repository.

  aptitude update && aptitude safe-upgrade
  Get: 1 http://archive.ubuntu.com/ubuntu xenial-proposed InRelease [247 kB]
  Hit http://mirror2.hs-esslingen.de/mariadb/repo/10.1/ubuntu xenial InRelease
  Hit http://de.archive.ubuntu.com/ubuntu xenial InRelease
  Hit http://ppa.launchpad.net/vbernat/haproxy-1.6/ubuntu xenial InRelease
  Get: 2 http://de.archive.ubuntu.com/ubuntu xenial-updates InRelease [94.5 kB]
  Get: 3 http://de.archive.ubuntu.com/ubuntu xenial-backports InRelease [92.2 kB]
  Get: 4 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]
  Hit http://download.ceph.com/debian-jewel xenial InRelease
  Hit http://www.rabbitmq.com/debian testing InRelease
  Get: 5 http://de.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [213 kB]
  Get: 6 http://de.archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [209 kB]
  Get: 7 http://de.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [96.7 kB]
  Get: 8 http://de.archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [93.9 kB]
  Fetched 1,141 kB in 1s (1,011 kB/s)
  W: http://download.ceph.com/debian-jewel/dists/xenial/InRelease: Signature by key 08B73419AC32B4E966C1A330E84AC2C0460F3994 uses weak dige st algorithm (SHA1)

  Resolving dependencies...
  The following packages will be upgraded:
    base-files linux-firmware lshw openstack-dashboard openstack-dashboard-ubuntu-theme python-django-horizon python-glanceclient
    python-oslo.concurrency
  8 packages upgraded, 0 newly installed, 0 to remove and 7 not upgraded.
  Need to get 41.8 MB of archives. After unpacking 539 kB will be used.
  Do you want to continue? [Y/n/?] Y
  Get: 1 http://archive.ubuntu.com/ubuntu xenial-proposed/main amd64 base-files amd64 9.4ubuntu4.1 [68.4 kB]
  Get: 2 http://archive.ubuntu.com/ubuntu xenial-proposed/main amd64 openstack-dashboard-ubuntu-theme all 2:9.0.1-0ubuntu1 [79.5 kB]
  Get: 3 http://archive.ubuntu.com/ubuntu xenial-proposed/main amd64 python-glanceclient all 1:2.0.0-2ubuntu0.16.04.1 [92.1 kB]
  Get: 4 http://archive.ubuntu.com/ubuntu xenial-proposed/main amd64 python-oslo.concurrency all 3.7.1-0ubuntu1 [24.5 kB]
  Get: 5 http://archive.ubuntu.com/ubuntu xenial-proposed/main amd64 openstack-dashboard all 2:9.0.1-0ubuntu1 [2,442 kB]
  Get: 6 http://archive.ubuntu.com/ubuntu xenial-proposed/main amd64 python-django-horizon all 2:9.0.1-0ubuntu1 [6,272 kB]
  Get: 7 http://archive.ubuntu.com/ubuntu xenial-proposed/main amd64 lshw amd64 02.17-1.1ubuntu3.2 [215 kB]
  Get: 8 http://archive.ubuntu.com/ubuntu xenial-proposed/main amd64 linux-firmware all 1.157.1 [32.6 MB]
  Fetched 41.8 MB in 0s (42.3 MB/s)
  (Reading database ... 140753 files and directories currently installed.)
  Preparing to unpack .../base-files_9.4ubuntu4.1_amd64.deb ...
  Unpacking base-files (9.4ubuntu4.1) over (9.4ubuntu4) ...
  Processing triggers for plymouth-theme-ubuntu-text (0.9.2-3ubuntu13.1) ...
  update-initramfs: deferring update (trigger activated)
  Processing triggers for install-info (6.1.0.dfsg.1-5) ...
  Processing triggers for man-db (2.7.5-1) ...
  Processing triggers for initramfs-tools (0.122ubuntu8.1) ...
  update-initramfs: Generating /boot/initrd.img-4.4.0-25-generic
  W: mdadm: /etc/mdadm/mdadm.conf defines no arrays.
  Setting up base-files (9.4ubuntu4.1) ...
  Installing new version of config file /etc/update-motd.d/10-help-text ...
  (Reading database ... 140753 files and directories currently installed.)
  Preparing to unpack .../openstack-dashboard-ubuntu-theme_2%3a9.0.1-0ubuntu1_all.deb ...
  Unpacking openstack-dashboard-ubuntu-theme (2:9.0.1-0ubuntu1) over (2:9.0.0-0ubuntu2.16.04.1) ...
  Preparing to unpack .../python-glanceclient_1%3a2.0.0-2ubuntu0.16.04.1_all.deb ...
  Unpacking python-glanceclient (1:2.0.0-2ubuntu0.16.04.1) over (1:2.0.0-2) ...
  Preparing to unpack .../python-oslo.concurrency_3.7.1-0ubuntu1_all.deb ...
  Unpacking python-oslo.concurrency (3.7.1-0ubuntu1) over (3.7.0-2) ...
  Preparing to unpack .../openstack-dashboard_2%3a9.0.1-0ubuntu1_all.deb ...
  Unpacking openstack-dashboard (2:9.0.1-0ubuntu1) over (2:9.0.0-0ubuntu2.16.04.1) ...
  Preparing to unpack .../python-django-horizon_2%3a9.0.1-0ubuntu1_all.deb ...
  Unpacking python-django-horizon (2:9.0.1-0ubuntu1) over (2:9.0.0-0ubuntu2.16.04.1) ...
  Preparing to unpack .../lshw_02.17-1.1ubuntu3.2_amd64.deb ...
  Unpacking lshw (02.17-1.1ubuntu3.2) over (02.17-1.1ubuntu3.1) ...
  Preparing to unpack .../linux-firmware_1.157.1_all.deb ...
  Unpacking linux-firmware (1.157.1) over (1.157) ...
  Processing triggers for man-db (2.7.5-1) ...
  Setting up python-glanceclient (1:2.0.0-2ubuntu0.16.04.1) ...
  Setting up python-oslo.concurrency (3.7.1-0ubuntu1) ...
  Setting up python-django-horizon (2:9.0.1-0ubuntu1) ...
  Setting up openstack-dashboard (2:9.0.1-0ubuntu1) ...
  Collecting and compressing static assets...
  Traceback (most recent call last):
    File "manage.py", line 25, in <module>
      execute_from_command_line(sys.argv)
    File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
      utility.execute()
    File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 346, in execute
      self.fetch_command(subcommand).run_from_argv(self.argv)
    File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 394, in run_from_argv
      self.execute(*args, **cmd_options)
    File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 445, in execute
      output = self.handle(*args, **options)
    File "/usr/lib/python2.7/dist-packages/compressor/management/commands/compress.py", line 286, in handle
      self.compress(sys.stdout, **options)
    File "/usr/lib/python2.7/dist-packages/compressor/management/commands/compress.py", line 124, in compress
      paths.update(str(origin) for origin in get_template_sources(''))
    File "/usr/lib/python2.7/dist-packages/compressor/management/commands/compress.py", line 124, in <genexpr>
      paths.update(str(origin) for origin in get_template_sources(''))
    File "/usr/share/openstack-dashboard/horizon/themes.py", line 140, in get_template_sources
      'templates'
    File "/usr/lib/python2.7/dist-packages/django/utils/_os.py", line 85, in safe_join
      'component ({})'.format(final_path, base_path))
  django.core.exceptions.SuspiciousFileOperation: The joined path (/usr/share/openstack-dashboard-ubuntu-theme/static/themes/ubuntu/templates) is located outside of the base path component (/usr/share/openstack-dashboard/openstack_dashboard)
  dpkg: error processing package openstack-dashboard (--configure):
   subprocess installed post-installation script returned error exit status 1
  dpkg: dependency problems prevent configuration of openstack-dashboard-ubuntu-theme:
   openstack-dashboard-ubuntu-theme depends on openstack-dashboard (= 2:9.0.1-0ubuntu1); however:
    Package openstack-dashboard is not configured yet.

  dpkg: error processing package openstack-dashboard-ubuntu-theme (--configure):
   dependency problems - leaving unconfigured
  Setting up lshw (02.17-1.1ubuntu3.2) ...
  Setting up linux-firmware (1.157.1) ...
  No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                            Errors were encountered while processing:
   openstack-dashboard
   openstack-dashboard-ubuntu-theme
  E: Sub-process /usr/bin/dpkg returned an error code (1)
  Failed to perform requested operation on package. Trying to recover:
  Setting up openstack-dashboard (2:9.0.1-0ubuntu1) ...
  Collecting and compressing static assets...
  Traceback (most recent call last):
    File "manage.py", line 25, in <module>
      execute_from_command_line(sys.argv)
    File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 354, in execute_from_command_line
      utility.execute()
    File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 346, in execute
      self.fetch_command(subcommand).run_from_argv(self.argv)
    File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 394, in run_from_argv
      self.execute(*args, **cmd_options)
    File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 445, in execute
      output = self.handle(*args, **options)
    File "/usr/lib/python2.7/dist-packages/compressor/management/commands/compress.py", line 286, in handle
      self.compress(sys.stdout, **options)
    File "/usr/lib/python2.7/dist-packages/compressor/management/commands/compress.py", line 124, in compress
      paths.update(str(origin) for origin in get_template_sources(''))
    File "/usr/lib/python2.7/dist-packages/compressor/management/commands/compress.py", line 124, in <genexpr>
      paths.update(str(origin) for origin in get_template_sources(''))
    File "/usr/share/openstack-dashboard/horizon/themes.py", line 140, in get_template_sources
      'templates'
    File "/usr/lib/python2.7/dist-packages/django/utils/_os.py", line 85, in safe_join
      'component ({})'.format(final_path, base_path))
  django.core.exceptions.SuspiciousFileOperation: The joined path (/usr/share/openstack-dashboard-ubuntu-theme/static/themes/ubuntu/templates) is located outside of the base path component (/usr/share/openstack-dashboard/openstack_dashboard)
  dpkg: error processing package openstack-dashboard (--configure):
   subprocess installed post-installation script returned error exit status 1
  dpkg: dependency problems prevent configuration of openstack-dashboard-ubuntu-theme:
   openstack-dashboard-ubuntu-theme depends on openstack-dashboard (= 2:9.0.1-0ubuntu1); however:
    Package openstack-dashboard is not configured yet.

  dpkg: error processing package openstack-dashboard-ubuntu-theme (--configure):
   dependency problems - leaving unconfigured
  Errors were encountered while processing:
   openstack-dashboard
   openstack-dashboard-ubuntu-theme

  Any ideas what is going on and how the problem can be fixed?

  [Test Case]

  Install openstack-dashboard 2:9.0.1-0ubuntu1 from xenial-proposed.

  [Regression Potential]
  There should be very little regression potential.  The package already defined a symlink from /usr/share/openstack-dashboard/openstack_dashboard/static/themes/ubuntu to /usr/share/openstack-dashboard-ubuntu-theme/static/themes/ubuntu.  The fix uses the symlink to avoid the error reported in this bug.  I've deployed openstack with this fix and navigated around the dashboard and the ubuntu theme looks fine.

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1594249/+subscriptions