]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fixing 3PAR connection name cache error
authorAnthony Lee <anthony.mic.lee@hp.com>
Tue, 9 Dec 2014 01:12:27 +0000 (17:12 -0800)
committerAnthony Lee <anthony.mic.lee@hp.com>
Thu, 18 Dec 2014 17:55:12 +0000 (09:55 -0800)
commit9c50182b4a2ea86a305c5d33ec767340574a522e
treea34ba7b70b1f7689b1ff4e3c04d3d1d2cacc5ded
parent1ad51386dd7c7a211819005286a948a7cb08cd76
Fixing 3PAR connection name cache error

The 3PAR driver had a connection name cache in 3PAR common.  If
Cinder was restarted or the common object was destroyed the cache
was lost.  Instead of having the cache in 3PAR common, the 3PAR
driver can query the backend to see if there is a host already
available.  Replacing the name cache with a backend query had minimal
impact on performance of the driver and eliminates the problem of the
cache being destroyed/lost.

Closes-Bug: #1398914
Change-Id: Ie5467abc38946cceb4896fe9cbbd1606c7fbfba2
cinder/tests/test_hp3par.py
cinder/volume/drivers/san/hp/hp_3par_common.py
cinder/volume/drivers/san/hp/hp_3par_fc.py
cinder/volume/drivers/san/hp/hp_3par_iscsi.py