From 2094286c8ad0e540641e4c619d101cbeabe9751c Mon Sep 17 00:00:00 2001 From: Mike Tutkowski Date: Wed, 21 Jan 2015 13:05:21 -0700 Subject: [PATCH] Adding support for creating a volume from a snapshot when the snapshot is on managed storage --- .../storage/motion/StorageSystemDataMotionStrategy.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/engine/storage/datamotion/src/org/apache/cloudstack/storage/motion/StorageSystemDataMotionStrategy.java b/engine/storage/datamotion/src/org/apache/cloudstack/storage/motion/StorageSystemDataMotionStrategy.java index 525aa709046..de98f55be6f 100644 --- a/engine/storage/datamotion/src/org/apache/cloudstack/storage/motion/StorageSystemDataMotionStrategy.java +++ b/engine/storage/datamotion/src/org/apache/cloudstack/storage/motion/StorageSystemDataMotionStrategy.java @@ -152,11 +152,13 @@ public class StorageSystemDataMotionStrategy implements DataMotionStrategy { } if (canHandleSrc) { - // return handleCreateVolumeFromSnapshotOnlySourceOnStorageSystem(); + throw new UnsupportedOperationException("This operation is not supported (DataStoreCapabilities.STORAGE_SYSTEM_SNAPSHOT " + + "not supported by destination storage plug-in)."); } if (canHandleDest) { - // return handleCreateVolumeFromSnapshotOnlyDestinationOnStorageSystem(); + throw new UnsupportedOperationException("This operation is not supported (DataStoreCapabilities.STORAGE_SYSTEM_SNAPSHOT " + + "not supported by source storage plug-in)."); } } }