** Changed in: horizon/juno
       Status: Fix Committed => Fix Released

-- 
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/1382023

Title:
  Horizon fails with Django-1.7

Status in OpenStack Dashboard (Horizon):
  Fix Committed
Status in OpenStack Dashboard (Horizon) icehouse series:
  Fix Committed
Status in OpenStack Dashboard (Horizon) juno series:
  Fix Released

Bug description:
  as reported here: http://lists.alioth.debian.org/pipermail/openstack-
  devel/2014-October/007488.html

  or with this backtrace, horizon Juno and Icehouse in Debian fail with
  this backtrace:

  http://paste.fedoraproject.org/142396/13459234/

  
  [Thu Oct 16 11:33:45.901644 2014] [:error] [pid 1581] [remote ::1:27029] 
mod_wsgi (pid=1581): Exception occurred processing WSGI script 
'/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'.
  [Thu Oct 16 11:33:45.901690 2014] [:error] [pid 1581] [remote ::1:27029] 
Traceback (most recent call last):
  [Thu Oct 16 11:33:45.901707 2014] [:error] [pid 1581] [remote ::1:27029]   
File "/usr/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 168, 
in __call__
  [Thu Oct 16 11:33:45.901793 2014] [:error] [pid 1581] [remote ::1:27029]     
self.load_middleware()
  [Thu Oct 16 11:33:45.901807 2014] [:error] [pid 1581] [remote ::1:27029]   
File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 46, 
in load_middleware
  [Thu Oct 16 11:33:45.901879 2014] [:error] [pid 1581] [remote ::1:27029]     
mw_instance = mw_class()
  [Thu Oct 16 11:33:45.901889 2014] [:error] [pid 1581] [remote ::1:27029]   
File "/usr/lib/python2.7/site-packages/django/middleware/locale.py", line 23, 
in __init__
  [Thu Oct 16 11:33:45.901929 2014] [:error] [pid 1581] [remote ::1:27029]     
for url_pattern in get_resolver(None).url_patterns:
  [Thu Oct 16 11:33:45.901939 2014] [:error] [pid 1581] [remote ::1:27029]   
File "/usr/lib/python2.7/site-packages/django/core/urlresolvers.py", line 367, 
in url_patterns
  [Thu Oct 16 11:33:45.902065 2014] [:error] [pid 1581] [remote ::1:27029]     
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  [Thu Oct 16 11:33:45.902076 2014] [:error] [pid 1581] [remote ::1:27029]   
File "/usr/lib/python2.7/site-packages/django/core/urlresolvers.py", line 361, 
in urlconf_module
  [Thu Oct 16 11:33:45.902091 2014] [:error] [pid 1581] [remote ::1:27029]     
self._urlconf_module = import_module(self.urlconf_name)
  [Thu Oct 16 11:33:45.902099 2014] [:error] [pid 1581] [remote ::1:27029]   
File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
  [Thu Oct 16 11:33:45.902134 2014] [:error] [pid 1581] [remote ::1:27029]     
__import__(name)
  [Thu Oct 16 11:33:45.902146 2014] [:error] [pid 1581] [remote ::1:27029]   
File 
"/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/urls.py",
 line 36, in <module>
  [Thu Oct 16 11:33:45.902182 2014] [:error] [pid 1581] [remote ::1:27029]     
url(r'', include(horizon.urls))
  [Thu Oct 16 11:33:45.902191 2014] [:error] [pid 1581] [remote ::1:27029]   
File "/usr/lib/python2.7/site-packages/django/conf/urls/__init__.py", line 29, 
in include
  [Thu Oct 16 11:33:45.902231 2014] [:error] [pid 1581] [remote ::1:27029]     
patterns = getattr(urlconf_module, 'urlpatterns', urlconf_module)
  [Thu Oct 16 11:33:45.902242 2014] [:error] [pid 1581] [remote ::1:27029]   
File "/usr/lib/python2.7/site-packages/django/utils/functional.py", line 224, 
in inner
  [Thu Oct 16 11:33:45.902336 2014] [:error] [pid 1581] [remote ::1:27029]     
self._setup()
  [Thu Oct 16 11:33:45.902346 2014] [:error] [pid 1581] [remote ::1:27029]   
File "/usr/lib/python2.7/site-packages/django/utils/functional.py", line 357, 
in _setup
  [Thu Oct 16 11:33:45.902359 2014] [:error] [pid 1581] [remote ::1:27029]     
self._wrapped = self._setupfunc()
  [Thu Oct 16 11:33:45.902367 2014] [:error] [pid 1581] [remote ::1:27029]   
File "/usr/lib/python2.7/site-packages/horizon/base.py", line 778, in 
url_patterns
  [Thu Oct 16 11:33:45.902525 2014] [:error] [pid 1581] [remote ::1:27029]     
return self._urls()[0]
  [Thu Oct 16 11:33:45.902537 2014] [:error] [pid 1581] [remote ::1:27029]   
File "/usr/lib/python2.7/site-packages/horizon/base.py", line 812, in _urls
  [Thu Oct 16 11:33:45.902552 2014] [:error] [pid 1581] [remote ::1:27029]     
url(r'^%s/' % dash.slug, include(dash._decorated_urls)))
  [Thu Oct 16 11:33:45.902561 2014] [:error] [pid 1581] [remote ::1:27029]   
File "/usr/lib/python2.7/site-packages/horizon/base.py", line 487, in 
_decorated_urls
  [Thu Oct 16 11:33:45.902573 2014] [:error] [pid 1581] [remote ::1:27029]     
url(r'^%s/' % url_slug, include(panel._decorated_urls)))
  [Thu Oct 16 11:33:45.902581 2014] [:error] [pid 1581] [remote ::1:27029]   
File "/usr/lib/python2.7/site-packages/horizon/base.py", line 257, in 
_decorated_urls
  [Thu Oct 16 11:33:45.902604 2014] [:error] [pid 1581] [remote ::1:27029]     
urlpatterns = self._get_default_urlpatterns()
  [Thu Oct 16 11:33:45.902611 2014] [:error] [pid 1581] [remote ::1:27029]   
File "/usr/lib/python2.7/site-packages/horizon/base.py", line 87, in 
_get_default_urlpatterns
  [Thu Oct 16 11:33:45.902622 2014] [:error] [pid 1581] [remote ::1:27029]     
urls_mod = import_module('.urls', package_string)
  [Thu Oct 16 11:33:45.902629 2014] [:error] [pid 1581] [remote ::1:27029]   
File "/usr/lib/python2.7/site-packages/django/utils/importlib.py", line 46, in 
import_module
  [Thu Oct 16 11:33:45.902669 2014] [:error] [pid 1581] [remote ::1:27029]     
__import__(name)
  [Thu Oct 16 11:33:45.902680 2014] [:error] [pid 1581] [remote ::1:27029]   
File 
"/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/data_processing/nodegroup_templates/urls.py",
 line 18, in <module>
  [Thu Oct 16 11:33:45.902721 2014] [:error] [pid 1581] [remote ::1:27029]     
import openstack_dashboard.dashboards.project. \\
  [Thu Oct 16 11:33:45.902731 2014] [:error] [pid 1581] [remote ::1:27029]   
File 
"/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/data_processing/nodegroup_templates/views.py",
 line 25, in <module>
  [Thu Oct 16 11:33:45.902775 2014] [:error] [pid 1581] [remote ::1:27029]     
import openstack_dashboard.dashboards.project.data_processing. \\
  [Thu Oct 16 11:33:45.902785 2014] [:error] [pid 1581] [remote ::1:27029]   
File 
"/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/data_processing/nodegroup_templates/tables.py",
 line 77, in <module>
  [Thu Oct 16 11:33:45.902829 2014] [:error] [pid 1581] [remote ::1:27029]     
class NodegroupTemplatesTable(tables.DataTable):
  [Thu Oct 16 11:33:45.902839 2014] [:error] [pid 1581] [remote ::1:27029]   
File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 1031, in 
__new__
  [Thu Oct 16 11:33:45.903134 2014] [:error] [pid 1581] [remote ::1:27029]     
attrs["_meta"] = opts = DataTableOptions(attrs.get("Meta", None))
  [Thu Oct 16 11:33:45.903148 2014] [:error] [pid 1581] [remote ::1:27029]   
File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 947, in 
__init__
  [Thu Oct 16 11:33:45.903162 2014] [:error] [pid 1581] [remote ::1:27029]     
verbose_name = (getattr(options, 'verbose_name', None)
  [Thu Oct 16 11:33:45.903170 2014] [:error] [pid 1581] [remote ::1:27029]   
File "/usr/lib/python2.7/site-packages/django/utils/functional.py", line 132, 
in __wrapper__
  [Thu Oct 16 11:33:45.903182 2014] [:error] [pid 1581] [remote ::1:27029]     
res = func(*self.__args, **self.__kw)
  [Thu Oct 16 11:33:45.903190 2014] [:error] [pid 1581] [remote ::1:27029]   
File "/usr/lib/python2.7/site-packages/django/utils/translation/__init__.py", 
line 83, in ugettext
  [Thu Oct 16 11:33:45.903247 2014] [:error] [pid 1581] [remote ::1:27029]     
return _trans.ugettext(message)
  [Thu Oct 16 11:33:45.903258 2014] [:error] [pid 1581] [remote ::1:27029]   
File "/usr/lib/python2.7/site-packages/django/utils/translation/trans_real.py", 
line 325, in ugettext
  [Thu Oct 16 11:33:45.903390 2014] [:error] [pid 1581] [remote ::1:27029]     
return do_translate(message, 'ugettext')
  [Thu Oct 16 11:33:45.903401 2014] [:error] [pid 1581] [remote ::1:27029]   
File "/usr/lib/python2.7/site-packages/django/utils/translation/trans_real.py", 
line 306, in do_translate
  [Thu Oct 16 11:33:45.903414 2014] [:error] [pid 1581] [remote ::1:27029]     
_default = translation(settings.LANGUAGE_CODE)
  [Thu Oct 16 11:33:45.903422 2014] [:error] [pid 1581] [remote ::1:27029]   
File "/usr/lib/python2.7/site-packages/django/utils/translation/trans_real.py", 
line 209, in translation
  [Thu Oct 16 11:33:45.903433 2014] [:error] [pid 1581] [remote ::1:27029]     
default_translation = _fetch(settings.LANGUAGE_CODE)
  [Thu Oct 16 11:33:45.903441 2014] [:error] [pid 1581] [remote ::1:27029]   
File "/usr/lib/python2.7/site-packages/django/utils/translation/trans_real.py", 
line 189, in _fetch
  [Thu Oct 16 11:33:45.903460 2014] [:error] [pid 1581] [remote ::1:27029]     
"The translation infrastructure cannot be initialized before the "
  [Thu Oct 16 11:33:45.903482 2014] [:error] [pid 1581] [remote ::1:27029] 
AppRegistryNotReady: The translation infrastructure cannot be initialized 
before the apps registry is ready. Check that you don't make non-lazy gettext 
calls at import time.

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

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to