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 a6d575b127
commit 0db0e5e3cc

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;