From 9b58932d6ff724d0e430f9a0f017ef6cf87a6217 Mon Sep 17 00:00:00 2001 From: "toni.zamparetti" Date: Tue, 30 Dec 2025 09:02:13 -0300 Subject: [PATCH] Changed error message when snapshot is not on secondary when trying to perform download --- .../java/com/cloud/storage/snapshot/SnapshotManagerImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/src/main/java/com/cloud/storage/snapshot/SnapshotManagerImpl.java b/server/src/main/java/com/cloud/storage/snapshot/SnapshotManagerImpl.java index 56398dd960cc..f3f9704627ea 100755 --- a/server/src/main/java/com/cloud/storage/snapshot/SnapshotManagerImpl.java +++ b/server/src/main/java/com/cloud/storage/snapshot/SnapshotManagerImpl.java @@ -578,8 +578,9 @@ public String extractSnapshot(ExtractSnapshotCmd cmd) { } if (ObjectUtils.anyNull(chosenStore, snapshotDataStoreReference)) { - logger.error("Snapshot [{}] not found in any secondary storage.", snapshot); - throw new InvalidParameterValueException("Snapshot not found."); + String errorMessage = String.format("Snapshot [%s] not found in any secondary storage. The snapshot may be on primary storage, where it cannot be downloaded.", snapshot.getUuid()); + logger.error(errorMessage); + throw new InvalidParameterValueException(errorMessage); } snapshotSrv.syncVolumeSnapshotsToRegionStore(snapshot.getVolumeId(), chosenStore);