Created attachment 1216113 [details]
Description of problem:
CFME receives raw (EmsEvent) events when autotests create/remove/start/stop vm in Azure.
However many such events are absent in timelines for provider/vm/azone etc.
It seems not all raw events are correctly updated in DB and that's a reason for ignoring them during rendering timelines.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Add Azure provider to CFME
2. Create/Start/Stop/Remove vm in Azure
3. Check event_streams table for events related to just created vm
4. Open Timelines view for Azure provider
Timelines for Azure doesn't contain events related to just created/removed vm.
The event_streams table contains raw (EmsEvent) events for every operation.
The event_streams fields like vm_name, etc are empty.
Timelines for Azure should show all supported events.
event_streams table is attached.
name of vm used for testing is "test_tt_LivSa0DQpP".
New commit detected on ManageIQ/manageiq-providers-azure/master:
Author: Bronagh Sorota <email@example.com>
AuthorDate: Thu Nov 10 11:39:42 2016 -0500
Commit: Bronagh Sorota <firstname.lastname@example.org>
CommitDate: Tue Nov 15 14:43:34 2016 -0500
Update the VM ems_ref in the Azure event to match the case
of the ems_ref in the VM table. This will always ensure the event / VM
association will happen.
app/models/manageiq/providers/azure/event_catcher_mixin.rb | 4 ++--
.../providers/azure/cloud_manager/event_catcher/runner_spec.rb | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
cannot verify because Timelines is completely broken since 184.108.40.206.