CLOUDSTACK-7767: fixed events are not generated for snapshot creation

Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/c04cdae6
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/c04cdae6
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/c04cdae6

Branch: refs/heads/4.5
Commit: c04cdae60bc9a10f584c2f0b591aa5a5d9c7e3e4
Parents: f43ffb9
Author: Anshul Gangwar <anshul.gang...@citrix.com>
Authored: Tue Oct 28 11:49:30 2014 +0530
Committer: Rajesh Battala <rajesh.batt...@citrix.com>
Committed: Tue Nov 18 14:12:33 2014 +0530

----------------------------------------------------------------------
 server/src/com/cloud/storage/VolumeApiServiceImpl.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/c04cdae6/server/src/com/cloud/storage/VolumeApiServiceImpl.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/storage/VolumeApiServiceImpl.java 
b/server/src/com/cloud/storage/VolumeApiServiceImpl.java
index 1ed5e27..b9ed59a 100644
--- a/server/src/com/cloud/storage/VolumeApiServiceImpl.java
+++ b/server/src/com/cloud/storage/VolumeApiServiceImpl.java
@@ -1841,6 +1841,7 @@ public class VolumeApiServiceImpl extends ManagerBase 
implements VolumeApiServic
     }
 
     @Override
+    @ActionEvent(eventType = EventTypes.EVENT_SNAPSHOT_CREATE, 
eventDescription = "taking snapshot", async = true)
     public Snapshot takeSnapshot(Long volumeId, Long policyId, Long 
snapshotId, Account account, boolean quiescevm) throws 
ResourceAllocationException {
 
         VolumeInfo volume = volFactory.getVolume(volumeId);
@@ -1927,6 +1928,7 @@ public class VolumeApiServiceImpl extends ManagerBase 
implements VolumeApiServic
     }
 
     @Override
+    @ActionEvent(eventType = EventTypes.EVENT_SNAPSHOT_CREATE, 
eventDescription = "allocating snapshot", create = true)
     public Snapshot allocSnapshot(Long volumeId, Long policyId) throws 
ResourceAllocationException {
         Account caller = CallContext.current().getCallingAccount();
 

Reply via email to