]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Enforce driver is initialized
authorWalter A. Boring IV <walter.boring@hp.com>
Tue, 17 Sep 2013 00:05:27 +0000 (17:05 -0700)
committerWalter A. Boring IV <walter.boring@hp.com>
Fri, 20 Sep 2013 03:36:04 +0000 (20:36 -0700)
commit2177cbbe0692d5dadc22a717d46ae0dd755cedaa
treeb5406c30fc5f51a2863ae0a50faf9085dcda4dd4
parent9479e27761ecf7469c109b51a486ec515165c94a
Enforce driver is initialized

This updates the volume manager and the
backup manager to enforce that the driver
has been initialized.

The managers call the driver in many places
without ensuring that the driver has been
properly initialized.   When the driver fails
inside of do_setup(), the managers shouldn't
call the driver's set_initialized() method.
The managers now dump out the exception, and
exit the init_host, leaving the driver in
an uninitialized state.

Fixes bug #1225897

Change-Id: I77b947f2a9fbe1b38f321511dba10fcd2fe1fe90
cinder/backup/manager.py
cinder/exception.py
cinder/tests/test_backup.py
cinder/tests/test_gpfs.py
cinder/tests/test_rbd.py
cinder/tests/test_volume.py
cinder/utils.py
cinder/volume/flows/create_volume/__init__.py
cinder/volume/manager.py