mirror of https://github.com/apache/cloudstack.git
bug 10674: For recurring snapshots when there is quota hit log it and send an email alert.
Reviewed by : Kishan.
This commit is contained in:
parent
a703315d34
commit
b2b8ce1758
|
|
@ -1409,7 +1409,7 @@ public class SnapshotManagerImpl implements SnapshotManager, SnapshotService, Ma
|
|||
try{
|
||||
_resourceLimitMgr.checkResourceLimit(owner, ResourceType.snapshot);
|
||||
} catch (ResourceAllocationException e){
|
||||
if (snapshotType == Type.RECURRING){
|
||||
if (snapshotType != Type.MANUAL){
|
||||
String msg = "Snapshot resource limit exceeded for account id : " + owner.getId() + ". Failed to create recurring snapshots";
|
||||
s_logger.warn(msg);
|
||||
_alertMgr.sendAlert(AlertManager.ALERT_TYPE_UPDATE_RESOURCE_COUNT, 0L, 0L, msg,
|
||||
|
|
|
|||
Loading…
Reference in New Issue