bug 6770: Alert will be sent when deploying User VM fails

status 6770: resolved fixed
This commit is contained in:
kishan 2011-06-14 15:02:27 +05:30
parent 0629592caf
commit fe4329389f
1 changed files with 2 additions and 0 deletions

View File

@ -1637,6 +1637,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);
}
}
}