You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by da...@apache.org on 2020/06/04 08:54:12 UTC

[cloudstack] branch master updated: Enhance KVM running VM snapshot exception log (#4126)

This is an automated email from the ASF dual-hosted git repository.

dahn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/master by this push:
     new 597f3cf  Enhance KVM running VM snapshot exception log (#4126)
597f3cf is described below

commit 597f3cf1de7055a3fce7aeded52594018366065f
Author: Gabriel Beims Bräscher <ga...@apache.org>
AuthorDate: Thu Jun 4 05:53:49 2020 -0300

    Enhance KVM running VM snapshot exception log (#4126)
---
 .../src/main/java/com/cloud/storage/snapshot/SnapshotManagerImpl.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/server/src/main/java/com/cloud/storage/snapshot/SnapshotManagerImpl.java b/server/src/main/java/com/cloud/storage/snapshot/SnapshotManagerImpl.java
index 2392dfa..35ec665 100755
--- a/server/src/main/java/com/cloud/storage/snapshot/SnapshotManagerImpl.java
+++ b/server/src/main/java/com/cloud/storage/snapshot/SnapshotManagerImpl.java
@@ -1106,7 +1106,8 @@ public class SnapshotManagerImpl extends MutualExclusiveIdsManagerBase implement
             if (hosts != null && !hosts.isEmpty()) {
                 HostVO host = hosts.get(0);
                 if (!hostSupportSnapsthotForVolume(host, volume)) {
-                    throw new CloudRuntimeException("KVM Snapshot is not supported: " + host.getId());
+                    throw new CloudRuntimeException(
+                            "KVM Snapshot is not supported for Running VMs. It is disabled by default due to a possible volume corruption in certain cases. To enable it set global settings kvm.snapshot.enabled to True. See the documentation for more details.");
                 }
             }
         }