]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Handle KeyManager exception when deleting a volume
authorEli Qiao <liyong.qiao@intel.com>
Thu, 6 Aug 2015 08:58:21 +0000 (16:58 +0800)
committerEli Qiao <liyong.qiao@intel.com>
Tue, 1 Sep 2015 01:24:23 +0000 (01:24 +0000)
commit35a90fd3b599186ef49da2908f9ac452446339db
tree09bfe37c0c0c05d04ef84acf6b751c2c490906bc
parentea67b21c72283be9a23de3dd9d0143e608cb9850
Handle KeyManager exception when deleting a volume

This patch adds exception handler when deleting key of an encryption volume.
Raise 400 invalid volume instead of 500 to give the user a better understanding
why deleting failed.

Closes-bug: #1482120
Change-Id: I591f65823d1f212e92434323905cc9c4fbe6fd96
cinder/tests/unit/test_volume.py
cinder/volume/api.py