Bug 1097698 - [as7] Incorrect expression in pre-defined dynagroup definition named Managed Servers in domain
Summary: [as7] Incorrect expression in pre-defined dynagroup definition named Managed ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Core Server, Plugins
Version: 4.11
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: RHQ 4.12
Assignee: RHQ Project Maintainer
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks: JON3-5
TreeView+ depends on / blocked
 
Reported: 2014-05-14 11:02 UTC by Filip Brychta
Modified: 2014-12-15 11:36 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-12-15 11:36:00 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.