Bug 987330 - cinder: if illegal id is given for 'cinder snapshot-list --volume-id' no error is given
cinder: if illegal id is given for 'cinder snapshot-list --volume-id' no erro...
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-cinder (Show other bugs)
x86_64 Linux
unspecified Severity low
: ---
: 5.0 (RHEL 7)
Assigned To: RHOS Maint
: Improvement
Depends On:
  Show dependency treegraph
Reported: 2013-07-23 05:18 EDT by Dafna Ron
Modified: 2016-04-26 18:17 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-08-11 05:07:36 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Dafna Ron 2013-07-23 05:18:20 EDT
Description of problem:

if I run cinder snapshot-list --volume-id with id which is not in the id length instead of getting an error we simply get empty results. 

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


How reproducible:


Steps to Reproduce:
1. create a snapshot for a volume 
2. run: cinder snapshot-list --volume-id <volumeID>
3. run: cinder snapshot-list --volume-id <name/ID with missing digits> 

Actual results:

instead of giving an error for id being illegal we have no results shown

Expected results:

if you give ID which is less than the normal length we should fail with error

Additional info:

[root@opens-vdsb ~(keystone_admin)]# cinder snapshot-list --volume-id e8850125-6179-4083-89fd-84461a85d1c1
|                  ID                  |              Volume ID               | Status | Display Name | Size |
| 7039d68f-e2c5-470b-a0f9-8592b72b155a | e8850125-6179-4083-89fd-84461a85d1c1 | error  |  snap_snap   |  10  |
[root@opens-vdsb ~(keystone_admin)]# cinder snapshot-list --volume-id e8850125-6179-4083-89fd-84461a
[root@opens-vdsb ~(keystone_admin)]# cinder snapshot-list --volume-id e8850125-6179

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