Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Loading