slavkap commented on code in PR #9270: URL: https://github.com/apache/cloudstack/pull/9270#discussion_r1734554545
########## server/src/main/java/org/apache/cloudstack/snapshot/SnapshotHelper.java: ########## @@ -264,4 +264,12 @@ protected Set<Long> getSnapshotIdsOnlyInPrimaryStorage(long volumeId) { return snapshotIdsOnlyInPrimaryStorage; } + + public SnapshotInfo convertSnapshotIfNeeded(SnapshotInfo snapshotInfo) { + if (snapshotInfo.getParent() == null || !HypervisorType.KVM.equals(snapshotInfo.getHypervisorType())) { + return snapshotInfo; + } + + return snapshotService.convertSnapshot(snapshotInfo); Review Comment: only with child snapshots - take a snapshot with a copy to another zone - create a template from a snapshot I didn't test copy snapshot to another zone and create a volume from a snapshot but I think it will be the same -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org