Skip to content

Commit 1e20600

Browse files
committed
CLOUDSTACK-7700: Volume Snapshot Async Job returns Success for a failed
operation.
1 parent 49c01e2 commit 1e20600

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

engine/storage/volume/src/org/apache/cloudstack/storage/volume/VolumeServiceImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1534,6 +1534,7 @@ public SnapshotInfo takeSnapshot(VolumeInfo volume) {
15341534
snapshot = snapshotMgr.takeSnapshot(volume);
15351535
} catch (Exception e) {
15361536
s_logger.debug("Take snapshot: " + volume.getId() + " failed", e);
1537+
throw new CloudRuntimeException("Failed to take snapshot", e);
15371538
}
15381539

15391540
return snapshot;

0 commit comments

Comments
 (0)