From 6d2c408d625610ababdffb5af8399fbb3d1ab295 Mon Sep 17 00:00:00 2001 From: sp16743 Date: Fri, 23 Oct 2026 12:09:55 +0530 Subject: [PATCH] CSTACKEX-361:ONTAP NFS volume created from snapshot loses its path and cannot be attached to a VM --- .../storage/motion/StorageSystemDataMotionStrategy.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/engine/storage/datamotion/src/main/java/org/apache/cloudstack/storage/motion/StorageSystemDataMotionStrategy.java b/engine/storage/datamotion/src/main/java/org/apache/cloudstack/storage/motion/StorageSystemDataMotionStrategy.java index 76bbc9cac908..dec21c805395 100644 --- a/engine/storage/datamotion/src/main/java/org/apache/cloudstack/storage/motion/StorageSystemDataMotionStrategy.java +++ b/engine/storage/datamotion/src/main/java/org/apache/cloudstack/storage/motion/StorageSystemDataMotionStrategy.java @@ -1787,7 +1787,11 @@ else if (HypervisorType.KVM.equals(snapshotInfo.getHypervisorType())) { VolumeObjectTO newVolume = new VolumeObjectTO(); newVolume.setSize(volumeInfo.getSize()); - newVolume.setPath(volumeInfo.get_iScsiName()); + String path = volumeInfo.get_iScsiName(); + if (path == null) { + path = volumeInfo.getPath(); + } + newVolume.setPath(path); newVolume.setFormat(volumeInfo.getFormat()); copyCmdAnswer = new CopyCmdAnswer(newVolume);