use of org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogable in project ovirt-engine by oVirt.
the class InitGlusterCommandHelper method getGlusterPeers.
@SuppressWarnings("unchecked")
private List<GlusterServerInfo> getGlusterPeers(VDS upServer) {
List<GlusterServerInfo> glusterServers = new ArrayList<>();
VDSReturnValue returnValue = runVdsCommand(VDSCommandType.GlusterServersList, new VdsIdVDSCommandParametersBase(upServer.getId()));
if (!returnValue.getSucceeded()) {
AuditLogable logable = GlusterEventFactory.createEvent(upServer, returnValue);
auditLogDirector.log(logable, AuditLogType.GLUSTER_SERVERS_LIST_FAILED);
} else {
glusterServers = (List<GlusterServerInfo>) returnValue.getReturnValue();
}
return glusterServers;
}
use of org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogable in project ovirt-engine by oVirt.
the class GetVmsFromExternalProviderQuery method logFailureToGetVms.
private void logFailureToGetVms() {
AuditLogable logable = new AuditLogableImpl();
logable.addCustomValue("URL", getParameters().getUrl());
auditLogDirector.log(logable, AuditLogType.IMPORTEXPORT_GET_EXTERNAL_VMS_INFO_FAILED);
}
use of org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogable in project ovirt-engine by oVirt.
the class UpdateVdsCommand method checkKdumpIntegrationStatus.
private void checkKdumpIntegrationStatus() {
VdsStatic vdsSt = getParameters().getVdsStaticData();
if (vdsSt.isPmEnabled() && vdsSt.isPmKdumpDetection()) {
VdsDynamic vdsDyn = vdsDynamicDao.get(vdsSt.getId());
if (vdsDyn != null && vdsDyn.getKdumpStatus() != KdumpStatus.ENABLED) {
AuditLogable logable = new AuditLogableImpl();
logable.setVdsId(vdsSt.getId());
logable.setVdsName(vdsSt.getName());
auditLogDirector.log(logable, AuditLogType.KDUMP_DETECTION_NOT_CONFIGURED_ON_VDS);
}
}
}
use of org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogable in project ovirt-engine by oVirt.
the class NetworkConfigurator method createEvent.
private AuditLogable createEvent() {
final AuditLogable event = new AuditLogableImpl();
event.setVdsName(host.getName());
event.setVdsId(host.getId());
return event;
}
use of org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogable in project ovirt-engine by oVirt.
the class VmInterfaceManager method createAuditLog.
private AuditLogable createAuditLog(final VmNic iface) {
AuditLogable logable = new AuditLogableImpl();
logable.addCustomValue("MACAddr", iface.getMacAddress());
logable.addCustomValue("IfaceName", iface.getName());
logable.setVmId(iface.getVmId());
return logable;
}
Aggregations