]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Make PureISCSIDriver iSCSI port discovery more flexible
authorPatrick East <patrick.east@purestorage.com>
Tue, 3 Feb 2015 20:09:58 +0000 (12:09 -0800)
committerPatrick East <patrick.east@purestorage.com>
Wed, 4 Feb 2015 18:28:45 +0000 (10:28 -0800)
commit7b109bb6bf831dab08fe7a2db2800f2ae34b2bfd
tree3e02b7172ae0a02bae11d94f9c772a7d99e6a7e5
parentaa1d3754b1714b24b4b04a5ef9bd6cf587230e9c
Make PureISCSIDriver iSCSI port discovery more flexible

While searching for reachable iSCSI ports on the target flash array it
might fail the discovery command. If this happens on driver setup it
will throw an exception from attempting to use fields on an
uninitialized class variable. This fixes the log message and adds a
retry to the method to make this more flexible with network timeouts.

Closes-Bug: 1417730
Change-Id: I99ffb8de4dd5a421442df1bf745808505775480a
cinder/tests/test_pure.py
cinder/volume/drivers/pure.py