]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix client connection leaks in HP3PAR drivers
authorJim Branen <james.branen@hp.com>
Thu, 12 Sep 2013 16:24:56 +0000 (09:24 -0700)
committerJim Branen <james.branen@hp.com>
Thu, 12 Sep 2013 18:32:10 +0000 (11:32 -0700)
commit29c759f86530f10023cc3185435b5ceb75721c2d
tree5b5d8399459054837cd476197da4693b974e41e2
parent6a84a0b68d3b8b7de19e3df691b4816089a11a36
Fix client connection leaks in HP3PAR drivers

In the presence of exceptions, hp3parclient connections
did not get closed. This fix adds try/finally blocks
around all client login/logout calls.

Change-Id: I105b06cea5e61f3e9cf0d6e19c7ce430fedad715
Closes-Bug: 1220948
cinder/tests/test_hp3par.py
cinder/volume/drivers/san/hp/hp_3par_fc.py
cinder/volume/drivers/san/hp/hp_3par_iscsi.py