Skip to content

Commit 1cc58b1

Browse files
minchen07yadvr
authored andcommitted
CLOUDSTACK-7700: Volume Snapshot Async Job returns Success for a failed
operation. (cherry picked from commit 1e20600) Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent ca8ecc0 commit 1cc58b1

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
@@ -1381,6 +1381,7 @@ public SnapshotInfo takeSnapshot(VolumeInfo volume) {
13811381
snapshot = snapshotMgr.takeSnapshot(volume);
13821382
} catch (Exception e) {
13831383
s_logger.debug("Take snapshot: " + volume.getId() + " failed", e);
1384+
throw new CloudRuntimeException("Failed to take snapshot", e);
13841385
}
13851386

13861387
return snapshot;

0 commit comments

Comments
 (0)