Bug 1295864 - The number of resources in All Groups/Compatible Groups page is not correct all the time
Summary: The number of resources in All Groups/Compatible Groups page is not correct a...
Keywords:
Status: NEW
Alias: None
Product: RHQ Project
Classification: Other
Component: Core UI
Version: 4.12
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 1295863
TreeView+ depends on / blocked
 
Reported: 2016-01-05 16:04 UTC by bkramer
Modified: 2022-03-31 04:27 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)
attached screen shots (1.07 MB, application/zip)
2016-01-05 16:23 UTC, bkramer
no flags Details
DynaGroup_-_Server_Type__RHQ_Storage_Node_.png (132.94 KB, image/png)
2016-01-05 16:24 UTC, bkramer
no flags Details

Description bkramer 2016-01-05 16:04:33 UTC
Description of problem:
In RHQ environment with big number of resources, then number of child and/or descendent resources is not correct all the time. 

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

How reproducible:
Always - for big number of imported resources and big number of groups;

Steps to Reproduce:
1. Install RHQ 4.12 and at least 3 agents;

2. Import big number of resources (I used rhq-perftest-plugin-4.9.0.jar - so in my case I started all agents with "./rhq-agent.sh -Drhq.perftest.scenario=configurable-1 -Drhq.perftest.server-a-count=200 -Drhq.perftest.service-a-count=100" ); 

3. Create two dynagroups:

    3.1.) name: Server Type
          description: Group by Server Type
          expression:
            resource.type.category = SERVER
            groupby resource.type.name
          recursive: yes
          calculate: 5 minutes

    3.2.) name: Server Name
          description: Group by Server Name
          expression: 
            resource.type.category = SERVER
            groupby resource.name
          recursive: yes
          calculate: 5 minutes

4. Navigate to All Groups page and check the content of the page.



Actual results:

Attached screen shots that show the issue. 

Initially, as servers and services were not discovered at the same time, the numbers of servers/services were different. But, after few calculations of dynagroups, the page All Groups was as in incorrectNoResources_1.png (see attached images). In this screen shot, most of the dynagroups show correct number of children (3) and descendants (303) - except for server-a-152 which for some reason shows 3 available and 1 unknown in the children column (this cannot be true).

Then - IncorrectNoResources_2.png shows the same server-a-152 server but also server-a-94 with only 1 unknown child resource and 303 descendants (and it should be 3 available child resources - as seen in IncorrectNoResources_6.png).

When "Refresh" button is pressed for the first time (see IncorrectNoResources_3.png) server-a-115 showed 600 children and 303 descendants (the first number is clearly wrong), and then IncorrectNoResources_4.png after next refresh button where server-a-115 shows 3 child and 303 descendants. Also, in the same IncorrectNoResources_4.png see the numbers for server-a-161 - they look correct - 3 child and 303 descendants. After Refresh button is pressed again I got the situation as in IncorrectNoResources_5.png where the number of resources for server-a-115 is correct but for server-a-161 not (as now this server shows 600 child resources and 303 descendants).



Expected results:
Every dynagroup/compatible group in All Groups/Compatible Groups page shows correct number of child/descendants resources.

Additional info:
It may happen that this is caused with work done on Bugzilla https://bugzilla.redhat.com/show_bug.cgi?id=1244941.

Comment 1 bkramer 2016-01-05 16:23:50 UTC
Created attachment 1111907 [details]
attached screen shots

Comment 2 bkramer 2016-01-05 16:24:24 UTC
Created attachment 1111908 [details]
DynaGroup_-_Server_Type__RHQ_Storage_Node_.png

Comment 3 bkramer 2016-01-05 16:25:20 UTC
Additionally, see attached DynaGroup_-_Server_Type__RHQ_Storage_Node_.png - it shows 3 child resources and I only have one storage node. Interesting, when I press "Refresh" button, for a few milliseconds I can see 1 child resource but then it changes to 3. :-(


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