euca-describe images returns only 25 images

Bug #837438 reported by Andrew Glen-Young
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
High
Brian Waldon

Bug Description

I am running an OpenStack installation using Glance and the filesystem store. When I run 'euca-describe-images' (with or without admin privileges) only the most recent 25 images are returned and not the full list.

Since I have 50 undeleted images, I expect that 50 images would be returned to the admin user and a subset of these to a non-privileged user.

$ euca-describe-images | wc -l
25

Images in the Glance DB:

sql> SELECT COUNT(*) FROM images;
105
sql> SELECT COUNT(*) FROM images WHERE deleted = 0;
50

The SQL query run against the Glance database (note the LIMIT 25 in the query):

2011-08-30 15:17:32 INFO [sqlalchemy.engine.base.Engine.0x...6b90] SELECT anon_1.images_created_at AS anon_1_images_created_at, anon_1.images_updated_at AS anon_1_images_updated_at, anon_1.images_deleted_at AS anon_1_images_deleted_at, anon_1.images_deleted AS anon_1_images_deleted, anon_1.images_id AS anon_1_images_id, anon_1.images_name AS anon_1_images_name, anon_1.images_disk_format AS anon_1_images_disk_format, anon_1.images_container_format AS anon_1_images_container_format, anon_1.images_size AS anon_1_images_size, anon_1.images_status AS anon_1_images_status, anon_1.images_is_public AS anon_1_images_is_public, anon_1.images_location AS anon_1_images_location, anon_1.images_checksum AS anon_1_images_checksum, anon_1.images_owner AS anon_1_images_owner, image_properties_1.created_at AS image_properties_1_created_at, image_properties_1.updated_at AS image_properties_1_updated_at, image_properties_1.deleted_at AS image_properties_1_deleted_at, image_properties_1.deleted AS image_properties_1_deleted, image_properties_1.id AS image_properties_1_id, image_properties_1.image_id AS image_properties_1_image_id, image_properties_1.name AS image_properties_1_name, image_properties_1.value AS image_properties_1_value
FROM (SELECT images.created_at AS images_created_at, images.updated_at AS images_updated_at, images.deleted_at AS images_deleted_at, images.deleted AS images_deleted, images.id AS images_id, images.name AS images_name, images.disk_format AS images_disk_format, images.container_format AS images_container_format, images.size AS images_size, images.status AS images_status, images.is_public AS images_is_public, images.location AS images_location, images.checksum AS images_checksum, images.owner AS images_owner
FROM images
WHERE images.deleted = ? AND images.status != ? ORDER BY images.created_at DESC, images.id DESC
 LIMIT 25 OFFSET 0) AS anon_1 LEFT OUTER JOIN image_properties AS image_properties_1 ON anon_1.images_id = image_properties_1.image_id ORDER BY anon_1.images_created_at DESC, anon_1.images_id DESC

Related branches

Revision history for this message
Andrew Glen-Young (aglenyoung) wrote :

I am running the following on Oneiric:

glance 2011.3~d4~20110811.980-0ubuntu1
nova 2011.3~d4~20110812.1417-0ubuntu1

Revision history for this message
Vish Ishaya (vishvananda) wrote :

Looks like we need to make ec2 request images without pagination.

Changed in nova:
importance: Undecided → High
status: New → Triaged
milestone: none → diablo-rbp
Brian Waldon (bcwaldon)
Changed in nova:
assignee: nobody → Brian Waldon (bcwaldon)
status: Triaged → In Progress
Brian Waldon (bcwaldon)
Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: diablo-rbp → 2011.3
status: Fix Committed → Fix Released
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.