Skip to content

Commit f9d8062

Browse files
committed
remove snap vol restriction for sunning vms
1 parent 96edadc commit f9d8062

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

plugins/hypervisors/kvm/src/main/java/com/cloud/hypervisor/kvm/storage/KVMStorageProcessor.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,7 +1353,7 @@ private void cleanupClvmSnapshotArtifacts(String vgName, String originVolumeUuid
13531353

13541354
logger.info("Successfully cleaned up CLVM snapshot artifacts");
13551355

1356-
} catch (Exception ex) {kvmstoragep
1356+
} catch (Exception ex) {
13571357
logger.error("Exception during CLVM snapshot artifact cleanup: {}", ex.getMessage(), ex);
13581358
}
13591359
}
@@ -2176,10 +2176,6 @@ public Answer createSnapshot(final CreateObjectCommand cmd) {
21762176
if (volume.requiresEncryption()) {
21772177
throw new CloudRuntimeException("VM is running, encrypted volume snapshots aren't supported");
21782178
}
2179-
2180-
if (StoragePoolType.CLVM == primaryStore.getPoolType()) {
2181-
throw new CloudRuntimeException("VM is running, live snapshots aren't supported with CLVM primary storage");
2182-
}
21832179
}
21842180

21852181
KVMStoragePool primaryPool = storagePoolMgr.getStoragePool(primaryStore.getPoolType(), primaryStore.getUuid());

0 commit comments

Comments
 (0)