[Bug 1552722] [NEW] Package openstack-dashboard-ubuntu-theme fails to be removed

Dr. Jens Rosenboom j.rosenboom at x-ion.de
Thu Mar 3 14:20:17 UTC 2016


Public bug reported:

If the config for the dashboard or apache2 in general is not working,
the removal of openstack-dashboard-ubuntu-theme fails because there is
no graceful error handling in the postrm script. E.g. I am getting:

# apt-get -q -y purge openstack-dashboard-ubuntu-theme
    STDOUT: Reading package lists...
    Building dependency tree...
    Reading state information...
    The following packages will be REMOVED:
      openstack-dashboard-ubuntu-theme
    0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
    1 not fully installed or removed.
    After this operation, 180 kB disk space will be freed.
(Reading database ... 102645 files and directories currently installed.)
    Removing openstack-dashboard-ubuntu-theme (2:8.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 385, in execute_from_command_line
        utility.execute()
      File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 345, in execute
        settings.INSTALLED_APPS
      File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 46, in __getattr__
        self._setup(name)
      File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 42, in _setup
        self._wrapped = Settings(settings_module)
      File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 98, in __init__
        % (self.SETTINGS_MODULE, e)
    ImportError: Could not import settings 'openstack_dashboard.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named pymysql
    dpkg: error processing package openstack-dashboard-ubuntu-theme (--remove):
     subprocess installed post-removal script returned error exit status 1
    Errors were encountered while processing:
     openstack-dashboard-ubuntu-theme

The expected result would be to ignore any errors in the postrm script
and successfully complete the removal.

** 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/1552722

Title:
  Package openstack-dashboard-ubuntu-theme fails to be removed

Status in horizon package in Ubuntu:
  New

Bug description:
  If the config for the dashboard or apache2 in general is not working,
  the removal of openstack-dashboard-ubuntu-theme fails because there is
  no graceful error handling in the postrm script. E.g. I am getting:

  # apt-get -q -y purge openstack-dashboard-ubuntu-theme
      STDOUT: Reading package lists...
      Building dependency tree...
      Reading state information...
      The following packages will be REMOVED:
        openstack-dashboard-ubuntu-theme
      0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
      1 not fully installed or removed.
      After this operation, 180 kB disk space will be freed.
  (Reading database ... 102645 files and directories currently installed.)
      Removing openstack-dashboard-ubuntu-theme (2:8.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 385, in execute_from_command_line
          utility.execute()
        File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 345, in execute
          settings.INSTALLED_APPS
        File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 46, in __getattr__
          self._setup(name)
        File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 42, in _setup
          self._wrapped = Settings(settings_module)
        File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 98, in __init__
          % (self.SETTINGS_MODULE, e)
      ImportError: Could not import settings 'openstack_dashboard.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named pymysql
      dpkg: error processing package openstack-dashboard-ubuntu-theme (--remove):
       subprocess installed post-removal script returned error exit status 1
      Errors were encountered while processing:
       openstack-dashboard-ubuntu-theme

  The expected result would be to ignore any errors in the postrm script
  and successfully complete the removal.

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



More information about the Ubuntu-openstack-bugs mailing list