]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Ensure rbd connect exception is properly caught
authorEdward Hope-Morley <edward.hope-morley@canonical.com>
Sun, 29 Jun 2014 18:08:46 +0000 (19:08 +0100)
committerEdward Hope-Morley <edward.hope-morley@canonical.com>
Mon, 30 Jun 2014 15:34:02 +0000 (16:34 +0100)
commit02e4afbd8108ca26af09ccaebb8b1c8b72ea3f3f
tree3647e2d15fe0d8635290464ccd73550f76c75dc2
parentbe825174404c7867757c24ed5c83f8980b251278
Ensure rbd connect exception is properly caught

If the rbd driver fails to connect to Ceph the exception
was not being properly caught resulting in the volume
remaining in the 'creating' state until the corresponding
task eventually times out (on top of the time it took
for the connect to fail).

Also added config option for rados connect timeout.

DocImpact: new config option 'rados_connect_timout'
Closes-Bug: 1211839
Change-Id: I5e6eaaaf6bed3e139ff476ecf9510ebe214a83f9
cinder/tests/test_rbd.py
cinder/volume/drivers/rbd.py
etc/cinder/cinder.conf.sample