]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Dell SC: Fix Consistency Group issues
authorTom Swanson <tom_swanson@dell.com>
Tue, 14 Jul 2015 17:21:19 +0000 (12:21 -0500)
committerTom Swanson <tom_swanson@dell.com>
Tue, 21 Jul 2015 17:53:02 +0000 (12:53 -0500)
commitf3aee27a2298ec08bc2ea817207bef6afaa066eb
tree9183318eec99a8aa6e123a81a8054fe46cb4be70
parent409bc281838a1c1399940a92a72d1192c6cd480d
Dell SC: Fix Consistency Group issues

The Dell Storage Center driver was not honoring the consisgroup_id
in the volume object in volume creation. Updated create_volume,
create_cloned_volume and create_volume_from_snapshot to honor this
value.

The driver was also not checking that volumes were initialized prior
to snapshotting a consistency group. The Dell backend does not
actually create the volumes until there is data or the volumes are
mapped to a server.

On create_volume_from_snapshot the driver was not checking for
cgsnapshot_id before snapshot_id.

Changed from calling the db to update snapshots to retrieving
the SnapshotList() object.

In addition some tests were not checking results. Fixed that.

Change-Id: I896f7438c0b98003aa345ca1c3841aba8835cc2a
Closes-Bug: #1474062
Closes-Bug: #1474105
Closes-Bug: #1475016
cinder/tests/unit/test_dellsc.py
cinder/tests/unit/test_dellscapi.py
cinder/volume/drivers/dell/dell_storagecenter_api.py
cinder/volume/drivers/dell/dell_storagecenter_common.py