openstack_auth/models.py breaks with Django 1.11.6 but not 1.10.6

Bug #1723109 reported by Bairen Yi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Expired
Undecided
Unassigned

Bug Description

Django 1.11.6 is distributed with Debian sid (2017-10-12) and 1.10.6 is distributed with current Debian stable (stretch).

Detailed error log is here:

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)

Bairen Yi (byronyi)
description: updated
Revision history for this message
Gary W. Smith (gary-w-smith) wrote :

This sounds like a dependency problem in packaging rather than a problem in horizon. Please work with the Debian packaging team on this (https://wiki.openstack.org/wiki/Packaging/Debian). If this is identified to be a bug with horizon proper, then feel free to re-open the ticket and add details on how it can be reproduced. Thanks.

Changed in horizon:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenStack Dashboard (Horizon) because there has been no activity for 60 days.]

Changed in horizon:
status: Incomplete → Expired
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.