]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix 3PAR driver handling of existing VLUNs
authorAnthony Lee <anthony.mic.lee@hp.com>
Thu, 16 Jul 2015 02:25:58 +0000 (19:25 -0700)
committerAnthony Lee <anthony.mic.lee@hp.com>
Fri, 17 Jul 2015 00:33:19 +0000 (17:33 -0700)
commita07502f697fc7e45871d0099889841d03bfdf773
tree03fd7513a43252c179dff9288dd51c26a7eb3f12
parent50aad81fd5928b0b4dd2039733536b66f09362f8
Fix 3PAR driver handling of existing VLUNs

Changes the 3PAR FC and iSCSI drivers to check for existing
VLUNs by taking into consideration both the volume and the host
when querying the backend.

Also pulled out some common code from the FC and iSCSI driver
to reduce duplicate code relating to the finding of existing
VLUNs.

Closes-Bug: #1475064
Change-Id: Id8fbdb5ae79274fb3d074f674df39f56db06f34d
cinder/tests/unit/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