Images table broken due to recent glanceclient change
Bug #1027210 reported by
Mark McLoughlin
This bug affects 7 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Undecided
|
Tihomir Trifonov |
Bug Description
Since this glanceclient change:
https:/
the images table is broken. I don't have the error to hand but the issue is here:
def image_list_
...
images = glanceclient(
if(len(images) > limit):
....
The return from images.list() is no longer a list, it is a generator, so you get:
TypeError: object of type 'generator' has no len()
Changed in horizon: | |
status: | New → Confirmed |
Changed in horizon: | |
assignee: | nobody → Tihomir Trifonov (ttrifonov) |
Changed in horizon: | |
milestone: | none → folsom-3 |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | folsom-3 → 2012.2 |
To post a comment you must log in.
I've just installed the latest version of devstack, and I'm also seeing this error.
TypeError at /syspanel/ images/ images/ 192.168. 0.24/syspanel/ images/ images/ horizon/ openstack_ dashboard/ wsgi/.. /../horizon/ api/glance. py in image_list_ detailed, line 63 stack/horizon/ openstack_ dashboard/ wsgi/.. /..', stack/python- keystoneclient' , local/lib/ python2. 7/dist- packages' , stack/python- novaclient' , stack/python- openstackclient ', stack/keystone' , stack/glance' , stack/python- glanceclient' , stack/horizon' , lib/python2. 7', lib/python2. 7/plat- linux2' , lib/python2. 7/lib-tk' , lib/python2. 7/lib-old' , lib/python2. 7/lib-dynload' , lib/python2. 7/dist- packages' , lib/python2. 7/dist- packages/ PIL', lib/pymodules/ python2. 7', stack/horizon/ openstack_ dashboard' ]
object of type 'generator' has no len()
Request Method: GET
Request URL: http://
Django Version: 1.4
Exception Type: TypeError
Exception Value:
object of type 'generator' has no len()
Exception Location: /opt/stack/
Python Executable: /usr/bin/python
Python Version: 2.7.3
Python Path:
['/opt/
'/opt/
'/usr/
'/opt/
'/opt/
'/opt/
'/opt/
'/opt/
'/opt/stack/nova',
'/opt/
'/usr/
'/usr/
'/usr/
'/usr/
'/usr/
'/usr/
'/usr/
'/usr/
'/opt/
Server time: Fri, 20 Jul 2012 15:56:35 -0500