]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Handle terminate_connection() exception in volume manager
authorling-yun <zengyunling@huawei.com>
Tue, 24 Dec 2013 03:45:16 +0000 (11:45 +0800)
committerling-yun <zengyunling@huawei.com>
Fri, 27 Dec 2013 08:24:54 +0000 (16:24 +0800)
commit1e73e64e7407294dc68af9c09323e2b396335c4a
tree5f36a6157f30af11b920c3813c56a726e98e10a5
parent8a5ce963dc9b96f485536ab851ef0e2a1d0e8313
Handle terminate_connection() exception in volume manager

Due to the fact that we sometimes need to manually terminate a volume's
connection through volume api, it's possile that these backend drivers
throw exceptions while doing that. Currently exceptions are bubbled up to
volume API not being handled. This patch logs exception in volume manager
and then raises VolumeBackendAPIException to caller.

Change-Id: If809f97998f52516af09ec21b3052b67d3a62f36
Closes-bug: #1263820
cinder/api/contrib/volume_actions.py
cinder/tests/api/contrib/test_volume_actions.py
cinder/volume/manager.py