sort and filter options on openstack image list

Bug #1410251 reported by Tim Bell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient
Fix Released
Medium
Zhiyuan Cai

Bug Description

The glance image-list command provides

- sorting by keys and selecting order
- filtering on properties

This is useful for performing operations on the metadata such as distribution and getting the latest image which matches.

Could this functionality be added to the "openstack image list" command ?

Revision history for this message
Steve Martinelli (stevemar) wrote :
Revision history for this message
Dean Troyer (dtroyer) wrote :

This feels like an extension of 1401902 to me. We could split them along these lines:

https://review.openstack.org/145544 contains the likely-to-be-approved agreement on how the project CLIs will do the sorting options, we plan to be very close to this, if not exactly the same. A similar bit of work should be done for filtering, for OSC if not the other clients.

This feels like one or two blueprints are in order to scope the amount of work of adding --sort and --filter options to all of the list commands. In the mean time, doing image list as a POC would be OK with me.

Changed in python-openstackclient:
status: New → Confirmed
importance: Undecided → Medium
milestone: none → m8
Revision history for this message
Tim Bell (tim-bell) wrote :

Sorry, I'd forgotten that I had already raised the https://bugs.launchpad.net/python-openstackclient/+bug/1401902 one.

Feel free to close this one as a duplicate if it makes sense to do sorting and filtering in the same patch.

Revision history for this message
Lin Hua Cheng (lin-hua-cheng) wrote :

Sorting image is already WIP: https://review.openstack.org/#/c/148855/

Changed in python-openstackclient:
status: Confirmed → In Progress
Revision history for this message
Lin Hua Cheng (lin-hua-cheng) wrote :

Can't seem to assign the bug to Zhiyuan, the name is not showing in the Change Assignee popup.

Revision history for this message
Steve Martinelli (stevemar) wrote :

thanks for the heads up lin

Changed in python-openstackclient:
assignee: nobody → Zhiyuan Cai (luckyvega-g)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-openstackclient (master)

Reviewed: https://review.openstack.org/148855
Committed: https://git.openstack.org/cgit/openstack/python-openstackclient/commit/?id=42cff388349186b70559650237d2667da1cb903f
Submitter: Jenkins
Branch: master

commit 42cff388349186b70559650237d2667da1cb903f
Author: zhiyuan_cai <email address hidden>
Date: Wed Jan 21 17:19:46 2015 +0800

    Add sort support to image list

    Add sort support to image list by sorting items in the client side.
    The parameter syntax follows this spec[1].

    [1] https://review.openstack.org/#/c/145544/

    Change-Id: I42b487d18f00f937db1938daa46487cea2a896ab
    Closes-Bug: #1410251

Changed in python-openstackclient:
status: In Progress → Fix Committed
Dean Troyer (dtroyer)
Changed in python-openstackclient:
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.