cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject [1/2] git commit: updated refs/heads/4.4 to 073928f
Date Thu, 05 Jun 2014 12:36:37 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/4.4 91391e677 -> 073928fef


CLOUDSTACK-6833 [Hyper-V] Volume snapshot creation returns success even though snapshots are
not supported for Hyper-V

(cherry picked from commit 945e879bf221454cd42f1e7ef0a46e9a4aa6a156)


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/1f7d2ee0
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/1f7d2ee0
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/1f7d2ee0

Branch: refs/heads/4.4
Commit: 1f7d2ee091992b7b6977c92940a1e93bf5f25643
Parents: 91391e6
Author: Rajesh Battala <rajesh.battala@citrix.com>
Authored: Thu Jun 5 12:01:43 2014 +0530
Committer: Daan Hoogland <daan@onecht.net>
Committed: Thu Jun 5 12:21:14 2014 +0200

----------------------------------------------------------------------
 server/src/com/cloud/storage/VolumeApiServiceImpl.java | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/1f7d2ee0/server/src/com/cloud/storage/VolumeApiServiceImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/storage/VolumeApiServiceImpl.java b/server/src/com/cloud/storage/VolumeApiServiceImpl.java
index 42d318c..6703e61 100644
--- a/server/src/com/cloud/storage/VolumeApiServiceImpl.java
+++ b/server/src/com/cloud/storage/VolumeApiServiceImpl.java
@@ -1662,6 +1662,9 @@ public class VolumeApiServiceImpl extends ManagerBase implements VolumeApiServic
         if (volume.getInstanceId() != null)
             vm = _vmInstanceDao.findById(volume.getInstanceId());
 
+        if (volume.getHypervisorType() == HypervisorType.Hyperv) {
+            throw new InvalidParameterValueException("Volume Snapshots are not supported
on Hypervisor Type : Hyper-V");
+        }
         if (vm != null) {
             // serialize VM operation
             AsyncJobExecutionContext jobContext = AsyncJobExecutionContext.getCurrentExecutionContext();


Mime
View raw message