use of org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogable in project ovirt-engine by oVirt.
the class MetadataDiskDescriptionHandler method auditLogFailedToStoreDiskFields.
private void auditLogFailedToStoreDiskFields(String diskAlias, String diskFieldsNames) {
AuditLogable logable = createDiskEvent(diskAlias);
logable.addCustomValue("DiskFieldsNames", diskFieldsNames);
auditLogDirector.log(logable, AuditLogType.FAILED_TO_STORE_DISK_FIELDS_IN_DISK_DESCRIPTION_METADATA);
}
use of org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogable in project ovirt-engine by oVirt.
the class RegisterDiskCommand method addRegisterInitatedAuditLog.
private void addRegisterInitatedAuditLog() {
AuditLogable logable = new AuditLogableImpl();
logable.addCustomValue("DiskAlias", getDiskImage().getDiskAlias());
auditLogDirector.log(logable, AuditLogType.USER_REGISTER_DISK_INITIATED);
}
use of org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogable in project ovirt-engine by oVirt.
the class IrsBrokerCommand method logToAudit.
@Override
protected void logToAudit() {
AuditLogable logable = new AuditLogableImpl();
logable.addCustomValue("CommandName", getCommandName());
logable.addCustomValue("message", getReturnStatus().message);
auditLogDirector.log(logable, AuditLogType.IRS_BROKER_COMMAND_FAILURE);
}
use of org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogable in project ovirt-engine by oVirt.
the class IrsProxy method queueDomainMaintenanceCheck.
public void queueDomainMaintenanceCheck(final StorageDomain domain, final StoragePool pool) {
getEventQueue().submitEventAsync(new Event(storagePoolId, domain.getId(), null, EventType.DOMAINFAILOVER, ""), () -> {
Collection<Guid> vdsConnectedToPool = getVdsConnectedToPool(storagePoolId);
Set<Guid> vdsDomInMaintenance = _domainsInMaintenance.get(domain.getId());
if (vdsConnectedToPool.isEmpty() || (vdsDomInMaintenance != null && vdsDomInMaintenance.containsAll(vdsConnectedToPool))) {
log.info("Moving domain '{}' to maintenance", domain.getId());
storagePoolIsoMapDao.updateStatus(domain.getStoragePoolIsoMapData().getId(), StorageDomainStatus.Maintenance);
AuditLogable logable = new AuditLogableImpl();
logable.setStorageDomainId(domain.getId());
logable.setStorageDomainName(domain.getName());
logable.setStoragePoolId(pool.getId());
logable.setStoragePoolName(pool.getName());
auditLogDirector.log(logable, AuditLogType.STORAGE_DOMAIN_MOVED_TO_MAINTENANCE);
}
return null;
});
}
use of org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogable in project ovirt-engine by oVirt.
the class IrsProxy method logDelayedDomain.
private void logDelayedDomain(String vdsName, String domainName, double delay) {
AuditLogable logable = new AuditLogableImpl();
logable.setVdsName(vdsName);
logable.setStorageDomainName(domainName);
logable.addCustomValue("Delay", Double.toString(delay));
auditLogDirector.log(logable, AuditLogType.VDS_DOMAIN_DELAY_INTERVAL);
}
Aggregations