Unable to terminate instance from Network Topology screen

Bug #1398468 reported by Timur Sufiev
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Medium
Timur Sufiev
Juno
Fix Released
Medium
Doug Fish

Bug Description

I get Server error in JS console and the following traceback in web server:

Traceback (most recent call last):
  File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run
    self.result = application(self.environ, self.start_response)
  File "/home/timur/develop/horizon/.venv/local/lib/python2.7/site-packages/django/contrib/staticfiles/handlers.py", line 67, in __call__
    return self.application(environ, start_response)
  File "/home/timur/develop/horizon/.venv/local/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 206, in __call__
    response = self.get_response(request)
  File "/home/timur/develop/horizon/.venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 194, in get_response
    response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
  File "/home/timur/develop/horizon/.venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 112, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/timur/develop/horizon/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/home/timur/develop/horizon/horizon/decorators.py", line 52, in dec
    return view_func(request, *args, **kwargs)
  File "/home/timur/develop/horizon/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/home/timur/develop/horizon/horizon/decorators.py", line 84, in dec
    return view_func(request, *args, **kwargs)
  File "/home/timur/develop/horizon/.venv/local/lib/python2.7/site-packages/django/views/generic/base.py", line 69, in view
    return self.dispatch(request, *args, **kwargs)
  File "/home/timur/develop/horizon/.venv/local/lib/python2.7/site-packages/django/views/generic/base.py", line 87, in dispatch
    return handler(request, *args, **kwargs)
  File "/home/timur/develop/horizon/horizon/tables/views.py", line 157, in get
    handled = self.construct_tables()
  File "/home/timur/develop/horizon/horizon/tables/views.py", line 148, in construct_tables
    handled = self.handle_table(table)
  File "/home/timur/develop/horizon/horizon/tables/views.py", line 120, in handle_table
    data = self._get_data_dict()
  File "/home/timur/develop/horizon/horizon/tables/views.py", line 185, in _get_data_dict
    self._data = {self.table_class._meta.name: self.get_data()}
  File "/home/timur/develop/horizon/openstack_dashboard/dashboards/project/instances/views.py", line 60, in get_data
    search_opts = self.get_filters({'marker': marker, 'paginate': True})
  File "/home/timur/develop/horizon/openstack_dashboard/dashboards/project/instances/views.py", line 124, in get_filters
    filter_field = self.table.get_filter_field()
  File "/home/timur/develop/horizon/horizon/tables/base.py", line 1239, in get_filter_field
    param_name = '%s_field' % filter_action.get_param_name()
AttributeError: 'NoneType' object has no attribute 'get_param_name'

Timur Sufiev (tsufiev-x)
tags: added: topology-view
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

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

Changed in horizon:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/138472
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=a1416b6d1dbb084eeca1b489f77983449c7a5ed4
Submitter: Jenkins
Branch: master

commit a1416b6d1dbb084eeca1b489f77983449c7a5ed4
Author: Timur Sufiev <email address hidden>
Date: Tue Dec 2 21:09:32 2014 +0300

    Fix Terminate Instance on network topology page

    It failed because not all the info expected by the
    `project.instances.IndexView` was provided by network topology view
    while rendering part of Instances table in an iframe.

    Change-Id: If36f877517d454430320b90362fd0d5207dbf9df
    Closes-Bug: #1398468

Changed in horizon:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in horizon:
milestone: none → kilo-1
status: Fix Committed → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (stable/juno)

Fix proposed to branch: stable/juno
Review: https://review.openstack.org/165658

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

Reviewed: https://review.openstack.org/165658
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=8b80fe7766d4b816bca8f03d4d7adbb4b2876c7d
Submitter: Jenkins
Branch: stable/juno

commit 8b80fe7766d4b816bca8f03d4d7adbb4b2876c7d
Author: Timur Sufiev <email address hidden>
Date: Tue Dec 2 21:09:32 2014 +0300

    Fix Terminate Instance on network topology page

    It failed because not all the info expected by the
    `project.instances.IndexView` was provided by network topology view
    while rendering part of Instances table in an iframe.

    Change-Id: If36f877517d454430320b90362fd0d5207dbf9df
    Closes-Bug: #1398468
    (cherry picked from commit a1416b6d1dbb084eeca1b489f77983449c7a5ed4)

tags: added: in-stable-juno
Thierry Carrez (ttx)
Changed in horizon:
milestone: kilo-1 → 2015.1.0
Alan Pevec (apevec)
tags: removed: in-stable-juno
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.