pattern matching for glance image-list filters

Bug #917692 reported by Christian Berendt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance Client
Won't Fix
Wishlist
Sharat Sharma

Bug Description

would be nice if it's possible to use pattern matching for the field "name" while using "glance image-list". at the moment i can only specify the full name of an image to show details for that specific image. but i want to write "ubuntu-*" to see all images starting with "ubuntu-".

Jay Pipes (jaypipes)
Changed in glance:
status: New → Confirmed
importance: Undecided → Wishlist
Changed in glance:
assignee: nobody → Venkata Siva Vijayendra Bhamidipati (vijayendra-bhamidipati-6)
Revision history for this message
Brian Waldon (bcwaldon) wrote :

Retargeting at python-glanceclient as that's where client feature development now happens.

affects: glance → python-glanceclient
summary: - pattern matching for "glance details name="
+ pattern matching for glance image-list filters
description: updated
Revision history for this message
Mark Washenberger (markwash) wrote :

I worry that this feature implies normal glance queries would result in full table scans.

Revision history for this message
Wlodzimierz Borkowski (borqosky) wrote :

I think, it is related with Bug #1369008.
 I tested it, and works well with glance-client. (the same as in dashboard).
The only thing that is to implement regex (*, startswith, endswith, etc...) in python-glance client ?
If yes, I can carry on with it.

Changed in python-glanceclient:
assignee: Venkata Siva Vijayendra Bhamidipati (vijayendra-bhamidipati-6) → Wlodzimierz Borkowski (woodbor)
Revision history for this message
Wlodzimierz Borkowski (borqosky) wrote :

http://docs.openstack.org/user-guide/content/cli_manage_images.html
There is also possible to add grep according to documentation.
IMHO it's no so breaking legacy API, and it's no so hard to use.

Changed in python-glanceclient:
assignee: Wlodzimierz Borkowski (woodbor) → nobody
Changed in python-glanceclient:
assignee: nobody → Cindy Pallares (cpallares)
Changed in python-glanceclient:
assignee: Cindy Pallares (cpallares) → nobody
Changed in python-glanceclient:
assignee: nobody → Sharat Sharma (sharat-sharma)
Revision history for this message
Ian Cordasco (icordasc) wrote :

This would need to be supported by th API, which it is not. It would be wildly inefficient to fix this in the client. We would have to request *all* images and then filter them client side rather than relying on the database to do that work for us. We will not fix this in the client any time soon.

Changed in python-glanceclient:
status: Confirmed → Won't Fix
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.