Add --name filter for image-list

Bug #1489051 reported by Stuart McLaren
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance Client
Won't Fix
Wishlist
Neha Pandey

Bug Description

It's possible to do this:

$ glance image-list --owner 411423405e10431fb9c47ac5b2446557
+--------------------------------------+---------------------+
| ID | Name |
+--------------------------------------+---------------------+
| 7d1923d7-68e8-4a8e-b23e-a7c77f8117fd | |
| 5e9dc64e-7c05-431c-b81f-ae6a212353e8 | |
| 6802e222-6eac-45c6-8c9f-0d62aed26406 | |
| 7af0d66b-5b48-48a6-a6d9-c2cd3eafa83e | |
| dde89c3c-c8af-46a4-87b0-f39ed6c61c42 | |
| 262ac5aa-e580-4bec-a3b2-580924425fd5 | |
| 4cc5b305-43a7-495e-8e67-16d95629621e | |
.
.
.

It would be handy to be able to do the same with --name, eg

$ glance image-list --name debian8

Changed in python-glanceclient:
importance: Undecided → Wishlist
Changed in python-glanceclient:
assignee: nobody → Cindy Pallares (cpallares)
tags: added: 1.0.0-potential
Changed in python-glanceclient:
assignee: Cindy Pallares (cpallares) → Satwant Kaur (sept1mannu)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-glanceclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/290296

Changed in python-glanceclient:
status: New → In Progress
Revision history for this message
Ian Cordasco (icordasc) wrote :

Satwant seems to have abandoned their patch. I have removed their assignment and removed the in progress indicator for others who may want to pick this up.

Changed in python-glanceclient:
status: In Progress → Confirmed
assignee: Satwant Kaur (sept1mannu) → nobody
Neha Pandey (nehapandey)
Changed in python-glanceclient:
assignee: nobody → Neha Pandey (nehapandey)
Revision history for this message
Bhagyashri Shewale (bhagyashri-shewale) wrote :

Hi,

IMO, There is no need to add "name" as seperate optional filter parameter when listing glance images because images can be filter by using the --property-filter key=value otional parameter

Steps to get glance images having name as test1:

1. Create the multiple images with same name as test

 $ glance image-create --name test1

2. List the images

 $ glance image-list
  +--------------------------------------+--------------------------+
  | ID | Name |
  +--------------------------------------+--------------------------+
  | 7e4d2d98-1d48-4e0f-a1bb-eaa2458ffca9 | cirros-0.3.5-x86_64-disk |
  | d2cd10ee-9f76-4809-82a9-065a97e32b62 | test |
  | 62d49d9f-d7de-4f66-8a1a-a3de93785324 | test1 |
  | 327ba314-e3bc-4141-9874-f48ee1d42db7 | test1 |
  | 49e5d273-fbdd-43ee-ac44-94669bef067c | test1 |
  | 077e72a8-6725-499e-8cbe-254116da14d2 | test1 |
  | 3963429e-3f64-47f2-bf88-c903740bc664 | test1 |
  +--------------------------------------+--------------------------+

3. List the glance images having name as test using the --property-filter optional parameter

 $ glance image-list --property-filter name=test1
  +--------------------------------------+-------+
  | ID | Name |
  +--------------------------------------+-------+
  | 62d49d9f-d7de-4f66-8a1a-a3de93785324 | test1 |
  | 327ba314-e3bc-4141-9874-f48ee1d42db7 | test1 |
  | 49e5d273-fbdd-43ee-ac44-94669bef067c | test1 |
  | 077e72a8-6725-499e-8cbe-254116da14d2 | test1 |
  | 3963429e-3f64-47f2-bf88-c903740bc664 | test1 |
  +--------------------------------------+-------+

Revision history for this message
Brian Rosmaita (brian-rosmaita) wrote :

Given the workaround that Bhagyashri noted above, this isn't a bug. Anyone who feels strongly about adding this can propose it as a spec-lite for the python-glanceclient.

Changed in python-glanceclient:
status: Confirmed → Won't Fix
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-glanceclient (master)

Change abandoned by Brian Rosmaita (<email address hidden>) on branch: master
Review: https://review.openstack.org/290296
Reason: No activity in >1 year, plus associated bug is a "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.