]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Catch new iscsi exception
authorJohn Griffith <john.griffith@solidfire.com>
Fri, 24 Jan 2014 21:51:21 +0000 (14:51 -0700)
committerjohn-griffith <john.griffith@solidfire.com>
Sat, 25 Jan 2014 01:21:01 +0000 (18:21 -0700)
commit18f8f5be94aae3b1747b143479ea1b188872f000
treefa7fd40ea85189ed4ef8f454847bfd5a8f22849f
parent3e0d5c77fec7d83f24319bbb84b5e3884635f2af
Catch new iscsi exception

A while back we fixed up a target create/update error
that was identified in the gating tests:
    https://review.openstack.org/#/c/47513/

Since then a new patch was introduced to to the update and separate
it so that it could easily be used in other places.
    https://review.openstack.org/#/c/58599/

The problem is this added a new exception "TargetUpdate" and
didn't add this to the except block that we have.

This patch changes the catch block to handle the new exception and
do the retry, thereby putting the original fix back in place.

Change-Id: I1ed1bc6f4249f99a36b1168f9fec0b6b74482acf
Closes-Bug: 1223469
cinder/brick/iscsi/iscsi.py
cinder/volume/drivers/lvm.py