Bug 986680 - cinder: cannot use wild card in cinder list --display-name
Summary: cinder: cannot use wild card in cinder list --display-name
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-cinder
Version: unspecified
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
: 5.0 (RHEL 7)
Assignee: Eric Harney
QA Contact: Haim
URL:
Whiteboard: storage
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-21 14:36 UTC by Dafna Ron
Modified: 2016-04-26 19:03 UTC (History)
7 users (show)

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.
Clone Of:
Environment:
Last Closed: 2013-12-18 07:52:32 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1262604 0 None None None Never

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.


Note You need to log in before you can comment on or make changes to this bug.