Django 1.11.6 breaks OpenStack Horizon when upgrading from 1.10.6

69 views
Skip to first unread message

Byron Yi

unread,
Oct 12, 2017, 9:10:49 AM10/12/17
to Django users
Django 1.11.6 is packaged with latest Debian sid (2017-10-12) and 1.10.6 is packaged with latest Debian stable.

Detailed error log is here:

Setting up python-django-openstack-auth (2.4.1-2) ...
Setting up python-django-pyscss (2.0.2-6) ...
Setting up python-django-horizon (3:10.0.1-1) ...
Setting up openstack-dashboard (3:10.0.1-1) ...
Traceback (most recent call last):
  File "/usr/share/openstack-dashboard/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 364, in execute_from_command_line
    utility.execute()
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 338, in execute
    django.setup()
  File "/usr/lib/python2.7/dist-packages/django/__init__.py", line 27, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/lib/python2.7/dist-packages/django/apps/registry.py", line 108, in populate
    app_config.import_models()
  File "/usr/lib/python2.7/dist-packages/django/apps/config.py", line 202, in import_models
    self.models_module = import_module(models_module_name)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/usr/lib/python2.7/dist-packages/openstack_auth/models.py", line 15, in <module>
    from openstack_auth.user import User        # noqa
  File "/usr/lib/python2.7/dist-packages/openstack_auth/user.py", line 26, in <module>
    from openstack_auth import utils
  File "/usr/lib/python2.7/dist-packages/openstack_auth/utils.py", line 20, in <module>
    from django.contrib.auth import middleware
  File "/usr/lib/python2.7/dist-packages/django/contrib/auth/middleware.py", line 4, in <module>
    from django.contrib.auth.backends import RemoteUserBackend
  File "/usr/lib/python2.7/dist-packages/django/contrib/auth/backends.py", line 6, in <module>
    UserModel = get_user_model()
  File "/usr/lib/python2.7/dist-packages/django/contrib/auth/__init__.py", line 198, in get_user_model
    "AUTH_USER_MODEL refers to model '%s' that has not been installed" % settings.AUTH_USER_MODEL
django.core.exceptions.ImproperlyConfigured: AUTH_USER_MODEL refers to model 'openstack_auth.User' that has not been installed
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-apache:
 openstack-dashboard-apache depends on openstack-dashboard; however:
  Package openstack-dashboard is not configured yet.

dpkg: error processing package openstack-dashboard-apache (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 openstack-dashboard
 openstack-dashboard-apache
E: Sub-process /usr/bin/dpkg returned an error code (1)

A downstream bug is filed here: https://bugs.launchpad.net/horizon/+bug/1723109
Reply all
Reply to author
Forward
0 new messages