]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
3PAR volumes created from snaps failed to attach
authorKurt Martin <kurt.f.martin@hp.com>
Tue, 6 Aug 2013 20:25:36 +0000 (13:25 -0700)
committerKurt Martin <kurt.f.martin@hp.com>
Wed, 7 Aug 2013 14:53:40 +0000 (07:53 -0700)
commit4f622b2a88e1bcb5808540226608095db079ba9e
treed3f1217856f756a21da7e151a5b54d4077fc9d74
parentf2c91c9a3c7efd9799400c2baa91d544803d5233
3PAR volumes created from snaps failed to attach

An error would occur if you attempted to attach a volume that
was created from a snapshot. The 3PAR backends does not have a
'userCPG' entry in the volume data on the backend, it instead
has a 'snapCPG' field. This patch will now look for the 'snapCPG'
entry and use that CPG when attaching the volume created from a
snapshot.

Change-Id: Ic7dab730a68339edb4273e4fbb6f8e45e37808b3
Fixes: bug 1207913
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