Bug 535286 (RHQ-1999)

Summary: RFE: Trigger DynaGroup recalculation on inventory change
Product: [Other] RHQ Project Reporter: Heiko W. Rupp <hrupp>
Component: Core Server, Inventory, Resource GroupingAssignee: RHQ Project Maintainer <rhq-maint>
Status: NEW --- QA Contact: Sunil Kondkar <skondkar>
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: cwelton, jshaughn
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: All   
URL: http://jira.rhq-project.org/browse/RHQ-1999
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Heiko W. Rupp 2009-04-22 04:47:00 EDT
We can recalculate DynaGroups every n minutes.

It would be nice if the recalculation could be done when new resources are added to inventory or removed from it.
That way it would be simple to have a DynaGroup that just contains all resources for security purposes.
Comment 1 Red Hat Bugzilla 2009-11-10 15:55:45 EST
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-1999
Comment 2 Corey Welton 2010-08-10 14:15:58 EDT
Moving this to ON_QA -- move it back to assigned state if not passed.

Also, create a test case for this issue, for future tracking.
Comment 3 Sunil Kondkar 2010-08-11 06:52:41 EDT
Tested on jon-2.4GA

Inventoried a jbossAS server(eap5) and created a dynagorup with:
resource.type.plugin = JBossAS5
resource.type.name = JBossAS Server

Inventoried another jbossAS server(eap5.1) and observed that the recalculation does not happen for the dynagroup. 
Recalculating manually displays the new group member in the dynagroup.

The new resource is removed from dynagroup after uninventoring.