mirror of https://github.com/apache/cloudstack.git
bug 6770: Alert will be sent when deploying User VM fails
status 6770: resolved fixed
This commit is contained in:
parent
ed6809c53d
commit
8d87cf3506
|
|
@ -1636,6 +1636,8 @@ public class UserVmManagerImpl implements UserVmManager, UserVmService, Manager
|
|||
}
|
||||
UsageEventVO usageEvent = new UsageEventVO(EventTypes.EVENT_VM_DESTROY, vm.getAccountId(), vm.getDataCenterIdToDeployIn(), vm.getId(), vm.getHostName());
|
||||
_usageEventDao.persist(usageEvent);
|
||||
String msg = "Failed to deploy Vm with Id: " + vmId;
|
||||
_alertMgr.sendAlert(AlertManager.ALERT_TYPE_USERVM, vm.getDataCenterIdToDeployIn(), vm.getPodIdToDeployIn(), msg, msg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue