From b4469bb764dcad3ecedb767fd2e51728c2b854f2 Mon Sep 17 00:00:00 2001 From: Yun Huang Date: Wed, 4 Jul 2018 18:31:24 +0800 Subject: Fix eventId to conform VES specs for ocata Change-Id: Ia3fa37736a56fa6a1eb37ee76eb7ba2114fb7b1e Issue-ID: MULTICLOUD-238 Signed-off-by: Yun Huang --- ocata/ocata/vesagent/event_domain/fault_vm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ocata') diff --git a/ocata/ocata/vesagent/event_domain/fault_vm.py b/ocata/ocata/vesagent/event_domain/fault_vm.py index e2ad5e97..df1ca60d 100644 --- a/ocata/ocata/vesagent/event_domain/fault_vm.py +++ b/ocata/ocata/vesagent/event_domain/fault_vm.py @@ -248,11 +248,11 @@ def data2event_fault_vm(vimid, oneBacklog, last_event, vm_data): eventType = '' reportingEntityId = vimid reportingEntityName = vimid - sequence = 0 + sequence = 1 #last_event['event']['commonEventHeader']['sequence'] + 1 startEpochMicrosec = last_event['event']['commonEventHeader']['startEpochMicrosec'] lastEpochMicrosec = get_epoch_now_usecond() - eventId = str(uuid.uuid4()) #last_event['event']['commonEventHeader']['eventId'] + eventId = last_event['event']['commonEventHeader']['eventId'] pass -- cgit 1.2.3-korg