]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Handle initialize_connection() exception in volume manager
authorZhiteng Huang <zhithuang@ebaysf.com>
Mon, 2 Dec 2013 09:05:08 +0000 (17:05 +0800)
committerZhiteng Huang <zhithuang@ebaysf.com>
Mon, 23 Dec 2013 17:04:26 +0000 (01:04 +0800)
commit17e556acf5c33583dcb6ed34bfd5a5fd9c148c9e
tree47b8f11292ec056e11480e031d81b5a7e96c7645
parente40dafd54411f0e4648fc051ef4d9c806f337f9d
Handle initialize_connection() exception in volume manager

Due to the fact that several drivers require backend communication to fetch
connection information for a volume, it's possile that these driver throw
exceptions while doing that.  Currently exceptions can bubble up to volume
API not being handled.  This patch logs exception in volume manager and
then raises VolumeBackendAPIException to caller.

Change-Id: Ib3cc152e04ba029dd835a64b0cfb0a77b8a6828e
Closes-bug: 1256804
cinder/api/contrib/volume_actions.py
cinder/tests/api/contrib/test_volume_actions.py
cinder/volume/manager.py