name filter doesn't work for volume list

Bug #1678181 reported by Cheng Li
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-openstackclient
New
Undecided
Cheng Li

Bug Description

OS_VOLUME_API_VERSION=2

[root@controller1]# openstack volume list
+--------------------------------------+--------------+-----------+------+-------------+
| ID | Display Name | Status | Size | Attached to |
+--------------------------------------+--------------+-----------+------+-------------+
| 5a99043e-8820-419d-9080-64e10c811984 | volu1 | available | 1 | |
| 9ce8114a-3e78-4b47-ba3b-6476aa6fda62 | v2 | available | 1 | |
+--------------------------------------+--------------+-----------+------+-------------+
[root@controller1]# openstack volume list --name v2
+--------------------------------------+--------------+-----------+------+-------------+
| ID | Display Name | Status | Size | Attached to |
+--------------------------------------+--------------+-----------+------+-------------+
| 5a99043e-8820-419d-9080-64e10c811984 | volu1 | available | 1 | |
| 9ce8114a-3e78-4b47-ba3b-6476aa6fda62 | v2 | available | 1 | |
+--------------------------------------+--------------+-----------+------+-------------+

Expected result is that only the second volume "v2" is listed.

Tags: volume
Cheng Li (shcli)
Changed in python-openstackclient:
assignee: nobody → Cheng Li (shcli)
Revision history for this message
Cheng Li (shcli) wrote :
Revision history for this message
Rui Chen (kiwik-chenrui) wrote :

Sorry, I can't reproduce the bug in my latest devstack env, I used the current master openstackclient, what's your osc and cinderclient version?

I do the following operation in my devstack:

(openstack) volume list
+--------------------------------------+--------------+-----------+------+-------------+
| ID | Display Name | Status | Size | Attached to |
+--------------------------------------+--------------+-----------+------+-------------+
| af1a0801-fa4c-4f66-8fc0-902f1ebb5feb | v2 | available | 1 | |
| 92fc4f6a-5ae9-4f06-ab5c-5a4b1fdab4e2 | volu1 | available | 1 | |
+--------------------------------------+--------------+-----------+------+-------------+
(openstack) volume list --name v2
+--------------------------------------+--------------+-----------+------+-------------+
| ID | Display Name | Status | Size | Attached to |
+--------------------------------------+--------------+-----------+------+-------------+
| af1a0801-fa4c-4f66-8fc0-902f1ebb5feb | v2 | available | 1 | |
+--------------------------------------+--------------+-----------+------+-------------+
(openstack) module list
+-----------------+--------+
| Field | Value |
+-----------------+--------+
| aodhclient | 0.9.0 |
| cinderclient | 2.0.1 |
| congressclient | 1.6.0 |
| glanceclient | 2.6.0 |
| gnocchiclient | 3.1.1 |
| heatclient | 1.8.0 |
| ironicclient | 1.11.1 |
| keystoneclient | 3.10.0 |
| magnumclient | 2.5.0 |
| mistralclient | 3.0.0 |
| muranoclient | 0.12.0 |
| novaclient | 7.1.0 |
| openstack | 0.9.14 |
| openstackclient | 3.9.1 |
| senlinclient | 1.2.0 |
| swiftclient | 3.3.0 |
| troveclient | 2.8.0 |
| vitrageclient | 1.1.2 |
| zaqarclient | 1.4.0 |
+-----------------+--------+
(openstack)

Revision history for this message
Cheng Li (shcli) wrote :

I didn't noticed the bug created by you. You have fixed this bug, right?

Revision history for this message
Rui Chen (kiwik-chenrui) wrote :

Weird, I didn't fix anything about the bug.

Revision history for this message
Cheng Li (shcli) wrote :

I think this patch can fix the bug. https://review.openstack.org/#/c/423081/

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.