Bug 1390756

Summary: No MW Provider Event Shown After Deleting Datasource
Product: [JBoss] Middleware Manager Reporter: Matt Mahoney <mmahoney>
Component: OtherAssignee: Ruben Vargas Palma <rvargasp>
Status: CLOSED WONTFIX QA Contact: Matt Mahoney <mmahoney>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.0.0 TP2CC: dajohnso, hrupp, jfrey, jhardy, jshaughn, obarenbo, rvargasp
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: hawkular
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-01-04 15:36:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Middleware Target Upstream Version:
Attachments:
Description Flags
TImeline
none
CFME evm.log
none
HS log
none
CR2 - evm.log
none
CR2 - Middleware Manager log none

Description Matt Mahoney 2016-11-01 20:26:26 UTC
Created attachment 1216240 [details]
TImeline

Description of problem:
Deleting an EAP Server Datasource did not result in an expected MW Provider event.

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

How reproducible:


Steps to Reproduce:
1. Start EAP Standalone server, as container.
2. Via CFUI, navigate to Provider-> Datasources
3. Delete EAP Datasource, such as ExampleDS
4. Refresh Provider, and verify that Datasources has actually been deleted.
   Datasource count should be 1 less, and Deleted Datasource should no longer be in Datasource List view.
5. Navigate to MW Provider->Detail View-> Monitoring.Timelines view.
6. Select All "Management Events" and "All" event types (adjust date as needed)
 See attached screen shot.

Actual results:
No timeline event after deleting Datasource

Expected results:
Timeline event should be present after deleting Datasource

Additional info:

Comment 2 Matt Mahoney 2016-11-01 20:31:57 UTC
Created attachment 1216242 [details]
CFME evm.log

Comment 3 Matt Mahoney 2016-11-01 20:32:34 UTC
Created attachment 1216243 [details]
HS log

Comment 5 Heiko W. Rupp 2016-11-03 15:55:15 UTC
Jay, can you please have a look? Are those even expected to show up?

Comment 6 Jay Shaughnessy 2016-11-04 21:56:48 UTC
A cursory look indicates that I did lay groundwork for this to show up.  I'll have to investigate in more detail...

Comment 8 Jay Shaughnessy 2016-11-07 22:37:47 UTC
Ruben, I should mention, if you make the MIQ code send the correct command (as opposed to the generic operation) and you still don't see an event, please let me know, there could be other issues.  I was only asking for someone to update the MIQ code.

Comment 9 Ruben Vargas Palma 2016-11-08 15:12:10 UTC
Jay, I reviewed this, the MIQ is sending the correct command (RemoveDatasource), 

The mixin run_operation is calling middleware_manager.remove_middleware_datasource which is calling run_specific_operation('RemoveDatasource', ems_ref) 

It should be another issue there. I'm still looking for something else.

Comment 10 Jay Shaughnessy 2016-11-09 13:02:45 UTC
Ruben, OK, sorry for an incorrect analysis.  I'll look more closely at what is happening on the back-end.

Comment 11 Jay Shaughnessy 2016-11-09 15:20:48 UTC
I am seeing Datasource events with this fix to commons.

Comment 12 Heiko W. Rupp 2016-11-15 15:07:43 UTC
This is now in the 0.21 release of H-services and should thus be in Hawkular-er1

Comment 13 Matt Mahoney 2016-12-13 18:50:34 UTC
Created attachment 1231312 [details]
CR2 - evm.log

Comment 14 Matt Mahoney 2016-12-13 18:52:08 UTC
Created attachment 1231313 [details]
CR2 - Middleware Manager log