Eli Mesika has uploaded a new change for review.

Change subject: core: adding host time-drift notification(#848862)
......................................................................

core: adding host time-drift notification(#848862)

Adding support for event notification

Change-Id: I5b841724fbfe2a0bbfba7e9b4434be6d0949b782
Signed-off-by: Eli Mesika <emes...@redhat.com>
---
A backend/manager/dbscripts/upgrade/03_01_1380_add_host_time_drift_event.sql
M 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/VdcEventNotificationUtils.java
M 
frontend/webadmin/modules/uicompat/src/main/resources/org/ovirt/engine/ui/uicompat/LocalizedEnums.properties
3 files changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/28/7828/1

diff --git 
a/backend/manager/dbscripts/upgrade/03_01_1380_add_host_time_drift_event.sql 
b/backend/manager/dbscripts/upgrade/03_01_1380_add_host_time_drift_event.sql
new file mode 100644
index 0000000..f6d7f59
--- /dev/null
+++ b/backend/manager/dbscripts/upgrade/03_01_1380_add_host_time_drift_event.sql
@@ -0,0 +1,2 @@
+insert into event_map(event_up_name, event_down_name) 
values('VDS_TIME_DRIFT_ALERT', '');
+
diff --git 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/VdcEventNotificationUtils.java
 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/VdcEventNotificationUtils.java
index 831b8e3..8cdf3e5 100644
--- 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/VdcEventNotificationUtils.java
+++ 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/VdcEventNotificationUtils.java
@@ -23,6 +23,7 @@
         AddEventNotificationEntry(EventNotificationEntity.Host, 
AuditLogType.VDS_RECOVER_FAILED);
         AddEventNotificationEntry(EventNotificationEntity.Host, 
AuditLogType.VDS_APPROVE_FAILED);
         AddEventNotificationEntry(EventNotificationEntity.Host, 
AuditLogType.VDS_INSTALL_FAILED);
+        AddEventNotificationEntry(EventNotificationEntity.Host, 
AuditLogType.VDS_TIME_DRIFT_ALERT);
         // VM
         AddEventNotificationEntry(EventNotificationEntity.Vm, 
AuditLogType.VM_FAILURE);
         AddEventNotificationEntry(EventNotificationEntity.Vm, 
AuditLogType.VM_MIGRATION_START);
diff --git 
a/frontend/webadmin/modules/uicompat/src/main/resources/org/ovirt/engine/ui/uicompat/LocalizedEnums.properties
 
b/frontend/webadmin/modules/uicompat/src/main/resources/org/ovirt/engine/ui/uicompat/LocalizedEnums.properties
index 56da7bf..ffa7614 100644
--- 
a/frontend/webadmin/modules/uicompat/src/main/resources/org/ovirt/engine/ui/uicompat/LocalizedEnums.properties
+++ 
b/frontend/webadmin/modules/uicompat/src/main/resources/org/ovirt/engine/ui/uicompat/LocalizedEnums.properties
@@ -283,3 +283,4 @@
 AuditLogType___DWH_STOPPED=oVirt History Service Started
 AuditLogType___DWH_STARTED=oVirt History Service Stopped
 AuditLogType___DWH_ERROR=oVirt History Service Error
+AuditLogType___VDS_TIME_DRIFT_ALERT=Host has time-drift


--
To view, visit http://gerrit.ovirt.org/7828
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5b841724fbfe2a0bbfba7e9b4434be6d0949b782
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Eli Mesika <emes...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to