Bug 1097698

Summary: [as7] Incorrect expression in pre-defined dynagroup definition named Managed Servers in domain
Product: [Other] RHQ Project Reporter: Filip Brychta <fbrychta>
Component: Core Server, PluginsAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.11CC: hrupp, lzoubek
Target Milestone: ---   
Target Release: RHQ 4.12   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-12-15 11:36:00 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:
Bug Depends On:    
Bug Blocks: 1069544    

Description Filip Brychta 2014-05-14 11:02:20 UTC
Description of problem:
Followin expression:

groupby resource.resourceConfiguration[hostname]
resource.type.plugin = JBossAS7
resource.type.name = Managed Server

does NOT create groups of Managed Servers grouped by domain but it creates groups of Managed Servers grouped by hostname which is incorrect, because it is possible to have more hosts in one domain.

Version-Release number of selected component (if applicable):
Version :	
4.12.0-SNAPSHOT
Build Number :	
a3c6d72

How reproducible:
Always

Steps to Reproduce:
1. go to Inventory->Groups->Dynagroup definitions and open dynagroup definition named 'Managed Servers in domain'


Actual results:
Expression is incorrect, it does NOT create groups of Managed Servers grouped by domain

Expected results:
Groups of Managed Servers grouped by domain are created

Additional info:
One example of unique domain identificator could be 'hostname:port' of domain controller.

Comment 1 Libor Zoubek 2014-06-24 11:26:07 UTC
unique domain identificator is "Domain Name" that is common to all Host Controllers in EAP domain (being managed by same master Domain Controller)

in master

commit c0563e461933295696e73ae86cc0c8a08860806d
Author: Libor Zoubek <lzoubek>
Date:   Tue Jun 24 13:17:42 2014 +0200

    [BZ 1099854] [BZ 1097698]- [as7] Incorrect expression in pre-defined
    
    Provided expressions fixed - now taking into account domain-name trait.
    
    Managed Servers in domain : now generates groups per domain-name = set of
    all managed servers on all hostrcontrollers grouped by domain-name
    
    Managed Servers in server-group: now generates sets grouped by domain-name
    and server-group name.
    
    I also fixed provided expression called 'Deployments in server-group' -
    which was relying on Deployment resources under server-groups (recently
    removed)

Comment 2 Filip Brychta 2014-06-25 09:07:08 UTC
Verified on
Version :	
4.12.0-SNAPSHOT
Build Number :	
1d836a7

Comment 3 Heiko W. Rupp 2014-12-15 11:36:00 UTC
Bulk close of items fixed in RHQ 4.12

If you think this is not solved, then please open a *new* BZ and link to this one.