Skip to content

Commit 0a1a9c4

Browse files
CSTACKEX-18_2: ONTAP plugin can not handle memory snapshot with storage level support.
1 parent 09968db commit 0a1a9c4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

plugins/storage/volume/ontap/src/main/java/org/apache/cloudstack/storage/vmsnapshot/OntapVMSnapshotStrategy.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,9 @@ public StrategyPriority canHandle(VMSnapshot vmSnapshot) {
113113

114114
// For new snapshots, check if Disk-only and all volumes on ONTAP
115115
if (vmSnapshotVO.getType() != VMSnapshot.Type.Disk) {
116-
logger.debug("ONTAP VM snapshot strategy cannot handle memory snapshots for VM [{}]", vmSnapshot.getVmId());
117-
return StrategyPriority.CANT_HANDLE;
116+
logger.error("ONTAP VM snapshot strategy cannot handle memory snapshots for VM [{}]", vmSnapshot.getVmId());
117+
//return StrategyPriority.CANT_HANDLE;
118+
throw new CloudRuntimeException("ONTAP VM snapshot strategy cannot handle memory snapshots for VM [" + vmSnapshot.getVmId() + "]");
118119
}
119120

120121
if (allVolumesOnOntapManagedStorage(vmSnapshot.getVmId())) {

0 commit comments

Comments
 (0)