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

operation.
This commit is contained in:
Min Chen 2014-10-13 14:25:52 -07:00
parent 49c01e2ae4
commit 1e20600eca
1 changed files with 1 additions and 0 deletions

View File

@ -1534,6 +1534,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;