Install the dashboard in OpenStack Installation Guide for openSUSE and SUSE Linux Enterprise Server  - icehouse

Bug #1310188 reported by ZhiQiang Fan
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-manuals
Fix Released
High
ZhiQiang Fan

Bug Description

after install openstack-dashborad and try to connect to it (from controller node), it returns 500
/var/log/apache2/openstack-dashboard-error_log shows:

[Sun Apr 20 07:10:48 2014] [error] [client 160.132.0.12] mod_wsgi (pid=32719): Exception occurred processing WSGI script '/srv/www/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'.
[Sun Apr 20 07:10:48 2014] [error] [client 160.132.0.12] Traceback (most recent call last):
[Sun Apr 20 07:10:48 2014] [error] [client 160.132.0.12] File "/usr/lib64/python2.6/site-packages/django/core/handlers/wsgi.py", line 187, in __call__
[Sun Apr 20 07:10:48 2014] [error] [client 160.132.0.12] self.load_middleware()
[Sun Apr 20 07:10:48 2014] [error] [client 160.132.0.12] File "/usr/lib64/python2.6/site-packages/django/core/handlers/base.py", line 49, in load_middleware
[Sun Apr 20 07:10:48 2014] [error] [client 160.132.0.12] mw_instance = mw_class()
[Sun Apr 20 07:10:48 2014] [error] [client 160.132.0.12] File "/usr/lib64/python2.6/site-packages/django/middleware/locale.py", line 24, in __init__
[Sun Apr 20 07:10:48 2014] [error] [client 160.132.0.12] for url_pattern in get_resolver(None).url_patterns:
[Sun Apr 20 07:10:48 2014] [error] [client 160.132.0.12] File "/usr/lib64/python2.6/site-packages/django/core/urlresolvers.py", line 346, in url_patterns
[Sun Apr 20 07:10:48 2014] [error] [client 160.132.0.12] patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
[Sun Apr 20 07:10:48 2014] [error] [client 160.132.0.12] File "/usr/lib64/python2.6/site-packages/django/core/urlresolvers.py", line 341, in urlconf_module
[Sun Apr 20 07:10:48 2014] [error] [client 160.132.0.12] self._urlconf_module = import_module(self.urlconf_name)
[Sun Apr 20 07:10:48 2014] [error] [client 160.132.0.12] File "/usr/lib64/python2.6/site-packages/django/utils/importlib.py", line 40, in import_module
[Sun Apr 20 07:10:48 2014] [error] [client 160.132.0.12] __import__(name)
[Sun Apr 20 07:10:48 2014] [error] [client 160.132.0.12] File "/srv/www/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/urls.py", line 38, in <module>
[Sun Apr 20 07:10:48 2014] [error] [client 160.132.0.12] url(r'', include(horizon.urls))
[Sun Apr 20 07:10:48 2014] [error] [client 160.132.0.12] File "/usr/lib64/python2.6/site-packages/django/conf/urls/__init__.py", line 27, in include
[Sun Apr 20 07:10:48 2014] [error] [client 160.132.0.12] patterns = getattr(urlconf_module, 'urlpatterns', urlconf_module)
[Sun Apr 20 07:10:48 2014] [error] [client 160.132.0.12] File "/usr/lib64/python2.6/site-packages/django/utils/functional.py", line 213, in inner
[Sun Apr 20 07:10:48 2014] [error] [client 160.132.0.12] self._setup()
[Sun Apr 20 07:10:48 2014] [error] [client 160.132.0.12] File "/usr/lib64/python2.6/site-packages/django/utils/functional.py", line 298, in _setup
[Sun Apr 20 07:10:48 2014] [error] [client 160.132.0.12] self._wrapped = self._setupfunc()
[Sun Apr 20 07:10:48 2014] [error] [client 160.132.0.12] File "/usr/lib64/python2.6/site-packages/horizon/base.py", line 733, in url_patterns
[Sun Apr 20 07:10:48 2014] [error] [client 160.132.0.12] return self._urls()[0]
[Sun Apr 20 07:10:48 2014] [error] [client 160.132.0.12] File "/usr/lib64/python2.6/site-packages/horizon/base.py", line 739, in _urls
[Sun Apr 20 07:10:48 2014] [error] [client 160.132.0.12] urlpatterns = self._get_default_urlpatterns()
[Sun Apr 20 07:10:48 2014] [error] [client 160.132.0.12] File "/usr/lib64/python2.6/site-packages/horizon/base.py", line 82, in _get_default_urlpatterns
[Sun Apr 20 07:10:48 2014] [error] [client 160.132.0.12] mod = import_module(self.urls)
[Sun Apr 20 07:10:48 2014] [error] [client 160.132.0.12] File "/usr/lib64/python2.6/site-packages/django/utils/importlib.py", line 40, in import_module
[Sun Apr 20 07:10:48 2014] [error] [client 160.132.0.12] __import__(name)
[Sun Apr 20 07:10:48 2014] [error] [client 160.132.0.12] File "/usr/lib64/python2.6/site-packages/horizon/site_urls.py", line 43, in <module>
[Sun Apr 20 07:10:48 2014] [error] [client 160.132.0.12] from horizon.test.jasmine import jasmine
[Sun Apr 20 07:10:48 2014] [error] [client 160.132.0.12] ImportError: No module named test.jasmine

and I checked the horizon module, it shows no such directory or file:

# ls -l /usr/lib64/python2.6/site-packages/horizon/ | grep test

and I checked the /usr/lib64/python2.6/site-packages/horizon/site_urls.py, it shows:

if settings.DEBUG:
    from horizon.test.jasmine import jasmine

so I set DEBUG=False in /srv/www/openstack-dashboard/openstack_dashboard/local/local_settings.py and restart apache2 and memcached service, then it works
-----------------------------------
Built: 2014-04-20T01:22:19 00:00
git SHA: 3ad2186e0d6bd627e3a9e86bbcb0418a6d83b6b8
URL: http://docs.openstack.org/icehouse/install-guide/install/zypper/content/install_dashboard.html
source File: file:/home/jenkins/workspace/openstack-manuals-tox-doc-publishdocs/doc/install-guide/section_dashboard-install.xml
xml:id: install_dashboard

ZhiQiang Fan (aji-zqfan)
Changed in openstack-manuals:
assignee: nobody → ZhiQiang Fan (aji-zqfan)
Revision history for this message
ZhiQiang Fan (aji-zqfan) wrote :

honestly, I'm not sure if this is a package problem for suse, need confirm on other distributions

Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix proposed to openstack-manuals (master)

Fix proposed to branch: master
Review: https://review.openstack.org/89226

Changed in openstack-manuals:
status: New → In Progress
Revision history for this message
Andreas Jaeger (jaegerandi) wrote :

It might be SUSE specific, since not every distro splits up openstack-dashboard-test in a separate package like SUSE does.

Changed in openstack-manuals:
importance: Undecided → High
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to openstack-manuals (master)

Reviewed: https://review.openstack.org/89226
Committed: https://git.openstack.org/cgit/openstack/openstack-manuals/commit/?id=e5ca4adeed34575db09f52a84d7e8c0e9110f3d1
Submitter: Jenkins
Branch: master

commit e5ca4adeed34575db09f52a84d7e8c0e9110f3d1
Author: ZhiQiang Fan <email address hidden>
Date: Sun Apr 20 16:05:44 2014 +0800

    Install openstack-dashboard-test package for suse

    Currently, on SLES 11 sp3, if the horizon open debug option, it will
    try to import horizon.test module, which doesn't exist, then user will
    get a 500 error. Since user may want to enable debug option, we'd better
    install the openstack-dashboard-test package.

    Change-Id: I31f61e31a259265ee5556d38c135f4c063ec9372
    Closes-Bug: #1310188

Changed in openstack-manuals:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to openstack-manuals (stable/kilo)

Related fix proposed to branch: stable/kilo
Review: https://review.openstack.org/199115

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to openstack-manuals (stable/kilo)

Reviewed: https://review.openstack.org/199115
Committed: https://git.openstack.org/cgit/openstack/openstack-manuals/commit/?id=4fa32873ee779afd5f05832ff653c05aef717a9f
Submitter: Jenkins
Branch: stable/kilo

commit 4fa32873ee779afd5f05832ff653c05aef717a9f
Author: Dirk Mueller <email address hidden>
Date: Fri Jun 26 16:55:37 2015 +0200

    Revert "Install openstack-dashboard-test package for suse"

    The dependency on openstack-dashboard-test was a packaging
    error that was meanwhile fixed.

    This reverts https://review.openstack.org/#/c/89226

    Related-Bug: #1310188
    backport:kilo
    Change-Id: I19db11b516dc05c1b53c69bfd4e69f7088983d57
    (cherry picked from commit 8097fe92061c4bae2502f75c47059539c538f9e3)

tags: added: in-stable-kilo
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-manuals 15.0.0

This issue was fixed in the openstack/openstack-manuals 15.0.0 release.

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.