failed to access horizon web site if no install mox module
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
New
|
Undecided
|
Unassigned |
Bug Description
After installing the latest horizon codes and start the httpd, the horizon web site can't be accessed due to the following exception about "ImportError: No module named mox".
I did the initial investigation and found it's caused by the change(https:/
After install the mox module and restart httpd, then I can access to the horizon site.
However, from my view, it does NOT make sense: when I install openstack horizon on practical product env, I should not need to install the mox module(which is one python UT framework). it's better to change the file horizon/
if settings.DEBUG:
try:
mod = import_
urlpatterns += patterns('',
except ImportError:
urlpatterns += patterns('',
Detail exception can be seen below:
[Mon Mar 24 08:09:17 2014] [error] [client 9.111.44.234] mod_wsgi (pid=23842): Exception occurred processing WSGI script '/usr/share/
ck_dashboard/
[Mon Mar 24 08:09:17 2014] [error] [client 9.111.44.234] Traceback (most recent call last):
[Mon Mar 24 08:09:17 2014] [error] [client 9.111.44.234] File "/usr/lib/
[Mon Mar 24 08:09:17 2014] [error] [client 9.111.44.234] response = self.get_
[Mon Mar 24 08:09:17 2014] [error] [client 9.111.44.234] File "/usr/lib/
[Mon Mar 24 08:09:17 2014] [error] [client 9.111.44.234] response = self.handle_
[Mon Mar 24 08:09:17 2014] [error] [client 9.111.44.234] File "/usr/lib/
ception
[Mon Mar 24 08:09:17 2014] [error] [client 9.111.44.234] if resolver.
[Mon Mar 24 08:09:17 2014] [error] [client 9.111.44.234] File "/usr/lib/
[Mon Mar 24 08:09:17 2014] [error] [client 9.111.44.234] self._urlconf_
[Mon Mar 24 08:09:17 2014] [error] [client 9.111.44.234] File "/usr/lib/
[Mon Mar 24 08:09:17 2014] [error] [client 9.111.44.234] __import__(name)
[Mon Mar 24 08:09:17 2014] [error] [client 9.111.44.234] File "/usr/share/
e 38, in <module>
[Mon Mar 24 08:09:17 2014] [error] [client 9.111.44.234] url(r'', include(
[Mon Mar 24 08:09:17 2014] [error] [client 9.111.44.234] File "/usr/lib/
[Mon Mar 24 08:09:17 2014] [error] [client 9.111.44.234] patterns = getattr(
[Mon Mar 24 08:09:17 2014] [error] [client 9.111.44.234] File "/usr/lib/
[Mon Mar 24 08:09:17 2014] [error] [client 9.111.44.234] self._setup()
[Mon Mar 24 08:09:17 2014] [error] [client 9.111.44.234] File "/usr/lib/
[Mon Mar 24 08:09:17 2014] [error] [client 9.111.44.234] self._wrapped = self._setupfunc()
[Mon Mar 24 08:09:17 2014] [error] [client 9.111.44.234] File "/usr/lib/
[Mon Mar 24 08:09:17 2014] [error] [client 9.111.44.234] return self._urls()[0]
[Mon Mar 24 08:09:17 2014] [error] [client 9.111.44.234] File "/usr/lib/
[Mon Mar 24 08:09:17 2014] [error] [client 9.111.44.234] urlpatterns = self._get_
[Mon Mar 24 08:09:17 2014] [error] [client 9.111.44.234] File "/usr/lib/
[Mon Mar 24 08:09:17 2014] [error] [client 9.111.44.234] mod = import_
[Mon Mar 24 08:09:17 2014] [error] [client 9.111.44.234] File "/usr/lib/
[Mon Mar 24 08:09:17 2014] [error] [client 9.111.44.234] __import__(name)
[Mon Mar 24 08:09:17 2014] [error] [client 9.111.44.234] File "/usr/lib/
[Mon Mar 24 08:09:17 2014] [error] [client 9.111.44.234] from horizon.
[Mon Mar 24 08:09:17 2014] [error] [client 9.111.44.234] File "/usr/lib/
[Mon Mar 24 08:09:17 2014] [error] [client 9.111.44.234] from horizon.test import helpers as test
[Mon Mar 24 08:09:17 2014] [error] [client 9.111.44.234] File "/usr/lib/
[Mon Mar 24 08:09:17 2014] [error] [client 9.111.44.234] import mox
[Mon Mar 24 08:09:17 2014] [error] [client 9.111.44.234] ImportError: No module named mox
Duplicated bug: https:/ /bugs.launchpad .net/horizon/ +bug/1288245