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

Bug #1552722 reported by Dr. Jens Harbott
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
horizon (Ubuntu)
Fix Released
Undecided
Unassigned

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.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in horizon (Ubuntu):
status: New → Confirmed
Revision history for this message
Corey Bryant (corey.bryant) wrote :

I believe this has been fixed since Newton, when the openstack-dashboard-ubuntu-theme package was folded into the openstack-dashboard package. The package no longer collects/compresses static assets in the postrm script.

Changed in horizon (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.