use of org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase in project ovirt-engine by oVirt.
the class BalloonMonitoring method guestAgentIsDownAndBalloonInfalted.
// add the vm to the list of vms with uncontrolled inflated balloon or increment its counter
// if it is already in the list
private void guestAgentIsDownAndBalloonInfalted(Guid vmId) {
Integer currentVal = vmsWithUncontrolledBalloon.get(vmId);
if (currentVal == null) {
vmsWithUncontrolledBalloon.put(vmId, 1);
} else {
vmsWithUncontrolledBalloon.put(vmId, currentVal + 1);
if (currentVal >= Config.<Integer>getValue(ConfigValues.IterationsWithBalloonProblem)) {
AuditLogableBase auditLogable = Injector.injectMembers(new AuditLogableBase());
auditLogable.setVmId(vmId);
auditLog(auditLogable, AuditLogType.VM_BALLOON_DRIVER_UNCONTROLLED);
vmsWithUncontrolledBalloon.put(vmId, 0);
}
}
}
use of org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase in project ovirt-engine by oVirt.
the class VmAnalyzer method auditVmPausedError.
private void auditVmPausedError(VmDynamic vdsmVmDynamic) {
AuditLogType logType = vmPauseStatusToAuditLogType(vdsmVmDynamic.getPauseStatus());
AuditLogableBase logable = Injector.injectMembers(new AuditLogableBase(vdsManager.getVdsId(), dbVm.getId()));
auditLog(logable, logType);
}
use of org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase in project ovirt-engine by oVirt.
the class VmAnalyzer method auditVmNotResponding.
private void auditVmNotResponding() {
AuditLogableBase logable = Injector.injectMembers(new AuditLogableBase(vdsManager.getVdsId(), dbVm.getId()));
auditLog(logable, AuditLogType.VM_NOT_RESPONDING);
}
use of org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase in project ovirt-engine by oVirt.
the class VmAnalyzer method auditVmMigrationAbort.
private void auditVmMigrationAbort(String exitMessage) {
AuditLogableBase logable = Injector.injectMembers(new AuditLogableBase(vdsManager.getVdsId(), dbVm.getId()));
logable.addCustomValue("MigrationError", exitMessage);
auditLog(logable, AuditLogType.VM_MIGRATION_ABORT);
}
use of org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase in project ovirt-engine by oVirt.
the class VmAnalyzer method auditVmOnDownError.
private void auditVmOnDownError() {
AuditLogableBase logable = Injector.injectMembers(new AuditLogableBase(vdsManager.getVdsId(), getVmId()));
logable.addCustomValue("ExitMessage", vdsmVm.getVmDynamic().getExitMessage() != null ? "Exit message: " + vdsmVm.getVmDynamic().getExitMessage() : " ");
auditLog(logable, AuditLogType.VM_DOWN_ERROR);
}
Aggregations