]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix creating volume by snapshot for GPFS driver
authorDigvijay Ukirde <digvijay.ukirde@in.ibm.com>
Tue, 22 Dec 2015 09:54:03 +0000 (15:24 +0530)
committerDigvijay Ukirde <digvijay.ukirde@in.ibm.com>
Thu, 24 Dec 2015 06:29:37 +0000 (06:29 +0000)
commit73cd77712c3607b59c5578037e36b1c8cf150c8c
tree4aa0b01dc04ee412dda882a51062df07a83b7058
parenta4e76566200a0adb311c800e620dc400b73910c0
Fix creating volume by snapshot for GPFS driver

For a operation of creating volume from volume snapshot,
GPFS driver is currently doing a full copy instead of clone when
it is creating a new volume. This happens when the source volume
is not in any consistency group.

With this patch, a GPFS file clone is created when both the volumes
(snapshot parent volume and new volume being created) are not in
any consistency group.

Change-Id: I0aa550842fb16b7abb8765e4aa8dce61cd0994c3
Closes-bug: #1528305
cinder/tests/unit/test_gpfs.py
cinder/volume/drivers/ibm/gpfs.py