]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Implement manage/unmanage snapshot in Pure drivers
authorPatrick East <patrick.east@purestorage.com>
Wed, 12 Aug 2015 22:37:50 +0000 (15:37 -0700)
committerPatrick East <patrick.east@purestorage.com>
Wed, 26 Aug 2015 19:31:44 +0000 (12:31 -0700)
commit9f3267165ec93f2d40cbd4dfca6d75f4309ddfb4
tree369554679d6a107c2ca0c22111eb1bb4dfdcbcab
parentb5fdd31619b551995a5c7ec3a7305645fbc774a2
Implement manage/unmanage snapshot in Pure drivers

This adds implementations for manage_existing_snapshot,
manage_existing_snapshot_get_size, and unmanage_snapshot for
PureFCDriver and PureISCSIDriver.

Similar to the implementation of the manage/unmanage volume these will
need a volume_ref containing a ‘name’ key and value that matches an
object in Purity. In this case it will need to be the full name of a
snapshot object.

Due to this requiring a rename of the snapshot it will only be available
if using Purity REST API v1.4 or greater. If using a lower version an
exception will be raised.

Change-Id: Icb788e6cc0ee0e13393a12bc6aaccc57e1d491fd
Implements: blueprint pure-manage-snapshot
cinder/tests/unit/test_pure.py
cinder/volume/drivers/pure.py