TypeError: 'NoneType' object is not iterable when check box is selected for single entry

Bug #1431508 reported by themadengin33r
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Invalid
Undecided
Unassigned
Ubuntu
New
Undecided
Unassigned

Bug Description

When deleting volumes from dashboard by checking the "check box" on the left side it returns "something went wrong" error..

This will not show if we dont select check box and delete each volume independently.Requests is not coming to cinder-volume so i suspect its an issue with dashboard.

platform:
icehouse,centos 6.6

Reproducible: yes
Select check box before deleting volume (single volume,haven't tried with multiple volumes)

error log httpd:

[Thu Mar 12 18:14:15 2015] [error] Internal Server Error: /dashboard/project/volumes/
[Thu Mar 12 18:14:15 2015] [error] Traceback (most recent call last):
[Thu Mar 12 18:14:15 2015] [error] File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 109, in get_response
[Thu Mar 12 18:14:15 2015] [error] response = callback(request, *callback_args, **callback_kwargs)
[Thu Mar 12 18:14:15 2015] [error] File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 38, in dec
[Thu Mar 12 18:14:15 2015] [error] return view_func(request, *args, **kwargs)
[Thu Mar 12 18:14:15 2015] [error] File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 54, in dec
[Thu Mar 12 18:14:15 2015] [error] return view_func(request, *args, **kwargs)
[Thu Mar 12 18:14:15 2015] [error] File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 38, in dec
[Thu Mar 12 18:14:15 2015] [error] return view_func(request, *args, **kwargs)
[Thu Mar 12 18:14:15 2015] [error] File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 86, in dec
[Thu Mar 12 18:14:15 2015] [error] return view_func(request, *args, **kwargs)
[Thu Mar 12 18:14:15 2015] [error] File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 38, in dec
[Thu Mar 12 18:14:15 2015] [error] return view_func(request, *args, **kwargs)
[Thu Mar 12 18:14:15 2015] [error] File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 54, in dec
[Thu Mar 12 18:14:15 2015] [error] return view_func(request, *args, **kwargs)
[Thu Mar 12 18:14:15 2015] [error] File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 38, in dec
[Thu Mar 12 18:14:15 2015] [error] return view_func(request, *args, **kwargs)
[Thu Mar 12 18:14:15 2015] [error] File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 86, in dec
[Thu Mar 12 18:14:15 2015] [error] return view_func(request, *args, **kwargs)
[Thu Mar 12 18:14:15 2015] [error] File "/usr/lib/python2.6/site-packages/django/views/generic/base.py", line 48, in view
[Thu Mar 12 18:14:15 2015] [error] return self.dispatch(request, *args, **kwargs)
[Thu Mar 12 18:14:15 2015] [error] File "/usr/lib/python2.6/site-packages/django/views/generic/base.py", line 69, in dispatch
[Thu Mar 12 18:14:15 2015] [error] return handler(request, *args, **kwargs)
[Thu Mar 12 18:14:15 2015] [error] File "/usr/lib/python2.6/site-packages/horizon/tabs/views.py", line 162, in post
[Thu Mar 12 18:14:15 2015] [error] return self.get(request, *args, **kwargs)
[Thu Mar 12 18:14:15 2015] [error] File "/usr/lib/python2.6/site-packages/django/views/generic/base.py", line 69, in dispatch
[Thu Mar 12 18:14:15 2015] [error] return handler(request, *args, **kwargs)
[Thu Mar 12 18:14:15 2015] [error] File "/usr/lib/python2.6/site-packages/horizon/tabs/views.py", line 162, in post
[Thu Mar 12 18:14:15 2015] [error] return self.get(request, *args, **kwargs)
[Thu Mar 12 18:14:15 2015] [error] File "/usr/lib/python2.6/site-packages/horizon/tabs/views.py", line 141, in get
[Thu Mar 12 18:14:15 2015] [error] handled = self.handle_table(self._table_dict[table_name])
[Thu Mar 12 18:14:15 2015] [error] File "/usr/lib/python2.6/site-packages/horizon/tabs/views.py", line 122, in handle_table
[Thu Mar 12 18:14:15 2015] [error] handled = tab._tables[table_name].maybe_handle()
[Thu Mar 12 18:14:15 2015] [error] handled = self.handle_table(self._table_dict[table_name])
[Thu Mar 12 18:14:15 2015] [error] File "/usr/lib/python2.6/site-packages/horizon/tabs/views.py", line 122, in handle_table
[Thu Mar 12 18:14:15 2015] [error] handled = tab._tables[table_name].maybe_handle()
[Thu Mar 12 18:14:15 2015] [error] File "/usr/lib/python2.6/site-packages/horizon/tables/base.py", line 1480, in maybe_handle
[Thu Mar 12 18:14:15 2015] [error] return self.take_action(action_name, obj_id)
[Thu Mar 12 18:14:15 2015] [error] File "/usr/lib/python2.6/site-packages/horizon/tables/base.py", line 1326, in take_action
[Thu Mar 12 18:14:15 2015] [error] response = action.multiple(self, self.request, obj_ids)
[Thu Mar 12 18:14:15 2015] [error] return self.take_action(action_name, obj_id)
[Thu Mar 12 18:14:15 2015] [error] File "/usr/lib/python2.6/site-packages/horizon/tables/base.py", line 1326, in take_action
[Thu Mar 12 18:14:15 2015] [error] response = action.multiple(self, self.request, obj_ids)
[Thu Mar 12 18:14:15 2015] [error] File "/usr/lib/python2.6/site-packages/horizon/tables/actions.py", line 294, in multiple
[Thu Mar 12 18:14:15 2015] [error] return self.handle(data_table, request, object_ids)
[Thu Mar 12 18:14:15 2015] [error] File "/usr/lib/python2.6/site-packages/horizon/tables/actions.py", line 294, in multiple
[Thu Mar 12 18:14:15 2015] [error] return self.handle(data_table, request, object_ids)
[Thu Mar 12 18:14:15 2015] [error] File "/usr/lib/python2.6/site-packages/horizon/tables/actions.py", line 665, in handle
[Thu Mar 12 18:14:15 2015] [error] exceptions.handle(request, ignore=ignore)
[Thu Mar 12 18:14:15 2015] [error] File "/usr/lib/python2.6/site-packages/horizon/tables/actions.py", line 649, in handle
[Thu Mar 12 18:14:15 2015] [error] exceptions.handle(request, ignore=ignore)
[Thu Mar 12 18:14:15 2015] [error] File "/usr/lib/python2.6/site-packages/horizon/tables/actions.py", line 649, in handle
[Thu Mar 12 18:14:15 2015] [error] self.action(request, datum_id)
[Thu Mar 12 18:14:15 2015] [error] File "/usr/lib/python2.6/site-packages/horizon/tables/actions.py", line 703, in action
[Thu Mar 12 18:14:15 2015] [error] File "/usr/lib/python2.6/site-packages/horizon/tables/actions.py", line 703, in action
[Thu Mar 12 18:14:15 2015] [error] return self.delete(request, obj_id)
[Thu Mar 12 18:14:15 2015] [error] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/volumes/volumes/tables.py", line 51, in delete
[Thu Mar 12 18:14:15 2015] [error] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/project/volumes/volumes/tables.py", line 51, in delete
[Thu Mar 12 18:14:15 2015] [error] obj = self.table.get_object_by_id(obj_id)
[Thu Mar 12 18:14:15 2015] [error] File "/usr/lib/python2.6/site-packages/horizon/tables/base.py", line 1193, in get_object_by_id
[Thu Mar 12 18:14:15 2015] [error] for datum in self.data:
[Thu Mar 12 18:14:15 2015] [error] TypeError: 'NoneType' object is not iterable
[Thu Mar 12 18:14:15 2015] [error] File "/usr/lib/python2.6/site-packages/horizon/tables/base.py", line 1193, in get_object_by_id
[Thu Mar 12 18:14:15 2015] [error] for datum in self.data:
[Thu Mar 12 18:14:15 2015] [error] TypeError: 'NoneType' object is not iterable

Tags: icehouse
Revision history for this message
Dunk (dunk) wrote :

Get similar error when deleting a volume using both the checkbox method and the individual line item action method.

TypeError at /project/volumes/
'NoneType' object is not iterable
Request Method: POST
Request URL: http://<removed for confidentiality>/project/volumes/
Django Version: 1.6.1
Exception Type: TypeError
Exception Value:
'NoneType' object is not iterable
Exception Location: /usr/lib/python2.7/dist-packages/horizon/tables/base.py in get_object_by_id, line 1291
Python Executable: /usr/bin/python
Python Version: 2.7.6
Python Path:
['/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../..',
 '/usr/share/openstack-dashboard/openstack_dashboard',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-x86_64-linux-gnu',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages/gtk-2.0',
 '/usr/lib/pymodules/python2.7',
 '/usr/share/openstack-dashboard/']
Server time: Fri, 8 Jan 2016 00:17:19 +0000

Revision history for this message
bk160f (bk160f) wrote :

We are getting the same Type Erorr at /project/volumes when we try to delete a Volume.

But interesting point to highlight is, this issue is not seen when we tried with Safari browser. This issue apperas when we use any otehr browser (Chrome, Firefox, IE,etc)

Can anybody answer how this is related to browser intelligence.

Revision history for this message
Gary W. Smith (gary-w-smith) wrote :

This works correctly in pike. Recommend closing this old bug

Changed in horizon:
status: New → Invalid
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.