Bug 1394310

Summary: appliance doesn't receive events from Azure if C&U server roles are turned on after provider addition
Product: Red Hat CloudForms Management Engine Reporter: Ievgen Zapolskyi <izapolsk>
Component: ProvidersAssignee: Bronagh Sorota <bsorota>
Status: CLOSED NOTABUG QA Contact: Jeff Teehan <jteehan>
Severity: high Docs Contact:
Priority: unspecified    
Version: 5.7.0CC: cpelland, dajohnso, izapolsk, jfrey, jhardy, jteehan, obarenbo
Target Milestone: GA   
Target Release: cfme-future   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: provider:azure:event
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-21 16:02:41 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:

Description Ievgen Zapolskyi 2016-11-11 16:38:23 UTC
Description of problem:
When I add Azure provider and then turn on C&U server roles (Coordinator, Data Collector, Processor), event_streams table is not populated by Azure events.
If I the server roles are enabled before adding new provider, everything works well.
I suppose some processes don't re-read configuration updates or aren't restarted when those settings are changed.

I guess it concerns other cloud providers as well.

Version-Release number of selected component (if applicable):
5.7.0.10

How reproducible:
100%

Steps to Reproduce:
1. Add Azure provider
2. Open CFME Settings and turn on C&U server roles - Coordinator, Data Collector, Processor
3. Save changes
4. Make some changes in Azure environment. F.e. create/delete any instance
5. Check event_streams table for azure events

Actual results:
event_streams doesn't contain any azure events

Expected results:
event_streams table should contain all expected azure events in such case.

CFME should correctly pick up settings changes and re-read new configuration or restart appropriate processes. 



Additional info:

Comment 2 Dave Johnson 2016-11-12 04:02:42 UTC
Jeff, can you please try to reproduce this.  Does the event monitor really stop receiving events when we enable c&u roles or is it more an issue of the box is pegged and thereby drops events?

Comment 3 Bronagh Sorota 2016-11-18 15:57:35 UTC
hi Levgen

Enabling the C&U roles will not enable event collection, it will enable Capacity and Utilization (metrics). 
I tried running through the steps above for the event monitor role and it works fine.

Bronagh

Comment 4 Ievgen Zapolskyi 2016-11-21 11:02:40 UTC
Hi Bronagh, 

In fact, If I don't enable C&U roles, I don't receive events from Azure. So, C&U settings influence event collection somehow. 
BTW, I just checked this in 5.7.0.11. I added Azure provider in newly deployed appliance and created network security group in Azure. The event_streams table didn't have any Azure events.

I could provide you my env with appliance and azure if you want.
Other option could be we can establish bj session and I could show you how this works in my env.

Comment 5 Ievgen Zapolskyi 2016-11-21 16:02:25 UTC
The issue is definitely appear only in some certain cases but not in all cases.

I'm going to close the issue atm and re-open it or submit a new one when finish investigation.

Comment 6 Ievgen Zapolskyi 2016-11-21 16:02:41 UTC
The issue is definitely appear only in some certain cases but not in all cases.

I'm going to close the issue atm and re-open it or submit a new one when finish investigation.

Comment 7 Ievgen Zapolskyi 2016-11-21 16:02:52 UTC
The issue is definitely appear only in some certain cases but not in all cases.

I'm going to close the issue atm and re-open it or submit a new one when finish investigation.