euca-describe images returns only 25 images
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-
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-
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.
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.
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_propertie
Related branches
- Vish Ishaya (community): Approve
- Devin Carlen (community): Approve
-
Diff: 124 lines (+37/-11)2 files modifiednova/image/glance.py (+15/-4)
nova/tests/image/test_glance.py (+22/-7)
Changed in nova: | |
assignee: | nobody → Brian Waldon (bcwaldon) |
status: | Triaged → In Progress |
Changed in nova: | |
status: | In Progress → Fix Committed |
Changed in nova: | |
milestone: | diablo-rbp → 2011.3 |
status: | Fix Committed → Fix Released |
I am running the following on Oneiric:
glance 2011.3~ d4~20110811. 980-0ubuntu1 d4~20110812. 1417-0ubuntu1
nova 2011.3~