Bug 986680

Summary: cinder: cannot use wild card in cinder list --display-name
Product: Red Hat OpenStack Reporter: Dafna Ron <dron>
Component: openstack-cinderAssignee: Eric Harney <eharney>
Status: CLOSED WONTFIX QA Contact: Haim <hateya>
Severity: medium Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: abaron, dron, eharney, hateya, scohen, slong, yeylon
Target Milestone: ---Keywords: FutureFeature
Target Release: 5.0 (RHEL 7)   
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: Doc Type: Enhancement
Doc Text:
Wildcards are now supported in Block Storage (cinder) for resource searches. For example, users can now use wildcards in the 'cinder list --display-name' or the 'cinder snapshot-list --display-name' commands.
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-18 07:52:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dafna Ron 2013-07-21 14:36:45 UTC
Description of problem:

I tried using --display-name in cinder list and output is empty. 

example, I have several volumes: 
[root@opens-vdsb ~(keystone_admin)]# cinder list
+--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
|                  ID                  |   Status  | Display Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
| 3a888ac1-395a-4082-973e-139be9de97d9 | available |     bla1     |  10  |     bla     |  false   |             |
| 5fb0c74a-9540-4793-b386-d45ab5e4765a | available |    blaaa     |  11  |    dafna    |  false   |             |
| fb596f0d-30ff-4f74-b68e-41d14b791d9b | available |     bla      |  10  |    dafna    |  false   |             |
+--------------------------------------+-----------+--------------+------+-------------+----------+-------------+

if I use:

cinder list --display-name bla we get the specific volume called bla: 

[root@opens-vdsb ~(keystone_admin)]# cinder list --display-name bla
+--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
|                  ID                  |   Status  | Display Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
| fb596f0d-30ff-4f74-b68e-41d14b791d9b | available |     bla      |  10  |    dafna    |  false   |             |
+--------------------------------------+-----------+--------------+------+-------------+----------+-------------+ 

but if I run cinder list --display-name bla* we do not get an output. 

Version-Release number of selected component (if applicable):

openstack-cinder-2013.1.2-3.el6ost.noarch

How reproducible:

100%

Steps to Reproduce:
1. create several volumes
2. run 'cinder list --display-name' with wild card
3.

Actual results:

we do not get any output. 

Expected results:

we should be able to use a wild card since its a basic search in linux. 

Additional info:

Comment 1 Dafna Ron 2013-07-23 09:04:10 UTC
please note that we have the same for other cinder commands: 

[root@opens-vdsb ~(keystone_admin)]# cinder snapshot-list --display-name snap_sna*
[root@opens-vdsb ~(keystone_admin)]#

Comment 3 Ayal Baron 2013-12-18 07:52:32 UTC
Haim / Dafna, please file upstream.