Bug 1016830

Summary: Alert notification sender, resource operation, relative resource type filter contains ambiguous types
Product: [JBoss] JBoss Operations Network Reporter: Larry O'Leary <loleary>
Component: Monitoring - AlertsAssignee: Jirka Kremser <jkremser>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: unspecified    
Version: JON 3.1.2CC: jkremser, jshaughn, skondkar
Target Milestone: DR01   
Target Release: JON 3.2.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-08 17:44:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Screenshot none

Description Larry O'Leary 2013-10-08 19:03:34 UTC
Description of problem:
When defining an alert notification sender of type resource operation using a relative resource type, the type filter drop-down can contain multiple resource types with the same name but from different plug-ins and parent types without any way to distinguish the differences.

Version-Release number of selected component (if applicable):
4.4.0.JON312GA

How reproducible:
Always

Steps to Reproduce:
1.  Install and start JBoss ON system and install all plug-ins.
2.  Import platform into inventory.
3.  Attempt to create a new alert definition for the platform resource:

    _General Properties_
        *Name*: `Test Alert`
        
    _Notifications_
        *Notification Sender*:  _Resource Operations_
        *Resource Selection Mode*:  _Relative Resource_ 
        *Start Search From*:    <platform>

Actual results:
*Then Filter By* contains multiple _Threading_ and _JBossAS Server_ resource types.

Expected results:
*Then Filter By* should make parent lineage for the duplicate resource types known. For example, _Threading_ may actually be:
  JBossAS -> JVM -> Threading
  JBossAS5 -> JVM -> Threading
  RHQ Agent -> JVM -> Threading

Additional info:

Comment 1 Larry O'Leary 2013-10-08 19:16:32 UTC
Bug 1016833 was added to see also list as it deals with this same list/field and its sort order.

Comment 2 Jirka Kremser 2014-01-28 16:04:59 UTC
branch:  master
link:    http://git.fedorahosted.org/cgit/rhq/rhq.git/commit/?id=d2aac70ae
time:    2014-01-28 16:03:56 +0100
commit:  d2aac70ae17ea051080a16a92a1ac666d909e520
author:  Jirka Kremser - jkremser
message: [BZ 1016833] - Alert notification sender, resource operation, relative
         resource type filter drop-down has not logical or usable
         ordering - Using the LinkedHashMap that preserves the ordering
         instead of java.util.HashMap. Also adding the plugin name to
         the drop-down list.

Comment 3 Jay Shaughnessy 2014-02-03 21:41:55 UTC
release/jon3.2.x commit c2f37733be994a9237853a7f21733e2459a9f055
Author: Jay Shaughnessy <jshaughn>
Date:   Mon Feb 3 16:39:30 2014 -0500

    Cherry pick of d2aac70ae17ea051080a16a92a1ac666d909e520
    
    Signed-off-by: Jay Shaughnessy <jshaughn>

Comment 4 Simeon Pinder 2014-02-18 15:08:35 UTC
Moving to ON_QA as available for testing in the following brew build:
https://brewweb.devel.redhat.com//buildinfo?buildID=336752

Note: the installed version is still JON 3.2.0.GA by design and this represents part of the payload for JON 3.2.1 also known as cumulative patch 1 for 3.2.0.GA.  How this will be delivered to customers is still being discussed.

Comment 5 Sunil Kondkar 2014-02-20 08:42:58 UTC
Verified on JON 3.2.1 DR01 build (Build Number :c758688:4c03150)

'Then Filter By' drop-down list shows the resource types with plug-in names. Please refer the attached screen-shot.

Comment 6 Sunil Kondkar 2014-02-20 08:43:41 UTC
Created attachment 865381 [details]
Screenshot

Comment 7 Mike Foley 2014-05-08 17:44:07 UTC
JON 3.2.1 released week of 5/5/2014