network_topology page not working

Bug #1469589 reported by Liyingjun
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
High
Liyingjun

Bug Description

Latest branch of horizon, when viewing project/network_topology/, error occurs:

2015-06-29 03:44:23.857338 Internal Server Error: /project/network_topology/
2015-06-29 03:44:23.857371 Traceback (most recent call last):
2015-06-29 03:44:23.857377 File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 112, in get_response
2015-06-29 03:44:23.857382 response = wrapped_callback(request, *callback_args, **callback_kwargs)
2015-06-29 03:44:23.857387 File "/data/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py", line 36, in dec
2015-06-29 03:44:23.857393 return view_func(request, *args, **kwargs)
2015-06-29 03:44:23.857398 File "/data/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py", line 52, in dec
2015-06-29 03:44:23.857402 return view_func(request, *args, **kwargs)
2015-06-29 03:44:23.857407 File "/data/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py", line 36, in dec
2015-06-29 03:44:23.857412 return view_func(request, *args, **kwargs)
2015-06-29 03:44:23.857416 File "/data/stack/horizon/openstack_dashboard/wsgi/../../horizon/decorators.py", line 84, in dec
2015-06-29 03:44:23.857421 return view_func(request, *args, **kwargs)
2015-06-29 03:44:23.857426 File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view
2015-06-29 03:44:23.857430 return self.dispatch(request, *args, **kwargs)
2015-06-29 03:44:23.857435 File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch
2015-06-29 03:44:23.857440 return handler(request, *args, **kwargs)
2015-06-29 03:44:23.857444 File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py", line 154, in get
2015-06-29 03:44:23.857449 context = self.get_context_data(**kwargs)
2015-06-29 03:44:23.857454 File "/data/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/network_topology/views.py", line 123, in get_context_data
2015-06-29 03:44:23.857459 context['instance_quota_exceeded'] = self._quota_exceeded('instances')
2015-06-29 03:44:23.857464 File "/data/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/network_topology/views.py", line 113, in _quota_exceeded
2015-06-29 03:44:23.857469 usages = quotas.tenant_quota_usages(self.request)
2015-06-29 03:44:23.857474 File "/data/stack/horizon/openstack_dashboard/wsgi/../../horizon/utils/memoized.py", line 90, in wrapped
2015-06-29 03:44:23.857478 value = cache[key] = func(*args, **kwargs)
2015-06-29 03:44:23.857483 File "/data/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/usage/quotas.py", line 362, in tenant_quota_usages
2015-06-29 03:44:23.857501 _get_tenant_volume_usages(request, usages, disabled_quotas, tenant_id)
2015-06-29 03:44:23.857506 File "/data/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/usage/quotas.py", line 333, in _get_tenant_volume_usages
2015-06-29 03:44:23.857511 snapshots = cinder.volume_snapshot_list(request, opts)
2015-06-29 03:44:23.857516 File "/data/stack/horizon/openstack_dashboard/wsgi/../../openstack_dashboard/api/cinder.py", line 311, in volume_snapshot_list
2015-06-29 03:44:23.857520 search_opts=search_opts)]
2015-06-29 03:44:23.857525 File "/usr/local/lib/python2.7/dist-packages/cinderclient/v2/volume_snapshots.py", line 132, in list
2015-06-29 03:44:23.857530 "snapshots")
2015-06-29 03:44:23.857534 File "/usr/local/lib/python2.7/dist-packages/cinderclient/base.py", line 65, in _list
2015-06-29 03:44:23.857539 resp, body = self.api.client.get(url)
2015-06-29 03:44:23.857543 File "/usr/local/lib/python2.7/dist-packages/cinderclient/client.py", line 326, in get
2015-06-29 03:44:23.857548 return self._cs_request(url, 'GET', **kwargs)
2015-06-29 03:44:23.857553 File "/usr/local/lib/python2.7/dist-packages/cinderclient/client.py", line 289, in _cs_request
2015-06-29 03:44:23.857557 **kwargs)
2015-06-29 03:44:23.857562 File "/usr/local/lib/python2.7/dist-packages/cinderclient/client.py", line 272, in request
2015-06-29 03:44:23.857566 raise exceptions.from_response(resp, body)
2015-06-29 03:44:23.857571 ClientException: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-9b76a8d0-a4e4-422e-bbf6-07cdfaf1062d)

Liyingjun (liyingjun)
Changed in horizon:
assignee: nobody → Liyingjun (liyingjun)
Changed in horizon:
status: New → In Progress
Changed in horizon:
status: In Progress → Fix Committed
Revision history for this message
Rob Cresswell (robcresswell-deactivatedaccount) wrote :
Changed in horizon:
milestone: none → liberty-2
importance: Undecided → High
Revision history for this message
Sun Jing (sun-jing22) wrote :

How to reproduction this bugs?

Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: liberty-2 → 8.0.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (stable/kilo)

Fix proposed to branch: stable/kilo
Review: https://review.openstack.org/253496

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (stable/kilo)

Reviewed: https://review.openstack.org/253496
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=ba9e0f83176d9ebcf2c22fa69e92a2355c2e1eba
Submitter: Jenkins
Branch: stable/kilo

commit ba9e0f83176d9ebcf2c22fa69e92a2355c2e1eba
Author: liyingjun <email address hidden>
Date: Mon Jun 29 11:42:13 2015 +0800

    Fix _get_tenant_volume_usages

    The search opts for volume/snapshot list should be 'all_tenants' and
    'project_id' instead of 'alltenants' and 'tenant_id'.

    Change-Id: I9ab71421447b3f8fb402247df3290fa3066bf8c5
    Closes-bug: #1469589
    (cherry picked from commit faa44bfe1d6c4f342b8572bc4939771cda2039c7)

tags: added: in-stable-kilo
no longer affects: horizon/kilo
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.