ofri masad has uploaded a new change for review. Change subject: core+ui: Add host notifications ......................................................................
core+ui: Add host notifications This patch adds 3 new events to the notification service - storage domain became inactive - host became non-operational - rhev-m failed to elect an SPM for a DC Change-Id: Ie11d3d4e2c5e8b9a8096d742bc35cab82ff27bd0 Signed-off-by: Ofri Masad <oma...@redhat.com> --- A backend/manager/dbscripts/upgrade/03_02_0290_add_vds_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, 27 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/08/10808/1 diff --git a/backend/manager/dbscripts/upgrade/03_02_0290_add_vds_event_notifications.sql b/backend/manager/dbscripts/upgrade/03_02_0290_add_vds_event_notifications.sql new file mode 100644 index 0000000..1c52fef --- /dev/null +++ b/backend/manager/dbscripts/upgrade/03_02_0290_add_vds_event_notifications.sql @@ -0,0 +1,6 @@ +-- Add new notifications +insert into event_map(event_up_name, event_down_name) values('SYSTEM_DEACTIVATED_STORAGE_DOMAIN', ''); +insert into event_map(event_up_name, event_down_name) values('VDS_SET_NONOPERATIONAL', ''); +insert into event_map(event_up_name, event_down_name) values('VDS_SET_NONOPERATIONAL_IFACE_DOWN', ''); +insert into event_map(event_up_name, event_down_name) values('VDS_SET_NONOPERATIONAL_DOMAIN', ''); +insert into event_map(event_up_name, event_down_name) values('SYSTEM_CHANGE_STORAGE_POOL_STATUS_NO_HOST_FOR_SPM', ''); 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 8d7d155..a3d6886 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 @@ -24,6 +24,12 @@ AddEventNotificationEntry(EventNotificationEntity.Host, AuditLogType.VDS_APPROVE_FAILED); AddEventNotificationEntry(EventNotificationEntity.Host, AuditLogType.VDS_INSTALL_FAILED); AddEventNotificationEntry(EventNotificationEntity.Host, AuditLogType.VDS_TIME_DRIFT_ALERT); + AddEventNotificationEntry(EventNotificationEntity.Host, AuditLogType.SYSTEM_DEACTIVATED_STORAGE_DOMAIN); + AddEventNotificationEntry(EventNotificationEntity.Host, AuditLogType.VDS_SET_NONOPERATIONAL); + AddEventNotificationEntry(EventNotificationEntity.Host, AuditLogType.VDS_SET_NONOPERATIONAL_IFACE_DOWN); + AddEventNotificationEntry(EventNotificationEntity.Host, AuditLogType.VDS_SET_NONOPERATIONAL_DOMAIN); + AddEventNotificationEntry(EventNotificationEntity.Host, AuditLogType.SYSTEM_CHANGE_STORAGE_POOL_STATUS_NO_HOST_FOR_SPM); + // VM AddEventNotificationEntry(EventNotificationEntity.Vm, AuditLogType.VM_FAILURE); AddEventNotificationEntry(EventNotificationEntity.Vm, AuditLogType.VM_MIGRATION_START); 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 a9cd57b..59a6a19 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 @@ -606,4 +606,14 @@ String AuditLogType___HA_VM_RESTART_FAILED(); String AuditLogType___HA_VM_FAILED(); + + String AuditLogType___SYSTEM_DEACTIVATED_STORAGE_DOMAIN(); + + String AuditLogType___VDS_SET_NONOPERATIONAL(); + + String AuditLogType___VDS_SET_NONOPERATIONAL_IFACE_DOWN(); + + String AuditLogType___VDS_SET_NONOPERATIONAL_DOMAIN(); + + String AuditLogType___SYSTEM_CHANGE_STORAGE_POOL_STATUS_NO_HOST_FOR_SPM(); } 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 7715dff..fb285ed 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 @@ -300,3 +300,8 @@ 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 +AuditLogType___SYSTEM_DEACTIVATED_STORAGE_DOMAIN=Storage Domain became inactive +AuditLogType___VDS_SET_NONOPERATIONAL=Host became non-operational +AuditLogType___VDS_SET_NONOPERATIONAL_IFACE_DOWN=Host became non-operational - Interface down +AuditLogType___VDS_SET_NONOPERATIONAL_DOMAIN=Host became non-operational - inaccessible Storage Domain +AuditLogType___SYSTEM_CHANGE_STORAGE_POOL_STATUS_NO_HOST_FOR_SPM=Failed to elect SPM for DC -- To view, visit http://gerrit.ovirt.org/10808 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ie11d3d4e2c5e8b9a8096d742bc35cab82ff27bd0 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: ofri masad <oma...@redhat.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches