Django error cloudkitty-dashboard on Queens

Bug #1775650 reported by Adrian Campos Garrido
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloudkitty
In Progress
Undecided
Guillaume Espanel

Bug Description

Hello, I am using lastest version of cloudkitty from Git and lastest stable version of cloudkitty-dashboard on Openstack Queens version.

As backend i am using gnocchi storage, but my problem it is using horizon plugin when i click on create new server on hashmap part i get error 500.

On Dashboard log i can see this:

[Thu Jun 07 15:58:21.825057 2018] [wsgi:error] [pid 8651:tid 140242136770304] Internal Server Error: /admin/hashmap/create_service
[Thu Jun 07 15:58:21.825117 2018] [wsgi:error] [pid 8651:tid 140242136770304] Traceback (most recent call last):
[Thu Jun 07 15:58:21.825123 2018] [wsgi:error] [pid 8651:tid 140242136770304] File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 132, in get_response
[Thu Jun 07 15:58:21.825127 2018] [wsgi:error] [pid 8651:tid 140242136770304] response = wrapped_callback(request, *callback_args, **callback_kwargs)
[Thu Jun 07 15:58:21.825131 2018] [wsgi:error] [pid 8651:tid 140242136770304] File "/usr/share/openstack-dashboard/horizon/decorators.py", line 52, in dec
[Thu Jun 07 15:58:21.825135 2018] [wsgi:error] [pid 8651:tid 140242136770304] return view_func(request, *args, **kwargs)
[Thu Jun 07 15:58:21.825138 2018] [wsgi:error] [pid 8651:tid 140242136770304] File "/usr/share/openstack-dashboard/horizon/decorators.py", line 36, in dec
[Thu Jun 07 15:58:21.825153 2018] [wsgi:error] [pid 8651:tid 140242136770304] return view_func(request, *args, **kwargs)
[Thu Jun 07 15:58:21.825157 2018] [wsgi:error] [pid 8651:tid 140242136770304] File "/usr/share/openstack-dashboard/horizon/decorators.py", line 52, in dec
[Thu Jun 07 15:58:21.825161 2018] [wsgi:error] [pid 8651:tid 140242136770304] return view_func(request, *args, **kwargs)
[Thu Jun 07 15:58:21.825164 2018] [wsgi:error] [pid 8651:tid 140242136770304] File "/usr/share/openstack-dashboard/horizon/decorators.py", line 36, in dec
[Thu Jun 07 15:58:21.825167 2018] [wsgi:error] [pid 8651:tid 140242136770304] return view_func(request, *args, **kwargs)
[Thu Jun 07 15:58:21.825170 2018] [wsgi:error] [pid 8651:tid 140242136770304] File "/usr/share/openstack-dashboard/horizon/decorators.py", line 113, in dec
[Thu Jun 07 15:58:21.825174 2018] [wsgi:error] [pid 8651:tid 140242136770304] return view_func(request, *args, **kwargs)
[Thu Jun 07 15:58:21.825177 2018] [wsgi:error] [pid 8651:tid 140242136770304] File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 71, in view
[Thu Jun 07 15:58:21.825180 2018] [wsgi:error] [pid 8651:tid 140242136770304] return self.dispatch(request, *args, **kwargs)
[Thu Jun 07 15:58:21.825183 2018] [wsgi:error] [pid 8651:tid 140242136770304] File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 89, in dispatch
[Thu Jun 07 15:58:21.825187 2018] [wsgi:error] [pid 8651:tid 140242136770304] return handler(request, *args, **kwargs)
[Thu Jun 07 15:58:21.825190 2018] [wsgi:error] [pid 8651:tid 140242136770304] File "/usr/lib/python2.7/dist-packages/django/views/generic/edit.py", line 205, in get
[Thu Jun 07 15:58:21.825193 2018] [wsgi:error] [pid 8651:tid 140242136770304] form = self.get_form()
[Thu Jun 07 15:58:21.825196 2018] [wsgi:error] [pid 8651:tid 140242136770304] File "/usr/share/openstack-dashboard/horizon/forms/views.py", line 176, in get_form
[Thu Jun 07 15:58:21.825200 2018] [wsgi:error] [pid 8651:tid 140242136770304] return form_class(self.request, **self.get_form_kwargs())
[Thu Jun 07 15:58:21.825203 2018] [wsgi:error] [pid 8651:tid 140242136770304] File "/usr/local/lib/python2.7/dist-packages/cloudkittydashboard/dashboards/admin/hashmap/forms.py", line 67, in __init__
[Thu Jun 07 15:58:21.825207 2018] [wsgi:error] [pid 8651:tid 140242136770304] services = api.cloudkittyclient(request).service_info.list()
[Thu Jun 07 15:58:21.825210 2018] [wsgi:error] [pid 8651:tid 140242136770304] File "/usr/local/lib/python2.7/dist-packages/cloudkittyclient/apiclient/base.py", line 358, in list
[Thu Jun 07 15:58:21.825213 2018] [wsgi:error] [pid 8651:tid 140242136770304] self.collection_key)
[Thu Jun 07 15:58:21.825216 2018] [wsgi:error] [pid 8651:tid 140242136770304] File "/usr/local/lib/python2.7/dist-packages/cloudkittyclient/apiclient/base.py", line 136, in _list
[Thu Jun 07 15:58:21.825220 2018] [wsgi:error] [pid 8651:tid 140242136770304] data = body[response_key] if response_key is not None else body
[Thu Jun 07 15:58:21.825223 2018] [wsgi:error] [pid 8651:tid 140242136770304] KeyError: 'services'

Tags: dashboard
Revision history for this message
Adrian Campos Garrido (hadrianweb) wrote :

It seems that it's a incompatibility of horizon and cloudkittydashboard.

The cloudkitty client it seems to work well.

Revision history for this message
Adrian Campos Garrido (hadrianweb) wrote :

I discover that if i go directly to url:

/admin/hashmap/field/d1735cbd-393c-4a8b-b934-05xxxxxxxxx

It works, so the problem it's with uri /admin/hashmap/service

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-cloudkittyclient (master)

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

Changed in cloudkitty:
assignee: nobody → Guillaume Espanel (guillaume-espanel)
status: New → In Progress
Revision history for this message
Adrian Campos Garrido (hadrianweb) wrote :

That fix is for python-cloudkittyclient it also affects to cloudkitty-dashboard package.

tags: added: dashboard
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-cloudkittyclient (master)

Change abandoned by Luka Peschke (<email address hidden>) on branch: master
Review: https://review.openstack.org/575103
Reason: Not needed anymore (new version of the client)

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.