Hello Emily Zhang, I'd like you to do a code review. Please visit
http://gerrit.ovirt.org/16990 to review the following change. Change subject: engine:Trusted Compute Pools - Open Attestation integration with oVirt engine ...................................................................... engine:Trusted Compute Pools - Open Attestation integration with oVirt engine Detailed description: http://wiki.ovirt.org/Trusted_compute_pools Enhance Notification service to recognize the new events added in TCP feature. Change-Id: I8d0314ac61b9f84ff6c2a21ec9dc711f7bb9b5e1 Signed-off-by: Gang Wei <gang....@intel.com> Signed-off-by: Emily <lijuan.zh...@intel.com> --- M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/VdcEventNotificationUtils.java A packaging/dbscripts/upgrade/03_03_0390_add_trusted_service_notifications.sql 2 files changed, 29 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/90/16990/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 0e6efe5..ed9d456 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 @@ -102,6 +102,21 @@ AddEventNotificationEntry(EventNotificationEntity.DWH, AuditLogType.DWH_ERROR); AddEventNotificationEntry(EventNotificationEntity.GlusterVolume, AuditLogType.GLUSTER_VOLUME_ADD_BRICK); AddEventNotificationEntry(EventNotificationEntity.GlusterVolume, AuditLogType.GLUSTER_VOLUME_ADD_BRICK_FAILED); + + //Trusted Service + AddEventNotificationEntry(EventNotificationEntity.Host, AuditLogType.VDS_UNTRUSTED); + AddEventNotificationEntry(EventNotificationEntity.Vm, AuditLogType.USER_UPDATE_VM_FROM_TRUSTED_TO_UNTRUSTED); + AddEventNotificationEntry(EventNotificationEntity.Vm, AuditLogType.USER_UPDATE_VM_FROM_UNTRUSTED_TO_TRUSTED); + AddEventNotificationEntry(EventNotificationEntity.Vm, AuditLogType.IMPORTEXPORT_IMPORT_VM_FROM_TRUSTED_TO_UNTRUSTED); + AddEventNotificationEntry(EventNotificationEntity.Vm, AuditLogType.IMPORTEXPORT_IMPORT_VM_FROM_UNTRUSTED_TO_TRUSTED); + AddEventNotificationEntry(EventNotificationEntity.Vm, AuditLogType.USER_ADD_VM_FROM_TRUSTED_TO_UNTRUSTED); + AddEventNotificationEntry(EventNotificationEntity.Vm, AuditLogType.USER_ADD_VM_FROM_UNTRUSTED_TO_TRUSTED); + AddEventNotificationEntry(EventNotificationEntity.Vm, AuditLogType.IMPORTEXPORT_IMPORT_TEMPLATE_FROM_TRUSTED_TO_UNTRUSTED); + AddEventNotificationEntry(EventNotificationEntity.Vm, AuditLogType.IMPORTEXPORT_IMPORT_TEMPLATE_FROM_UNTRUSTED_TO_TRUSTED); + AddEventNotificationEntry(EventNotificationEntity.Vm, AuditLogType.USER_ADD_VM_TEMPLATE_FROM_TRUSTED_TO_UNTRUSTED); + AddEventNotificationEntry(EventNotificationEntity.Vm, AuditLogType.USER_ADD_VM_TEMPLATE_FROM_UNTRUSTED_TO_TRUSTED); + AddEventNotificationEntry(EventNotificationEntity.Vm, AuditLogType.USER_UPDATE_VM_TEMPLATE_FROM_TRUSTED_TO_UNTRUSTED); + AddEventNotificationEntry(EventNotificationEntity.Vm, AuditLogType.USER_UPDATE_VM_TEMPLATE_FROM_UNTRUSTED_TO_TRUSTED); } /** diff --git a/packaging/dbscripts/upgrade/03_03_0390_add_trusted_service_notifications.sql b/packaging/dbscripts/upgrade/03_03_0390_add_trusted_service_notifications.sql new file mode 100644 index 0000000..01e4ca2 --- /dev/null +++ b/packaging/dbscripts/upgrade/03_03_0390_add_trusted_service_notifications.sql @@ -0,0 +1,14 @@ +-- Add new notifications +insert into event_map(event_up_name, event_down_name) values('VDS_UNTRUSTED', ''); +insert into event_map(event_up_name, event_down_name) values('USER_UPDATE_VM_FROM_TRUSTED_TO_UNTRUSTED', ''); +insert into event_map(event_up_name, event_down_name) values('USER_UPDATE_VM_FROM_UNTRUSTED_TO_TRUSTED', ''); +insert into event_map(event_up_name, event_down_name) values('IMPORTEXPORT_IMPORT_VM_FROM_TRUSTED_TO_UNTRUSTED', ''); +insert into event_map(event_up_name, event_down_name) values('IMPORTEXPORT_IMPORT_VM_FROM_UNTRUSTED_TO_TRUSTED', ''); +insert into event_map(event_up_name, event_down_name) values('USER_ADD_VM_FROM_TRUSTED_TO_UNTRUSTED', ''); +insert into event_map(event_up_name, event_down_name) values('USER_ADD_VM_FROM_UNTRUSTED_TO_TRUSTED', ''); +insert into event_map(event_up_name, event_down_name) values('IMPORTEXPORT_IMPORT_TEMPLATE_FROM_TRUSTED_TO_UNTRUSTED', ''); +insert into event_map(event_up_name, event_down_name) values('IMPORTEXPORT_IMPORT_TEMPLATE_FROM_UNTRUSTED_TO_TRUSTED', ''); +insert into event_map(event_up_name, event_down_name) values('USER_ADD_VM_TEMPLATE_FROM_TRUSTED_TO_UNTRUSTED', ''); +insert into event_map(event_up_name, event_down_name) values('USER_ADD_VM_TEMPLATE_FROM_UNTRUSTED_TO_TRUSTED', ''); +insert into event_map(event_up_name, event_down_name) values('USER_UPDATE_VM_TEMPLATE_FROM_TRUSTED_TO_UNTRUSTED', ''); +insert into event_map(event_up_name, event_down_name) values('USER_UPDATE_VM_TEMPLATE_FROM_UNTRUSTED_TO_TRUSTED', ''); -- To view, visit http://gerrit.ovirt.org/16990 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I8d0314ac61b9f84ff6c2a21ec9dc711f7bb9b5e1 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Gang Wei <gang....@intel.com> Gerrit-Reviewer: Emily Zhang <lijuan.zh...@intel.com> _______________________________________________ Engine-patches mailing list Engine-patches@ovirt.org http://lists.ovirt.org/mailman/listinfo/engine-patches