Skip to content

Commit 448bb79

Browse files
committed
PR #27 CLOUDSTACK-7767
Fixed events are not generated for snapshot creation #27 This closes #27
2 parents c78f14c + d8b46b8 commit 448bb79

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/src/com/cloud/storage/VolumeApiServiceImpl.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1828,6 +1828,7 @@ protected Volume liveMigrateVolume(Volume volume, StoragePool destPool) {
18281828
}
18291829

18301830
@Override
1831+
@ActionEvent(eventType = EventTypes.EVENT_SNAPSHOT_CREATE, eventDescription = "taking snapshot", async = true)
18311832
public Snapshot takeSnapshot(Long volumeId, Long policyId, Long snapshotId, Account account, boolean quiescevm) throws ResourceAllocationException {
18321833

18331834
VolumeInfo volume = volFactory.getVolume(volumeId);
@@ -1914,6 +1915,7 @@ private Snapshot orchestrateTakeVolumeSnapshot(Long volumeId, Long policyId, Lon
19141915
}
19151916

19161917
@Override
1918+
@ActionEvent(eventType = EventTypes.EVENT_SNAPSHOT_CREATE, eventDescription = "allocating snapshot", create = true)
19171919
public Snapshot allocSnapshot(Long volumeId, Long policyId) throws ResourceAllocationException {
19181920
Account caller = CallContext.current().getCallingAccount();
19191921

0 commit comments

Comments
 (0)