Comment 3 for bug 1489051

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 |
  +--------------------------------------+-------+