Oved Ourfali has uploaded a new change for review. Change subject: core+ui: add HA events to notification service ......................................................................
core+ui: add HA events to notification service Previous patch introduced two new events to the HA VM. This patch adds them to the notification service. Change-Id: I0d378cd041bb7b47085acfadb706ff745228a161 Signed-off-by: Oved Ourfali <oourf...@redhat.com> --- A backend/manager/dbscripts/upgrade/03_02_0060_ha_vm_event_notifications.sql M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/VdcEventNotificationUtils.java M frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/LocalizedEnums.java M frontend/webadmin/modules/uicompat/src/main/resources/org/ovirt/engine/ui/uicompat/LocalizedEnums.properties 4 files changed, 12 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/62/10162/1 diff --git a/backend/manager/dbscripts/upgrade/03_02_0060_ha_vm_event_notifications.sql b/backend/manager/dbscripts/upgrade/03_02_0060_ha_vm_event_notifications.sql new file mode 100644 index 0000000..d54eac1 --- /dev/null +++ b/backend/manager/dbscripts/upgrade/03_02_0060_ha_vm_event_notifications.sql @@ -0,0 +1,3 @@ +insert into event_map(event_up_name, event_down_name) values('HA_VM_RESTART_FAILED', ''); +insert into event_map(event_up_name, event_down_name) values('HA_VM_FAILED', ''); + 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 09b84c3..5a6f735 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 @@ -29,6 +29,8 @@ AddEventNotificationEntry(EventNotificationEntity.Vm, AuditLogType.VM_MIGRATION_START); AddEventNotificationEntry(EventNotificationEntity.Vm, AuditLogType.VM_MIGRATION_FAILED); AddEventNotificationEntry(EventNotificationEntity.Vm, AuditLogType.VM_NOT_RESPONDING); + AddEventNotificationEntry(EventNotificationEntity.Vm, AuditLogType.HA_VM_RESTART_FAILED); + AddEventNotificationEntry(EventNotificationEntity.Vm, AuditLogType.HA_VM_FAILED); // IRS AddEventNotificationEntry(EventNotificationEntity.Storage, AuditLogType.VDS_SLOW_STORAGE_RESPONSE_TIME); AddEventNotificationEntry(EventNotificationEntity.Storage, AuditLogType.IRS_FAILURE); diff --git a/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/LocalizedEnums.java b/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/LocalizedEnums.java index f3b267f..793b750 100644 --- a/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/LocalizedEnums.java +++ b/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/LocalizedEnums.java @@ -599,5 +599,9 @@ String AuditLogType___DWH_ERROR(); - String AuditLogType___VDS_TIME_DRIFT_ALERT(); + String AuditLogType___VDS_TIME_DRIFT_ALERT(); + + String AuditLogType___HA_VM_RESTART_FAILED(); + + String AuditLogType___HA_VM_FAILED(); } 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 e96ec32..212d819 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 @@ -297,3 +297,5 @@ AuditLogType___DWH_STARTED=History Service Stopped AuditLogType___DWH_ERROR=History Service Error AuditLogType___VDS_TIME_DRIFT_ALERT=Host has time-drift +AuditLogType___HA_VM_RESTART_FAILED=Highly-Available VM restart failed +AuditLogType___HA_VM_FAILED=Highly-Available VM failed -- To view, visit http://gerrit.ovirt.org/10162 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I0d378cd041bb7b47085acfadb706ff745228a161 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Oved Ourfali <oourf...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches