From 597f3cf1de7055a3fce7aeded52594018366065f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Beims=20Br=C3=A4scher?= Date: Thu, 4 Jun 2020 05:53:49 -0300 Subject: [PATCH] Enhance KVM running VM snapshot exception log (#4126) --- .../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 2392dfa9ca0..35ec665b97d 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."); } } }