]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Create volume fail when image id is ""
authorling-yun <zengyunling@huawei.com>
Fri, 4 Apr 2014 13:58:14 +0000 (21:58 +0800)
committerling-yun <zengyunling@huawei.com>
Wed, 16 Apr 2014 08:13:21 +0000 (16:13 +0800)
commiteacab523be3d8f2f97809c785dba98e5e2e75c7b
tree16d6b21fa5d6f40ed38d6c6336c950ff2ae5e7ef
parented94a47807290f091c4b9fcc6a017790711beb98
Create volume fail when image id is ""

When call create volume api with image id "", it will create an empty
volume.
But when create volume with snapshot id "" or srv volume "", it will
return an 404 error.
So it should create volume fail when call create volume api with image id
"".

Change-Id: If2c7b061753bbbd172a09d35b343e73e90a1b7b4
Closes-Bug: #1302609
cinder/api/v1/volumes.py
cinder/api/v2/volumes.py
cinder/tests/api/v1/test_volumes.py
cinder/tests/api/v2/test_volumes.py
cinder/volume/flows/api/create_volume.py