diff --git a/plugins/hypervisors/vmware/src/com/cloud/storage/resource/VmwareStorageProcessor.java b/plugins/hypervisors/vmware/src/com/cloud/storage/resource/VmwareStorageProcessor.java index fe568cd8965..6f3f2ef8651 100644 --- a/plugins/hypervisors/vmware/src/com/cloud/storage/resource/VmwareStorageProcessor.java +++ b/plugins/hypervisors/vmware/src/com/cloud/storage/resource/VmwareStorageProcessor.java @@ -1705,6 +1705,12 @@ public class VmwareStorageProcessor implements StorageProcessor { throw new Exception(msg); } + // strip off the extension since restoreVolumeFromSecStorage internally will append suffix there. + if (backedUpSnapshotUuid.endsWith(".ova")){ + backedUpSnapshotUuid = backedUpSnapshotUuid.replace(".ova", ""); + } else if (backedUpSnapshotUuid.endsWith(".ovf")){ + backedUpSnapshotUuid = backedUpSnapshotUuid.replace(".ovf", ""); + } DatastoreMO primaryDsMo = new DatastoreMO(hyperHost.getContext(), morPrimaryDs); restoreVolumeFromSecStorage(hyperHost, primaryDsMo, newVolumeName, secondaryStorageUrl, backupPath, backedUpSnapshotUuid);