CLOUDSTACK-7700: Volume Snapshot Async Job returns Success for a failed

operation.

(cherry picked from commit 1e20600eca)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Min Chen 2014-10-13 14:25:52 -07:00 committed by Rohit Yadav
parent 227e76132d
commit e9311bf528
1 changed files with 1 additions and 0 deletions

View File

@ -1503,6 +1503,7 @@ public class VolumeServiceImpl implements VolumeService {
snapshot = snapshotMgr.takeSnapshot(volume);
} catch (Exception e) {
s_logger.debug("Take snapshot: " + volume.getId() + " failed", e);
throw new CloudRuntimeException("Failed to take snapshot", e);
}
return snapshot;