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): openstack-cinder-2013.1.2-3.el6ost.noarch How reproducible: 100% 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