use of org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogable in project ovirt-engine by oVirt.
the class ClusterOperationCommandBase method alertIfFencingDisabled.
protected void alertIfFencingDisabled() {
if (!getCluster().getFencingPolicy().isFencingEnabled()) {
AuditLogable alb = new AuditLogableImpl();
alb.setClusterId(getCluster().getId());
alb.setClusterName(getCluster().getName());
alb.setRepeatable(true);
auditLogDirector.log(alb, AuditLogType.FENCE_DISABLED_IN_CLUSTER_POLICY);
}
}
use of org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogable in project ovirt-engine by oVirt.
the class GetVmsFromExportDomainQuery method auditLogOvfLoadError.
private void auditLogOvfLoadError(String machineName, String errorMessage) {
AuditLogable logable = new AuditLogableImpl();
logable.addCustomValue("ImportedVmName", machineName).addCustomValue("ErrorMessage", errorMessage);
auditLogDirector.log(logable, AuditLogType.IMPORTEXPORT_FAILED_TO_IMPORT_VM);
}
use of org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogable in project ovirt-engine by oVirt.
the class VdsCommand method logSettingVmToDown.
protected void logSettingVmToDown(VM vm) {
AuditLogable logable = new AuditLogableImpl();
logable.setVdsName(getVds().getName());
logable.setVdsId(getVds().getId());
logable.setVmName(vm.getName());
logable.setVmId(vm.getId());
auditLogDirector.log(logable, AuditLogType.VM_WAS_SET_DOWN_DUE_TO_HOST_REBOOT_OR_MANUAL_FENCE);
}
use of org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogable in project ovirt-engine by oVirt.
the class VdsEventListener method runColdRebootVms.
@Override
public void runColdRebootVms(List<Guid> vmIds) {
for (Guid vmId : vmIds) {
AuditLogable event = createVmEvent(vmId, AuditLogType.COLD_REBOOT_VM_DOWN);
log.info("VM is down as a part of cold reboot process. Attempting to restart. VM Name '{}', VM Id '{}", event.getVmName(), vmId);
}
coldRebootAutoStartVmsRunner.addVmsToRun(vmIds);
}
use of org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogable in project ovirt-engine by oVirt.
the class VdsEventListener method runFailedAutoStartVMs.
@Override
public void runFailedAutoStartVMs(List<Guid> vmIds) {
for (Guid vmId : vmIds) {
// Alert that the virtual machine failed:
AuditLogable event = createVmEvent(vmId, AuditLogType.HA_VM_FAILED);
log.info("Highly Available VM went down. Attempting to restart. VM Name '{}', VM Id '{}'", event.getVmName(), vmId);
}
haAutoStartVmsRunner.addVmsToRun(vmIds);
}
Aggregations