cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kis...@apache.org
Subject [3/3] git commit: updated refs/heads/master to e427d00
Date Mon, 03 Nov 2014 12:00:22 GMT
CLOUDSTACK-7267: For LXC volumes, show unsupported operation error for template creation from
ROOT volume


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

Branch: refs/heads/master
Commit: e427d0004c7df501912e0c3f9af2f4f237514454
Parents: 99010f4
Author: Kishan Kavala <kishan@apache.org>
Authored: Thu Oct 23 20:30:38 2014 +0530
Committer: Kishan Kavala <kishan@apache.org>
Committed: Mon Nov 3 17:20:21 2014 +0530

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


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/e427d000/server/src/com/cloud/template/TemplateManagerImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/template/TemplateManagerImpl.java b/server/src/com/cloud/template/TemplateManagerImpl.java
index d854579..e495eb9 100755
--- a/server/src/com/cloud/template/TemplateManagerImpl.java
+++ b/server/src/com/cloud/template/TemplateManagerImpl.java
@@ -1560,6 +1560,9 @@ public class TemplateManagerImpl extends ManagerBase implements TemplateManager,
             }
 
             hyperType = _volumeDao.getHypervisorType(volumeId);
+            if (HypervisorType.LXC.equals(hyperType)) {
+                throw new InvalidParameterValueException("Template creation is not supported
for LXC volume: " + volumeId);
+            }
         } else { // create template from snapshot
             snapshot = _snapshotDao.findById(snapshotId);
             if (snapshot == null) {


Mime
View raw message