failed to start horizon after devstack

Bug #1507087 reported by yong sheng gong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloudkitty
Fix Released
Critical
Stéphane Albert

Bug Description

crash my horizon after installing cloudkitty:

# python manage.py runserver 0.0.0.0:8080
Performing system checks...

System check identified no issues (0 silenced).
October 17, 2015 - 05:03:23
Django version 1.8.5, using settings 'openstack_dashboard.settings'
Starting development server at http://0.0.0.0:8080/
Quit the server with CONTROL-C.
RemovedInDjango19Warning: The django.forms.util module has been renamed. Use django.forms.utils instead.
WARNING:py.warnings:RemovedInDjango19Warning: The django.forms.util module has been renamed. Use django.forms.utils instead.
Traceback (most recent call last):
  File "/usr/lib64/python2.7/wsgiref/handlers.py", line 85, in run
    self.result = application(self.environ, self.start_response)
  File "/usr/lib/python2.7/site-packages/django/contrib/staticfiles/handlers.py", line 63, in __call__
    return self.application(environ, start_response)
  File "/usr/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 170, in __call__
    self.load_middleware()
  File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 52, in load_middleware
    mw_instance = mw_class()
  File "/usr/lib/python2.7/site-packages/django/middleware/locale.py", line 24, in __init__
    for url_pattern in get_resolver(None).url_patterns:
  File "/usr/lib/python2.7/site-packages/django/core/urlresolvers.py", line 401, in url_patterns
    patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
  File "/usr/lib/python2.7/site-packages/django/core/urlresolvers.py", line 395, in urlconf_module
    self._urlconf_module = import_module(self.urlconf_name)
  File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/opt/stack/horizon/openstack_dashboard/urls.py", line 36, in <module>
    url(r'', include(horizon.urls)),
  File "/usr/lib/python2.7/site-packages/django/conf/urls/__init__.py", line 34, in include
    patterns = getattr(urlconf_module, 'urlpatterns', urlconf_module)
  File "/usr/lib/python2.7/site-packages/django/utils/functional.py", line 225, in inner
    self._setup()
  File "/usr/lib/python2.7/site-packages/django/utils/functional.py", line 365, in _setup
    self._wrapped = self._setupfunc()
  File "/opt/stack/horizon/horizon/base.py", line 820, in url_patterns
    return self._urls()[0]
  File "/opt/stack/horizon/horizon/base.py", line 855, in _urls
    include(dash._decorated_urls)))
  File "/opt/stack/horizon/horizon/base.py", line 535, in _decorated_urls
    % self.default_panel)

NotRegistered: The default panel "None" is not registered.
[17/Oct/2015 05:03:34] "GET / HTTP/1.1" 500 59

Revision history for this message
Stéphane Albert (sheeprine) wrote :

We're getting this with Horizon Liberty release. We've got a fix for this, we'll commit the patch today.

Changed in cloudkitty:
assignee: nobody → Stéphane Albert (sheeprine)
importance: Undecided → Critical
milestone: none → 0.5.0b1
Changed in cloudkitty:
status: New → In Progress
Revision history for this message
Stéphane Albert (sheeprine) wrote :

The fix is in review, you can try it if you want.

https://review.openstack.org/#/c/236895/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to cloudkitty (master)

Reviewed: https://review.openstack.org/236991
Committed: https://git.openstack.org/cgit/openstack/cloudkitty/commit/?id=77347ae5174f5f63742d303b6f940a01032bc221
Submitter: Jenkins
Branch: master

commit 77347ae5174f5f63742d303b6f940a01032bc221
Author: Stéphane Albert <email address hidden>
Date: Mon Oct 19 15:05:21 2015 +0200

    Fixed files to support liberty dashboard

    Related-Bug: #1507087
    Change-Id: I272fc8adb62f0bcc340c7bb3bfd9ed5cbdac42ec

Revision history for this message
Stéphane Albert (sheeprine) wrote :

devstack installation based on master version is now working. Can you try it again?
Thanks

Changed in cloudkitty:
status: In Progress → Fix Committed
Revision history for this message
maestropandy (maestropandy) wrote :

Hi Stephen,

Mine is cloned with master version but am getting same error as below

tailf horizon_error.log
2015-10-26 07:04:54.736587 self._setup()
2015-10-26 07:04:54.736592 File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 365, in _setup
2015-10-26 07:04:54.736599 self._wrapped = self._setupfunc()
2015-10-26 07:04:54.736604 File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/base.py", line 820, in url_patterns
2015-10-26 07:04:54.736611 return self._urls()[0]
2015-10-26 07:04:54.736616 File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/base.py", line 855, in _urls
2015-10-26 07:04:54.736623 include(dash._decorated_urls)))
2015-10-26 07:04:54.736628 File "/opt/stack/horizon/openstack_dashboard/wsgi/../../horizon/base.py", line 535, in _decorated_urls
2015-10-26 07:04:54.736635 % self.default_panel)
2015-10-26 07:04:54.736646 NotRegistered: The default panel "None" is not registered.

May i know how can i fix it ?

Revision history for this message
Stéphane Albert (sheeprine) wrote :

Hi,

Did you used an old devstack deployment? You might still have an old enable file in your enabled horizon directory.
Try to search a file named _90_enable_ck.py and delete it.

It should do the trick.

Revision history for this message
maestropandy (maestropandy) wrote :

hi,
 i did clone again to pull latest devstack.. successfully done it, later i have added cloudkitty entry in localrc file

# ceilometer
enable_plugin ceilometer https://git.openstack.org/openstack/ceilometer.git master

# horizon
enable_service horizon

# cloudkitty
enable_plugin cloudkitty https://github.com/openstack/cloudkitty master
enable_service ck-api ck-proc

while doing ./stack.sh getting error as

" ERROR cloudkitty AttributeError: 'NoneType' object has no attribute 'auth_url'
2015-10-26 19:07:54.512 25955 ERROR cloudkitty
ck-proc failed to start
"

please let me know how to fix it ?

Revision history for this message
Stéphane Albert (sheeprine) wrote :

I answered you on IRC but since other people might have the same issue I'll answer here too.
If you are using the same machine/VM, you will not solve the issue only pulling latest devstack version. The issue is caused by an old enabled file named _90_enable_ck.py, this file will not be removed by git or devstack. You need to remove it by hand.
To be sure that you have the latest version got to /opt/stack/cloudkitty-dashboard and do a git pull from here, do the same for /opt/stack/cloudkitty.

Tell me if it corrected your problem.

Revision history for this message
maestropandy (maestropandy) wrote :

Hi Stephan,

I have removed _90_enable_ck.py and did git pull from /opt/stack/cloudkittyfor latest version, now i could able to see horizon, but the "Rating" tab in horizon for billing is missing.

Cloud kitty CLI is working fine and service is running, please find the attached screenshot of horizon dashboard.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/cloudkitty-dashboard 0.5.0

This issue was fixed in the openstack/cloudkitty-dashboard 0.5.0 release.

Changed in cloudkitty:
status: Fix Committed → Fix Released
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.