]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Allow c-vol backends to start when some backends fail to load
authorEric Harney <eharney@redhat.com>
Mon, 21 Sep 2015 18:29:19 +0000 (14:29 -0400)
committerEric Harney <eharney@redhat.com>
Tue, 22 Sep 2015 15:50:44 +0000 (11:50 -0400)
commit8e69447d7b9efc23a0695edbbb55bfbd845a99d8
treecb84d1b87e9591eb4a90a124edb8a8b59e9d34cc
parent364e8cb92b0584de84a99bb9e5a664d3d94657da
Allow c-vol backends to start when some backends fail to load

Currently, if a c-vol backend fails to load due to an error in
the module startup process (like a volume driver's __init__ or
dependency import failure), the c-vol process halts completely.

Instead, catch that backend failure, log it, and allow other
backends in enabled_backends to still start up and run.

Note that this is not applicable for failures that allow
drivers to load and remain "uninitialized" -- this is for
failures that occur prior to that point.

Closes-Bug: #1497413

Change-Id: If183b9e3d21777cddf713c2dc88dc80ae7cfe01d
cinder/cmd/volume.py