yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #68491
[Bug 1723109] [NEW] openstack_auth/models.py breaks with Django 1.11.6 but not 1.10.6
Public bug reported:
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)
** Affects: horizon
Importance: Undecided
Status: New
** Description changed:
+ 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
+ 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
+ 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.
+ 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
+ dependency problems - leaving unconfigured
Errors were encountered while processing:
- openstack-dashboard
- openstack-dashboard-apache
+ openstack-dashboard
+ openstack-dashboard-apache
E: Sub-process /usr/bin/dpkg returned an error code (1)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1723109
Title:
openstack_auth/models.py breaks with Django 1.11.6 but not 1.10.6
Status in OpenStack Dashboard (Horizon):
New
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)
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1723109/+subscriptions
Follow ups