Ask Your Question
1

Horizon failure- openstack-dashboard: 500 on openstack-status show

asked 2014-03-06 03:40:15 -0500

dubi gravatar image

updated 2014-03-07 12:27:56 -0500

I am using packstack--allinone per http://openstack.redhat.com/Quickstart

It used to work a week ago. now when I try it and install(as usual on Fedora 19. kernel: 3.9.5-301.fc19.x86_64 ) the installation is completed successfully but : openstack-status shows all components active except

== Horizon service ==

openstack-dashboard: 500

Any idea what is the cause ?

Does the http://rdo.fedorapeople.org/rdo-relea... update frequently ? I noticed that since last week config options like CONFIG_NEUTRON_ML2_TYPE_DRIVERS was added

Note

I do : 'yum -y update ' and reboot after installing the fedora 19 and before following the 3 step installation of packstack . Should I avoid the yum update ?

Reboot as requested does not help !

edit retag flag offensive close merge delete

Comments

The error is not with the httpd . ALLOWED_HOSTS is as needed . The error is in horizon . Is the Packastck not doing its job now ? /var/log/horizon/horizon.log shows: ImportError: cannot import name base 2014-03-06 10:19:10,761 1631 ERROR django.request Internal Server Error: /dashboard/ Traceback (most recent call last): .... from openstack_dashboard.api import base ImportError: cannot import name base ~

dubi gravatar imagedubi ( 2014-03-06 10:00:12 -0500 )edit

3 answers

Sort by » oldest newest most voted
1

answered 2014-03-06 10:03:29 -0500

dubi gravatar image

updated 2014-03-07 12:25:53 -0500

The error is NOT with the httpd . ALLOWED_HOSTS is as needed (['*'] The error is in horizon . Is the Packastck not doing its job now ?

/var/log/horizon/horizon.log shows (and this is immediately after the packstack install !):

2014-03-06 10:19:10,761 1631 ERROR django.request Internal Server Error: /dashboard/ Traceback (most recent call last):

File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 92, in get_response

response = middleware_method(request)

....

File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/router

/dashboard.py", line 19, in <module>

from openstack_dashboard.api import neutron

File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/__init__.py",

line 36, in <module>

from openstack_dashboard.api import base

ImportError: cannot import name base ~

edit flag offensive delete link more

Comments

i am also hitting the same issue.. did you find the solution for this one?

vaidyanath-m gravatar imagevaidyanath-m ( 2014-04-02 01:43:54 -0500 )edit

getting the same issue on debian 7.7 (icehouse)

programster gravatar imageprogramster ( 2014-12-09 16:49:22 -0500 )edit
0

answered 2014-03-06 06:50:48 -0500

dbaxps gravatar image

Set ALLOWED_HOSTS = ['*'] in /etc/openstack-dashboard/local_settings and restart httpd

edit flag offensive delete link more

Comments

The error is not with the httpd . ALLOWED_HOSTS is as needed . The error is in horizon . Is the Packastck not doing its job now ? /var/log/horizon/horizon.log shows: 2014-03-06 10:19:10,761 1631 ERROR django.request Internal Server Error: /dashboard/ Traceback (most recent call last): .... from openstack_dashboard.api import base ImportError: cannot import name base ~

dubi gravatar imagedubi ( 2014-03-06 10:02:29 -0500 )edit
0

answered 2014-04-11 14:38:14 -0500

Chris gravatar image

After I 'yum update', I got a similar error. Can anyone help?

ImportError at /

cannot import name base

Request Method: GET Request URL: http://172.17.61.157/dashboard/ Django Version: 1.5.4 Exception Type: ImportError Exception Value:

cannot import name base

Exception Location: /usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/__init__.py in <module>, line 36 Python Executable: /usr/bin/python Python Version: 2.7.5 Python Path:

['/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../..', '/usr/lib64/python27.zip', '/usr/lib64/python2.7', '/usr/lib64/python2.7/plat-linux2', '/usr/lib64/python2.7/lib-tk', '/usr/lib64/python2.7/lib-old', '/usr/lib64/python2.7/lib-dynload', '/usr/lib64/python2.7/site-packages', '/usr/lib64/python2.7/site-packages/gtk-2.0', '/usr/lib/python2.7/site-packages', '/usr/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info', '/usr/share/openstack-dashboard/openstack_dashboard']

Server time: Fri, 11 Apr 2014 19:12:21 +0000 Traceback Switch to copy-and-paste view

/usr/lib/python2.7/site-packages/django/core/handlers/base.py in get_response

                        response = middleware_method(request)

    ...
▶ Local vars
/usr/lib/python2.7/site-packages/django/middleware/locale.py in process_request

            check_path = self.is_language_prefix_patterns_used()

    ...
▶ Local vars
/usr/lib/python2.7/site-packages/django/middleware/locale.py in is_language_prefix_patterns_used

            for url_pattern in get_resolver(None).url_patterns:

    ...
▶ Local vars
/usr/lib/python2.7/site-packages/django/core/urlresolvers.py in url_patterns

            patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)

    ...
▶ Local vars
/usr/lib/python2.7/site-packages/django/core/urlresolvers.py in urlconf_module

                self._urlconf_module = import_module(self.urlconf_name)

    ...
▶ Local vars
/usr/lib/python2.7/site-packages/django/utils/importlib.py in import_module

        __import__(name)

    ...
▶ Local vars
/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/urls.py in <module>

        url(r'', include(horizon.urls))

    ...
▶ Local vars
/usr/lib/python2.7/site-packages/django/conf/urls/__init__.py in include

        patterns = getattr(urlconf_module, 'urlpatterns', urlconf_module)

    ...
▶ Local vars
/usr/lib/python2.7/site-packages/django/utils/functional.py in inner

                self._setup()

    ...
▶ Local vars
/usr/lib/python2.7/site-packages/django/utils/functional.py in _setup

            self._wrapped = self._setupfunc()

    ...
▶ Local vars
/usr/lib/python2.7/site-packages/horizon/base.py in url_patterns

                return self._urls()[0]

    ...
▶ Local vars
/usr/lib/python2.7/site-packages/horizon/base.py in _urls

            self._autodiscover()

    ...
▶ Local vars
/usr/lib/python2.7/site-packages/horizon/base.py in _autodiscover

                        import_module('%s.%s' % (app, mod_name))

    ...
▶ Local vars
/usr/lib/python2.7/site-packages/django/utils/importlib.py in import_module

        __import__(name)

    ...
▶ Local vars
/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/router/dashboard.py in <module>

    from openstack_dashboard.api import neutron

    ...
▶ Local vars
/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/api/__init__.py in <module>

    from openstack_dashboard.api import base

    ...
▶ Local vars
edit flag offensive delete link more

Comments

My previous controller was installed on Fedora19, after 'yum update' it had problem.

Later I re-installed controller on CentOS 6.5, moved everything (database and config) over, dashboard worked.

Chris gravatar imageChris ( 2014-04-15 13:04:40 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-03-06 03:40:15 -0500

Seen: 6,198 times

Last updated: Apr 11 '14