Ravi Nori has uploaded a new change for review. Change subject: core : No email notification sent when host recovers from previously reported condition ......................................................................
core : No email notification sent when host recovers from previously reported condition There is no option in event manager to subscribe for 'Host is responsive' event. Users can choose to receive email notifications for several host conditions listed under "Host Event" section of event notifications. When a user has chosen a specific condition and such condition occurs the user receives an email notification. When such condition is resolved or disappears the user does not receive any email notification alerting him/her that the previously reported condition has been solved is no longer present. Change-Id: I93038f1ef81aa82643eb1b0e4bf9bc523a28b22c Bug-Url: https://bugzilla.redhat.com/1013631 Signed-off-by: Ravi Nori <rn...@redhat.com> --- 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 A packaging/dbscripts/upgrade/03_04_0480_add_event_fixed_map.sql 4 files changed, 5 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/99/23399/1 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 932e774..503fec2 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 @@ -33,6 +33,7 @@ AddEventNotificationEntry(EventNotificationEntity.Host, AuditLogType.VDS_HIGH_CPU_USE); AddEventNotificationEntry(EventNotificationEntity.Host, AuditLogType.VDS_HIGH_SWAP_USE); AddEventNotificationEntry(EventNotificationEntity.Host, AuditLogType.VDS_LOW_SWAP); + AddEventNotificationEntry(EventNotificationEntity.Host, AuditLogType.VDS_DETECTED); AddEventNotificationEntry(EventNotificationEntity.VirtHost, AuditLogType.VDS_SET_NONOPERATIONAL_DOMAIN); AddEventNotificationEntry(EventNotificationEntity.VirtHost, AuditLogType.SYSTEM_CHANGE_STORAGE_POOL_STATUS_NO_HOST_FOR_SPM); AddEventNotificationEntry(EventNotificationEntity.VirtHost, AuditLogType.SYSTEM_DEACTIVATED_STORAGE_DOMAIN); 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 82f4509..5fb1abc 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 @@ -772,6 +772,8 @@ String AuditLogType___VDS_SET_NONOPERATIONAL(); + String AuditLogType___VDS_DETECTED(); + String AuditLogType___VDS_SET_NONOPERATIONAL_IFACE_DOWN(); String AuditLogType___VDS_SET_NONOPERATIONAL_DOMAIN(); 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 3d56d83..e62b523 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 @@ -384,6 +384,7 @@ AuditLogType___EXCEEDED_MAXIMUM_NUM_OF_RESTART_HA_VM_ATTEMPTS=Exceeded the maximum number of attempts to restart failed highly-available VM AuditLogType___SYSTEM_DEACTIVATED_STORAGE_DOMAIN=Storage Domain state was set to inactive AuditLogType___VDS_SET_NONOPERATIONAL=Host state was set to non-operational +AuditLogType___VDS_DETECTED=Host is responsive AuditLogType___VDS_SET_NONOPERATIONAL_IFACE_DOWN=Host state was set to non-operational due to a missing Interface AuditLogType___VDS_SET_NONOPERATIONAL_DOMAIN=Host state was set to non-operational due to inaccessible Storage Domain AuditLogType___SYSTEM_CHANGE_STORAGE_POOL_STATUS_NO_HOST_FOR_SPM=Failed electing an SPM for the Data-Center diff --git a/packaging/dbscripts/upgrade/03_04_0480_add_event_fixed_map.sql b/packaging/dbscripts/upgrade/03_04_0480_add_event_fixed_map.sql new file mode 100644 index 0000000..9fa48bd --- /dev/null +++ b/packaging/dbscripts/upgrade/03_04_0480_add_event_fixed_map.sql @@ -0,0 +1 @@ +insert into event_map(event_up_name, event_down_name) values('VDS_DETECTED', ''); -- To view, visit http://gerrit.ovirt.org/23399 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I93038f1ef81aa82643eb1b0e4bf9bc523a28b22c Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Ravi Nori <rn...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches