Bug 951266

Summary: d3 Charts on Inventory -> Summary -> group metric portlet don't work properly for various groups
Product: [Other] RHQ Project Reporter: Jirka Kremser <jkremser>
Component: Core UIAssignee: Jirka Kremser <jkremser>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.6CC: ahovsepy, hrupp
Target Milestone: ---   
Target Release: RHQ 4.7   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-08-31 10:17:33 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: 929208    
Attachments:
Description Flags
example
none
working example of a chart for resource
none
maxReqSumCompGr
none
maxReqFromSumm
none
compGrMacReq
none
asMaxReq none

Description Jirka Kremser 2013-04-11 21:43:41 UTC
Created attachment 734437 [details]
example

Description of problem:
The new charts works without any issues on the Inventory -> Summary tab -> group metric portlet for resources, but for some groups empty popup window is showed or exception is thrown for some autogroups.



Version-Release number of selected component (if applicable):
4.7.0-SNAPSHOT

How reproducible:
always

Steps to Reproduce:
1. inventory some platform
2. create new compatible group with 1 resource of type JBossAS7 Standalone Server (RHQ server)
3. click on newly created group
4. Click on "Maximum request time" link within the "Group: Metric" portlet (this metric should be added by default)

Actual results:
empty window is shown

Expected results:
graph with data should be rendered as it works on the summary tab for the resrource itself (not for group with this resource)

Additional info:

The strange thing is that for some groups, it works well. For instance the autogroup of CPUs shows the proper graphs, but if one creates a common compatible group with some resources of type CPU. Then empty window is shown when clicking on that link on group metric portlet for summary tab for the comp. group. 

For autogroup "JBossAS7 Standalone Servers" it throws an exception (see the attachment)

Comment 1 Jirka Kremser 2013-04-11 21:44:45 UTC
Created attachment 734438 [details]
working example of a chart for resource

Comment 2 Jirka Kremser 2013-04-15 11:40:31 UTC
branch:  master
link:    http://git.fedorahosted.org/cgit/rhq/rhq.git/commit/?id=d180a87
time:    2013-04-15 13:38:20 +0200
commit:  d180a87f10798f616c744130383560e26f1780ad
author:  Jirka Kremser - jkremser
message: [BZ 951266] - d3 Charts on Inventory -> Summary -> group metric portlet
         don't work properly for various groups - There was an timing
         issue with using the count down latch in class
         CompositeGroupMultiLineGraphListView. Also, different criteria
         ("filterVisible" in particular) have to be used for fetching
         the data for autogroups.

Comment 3 Armine Hovsepyan 2013-05-27 11:47:19 UTC
verified.

please get attached screenshot of graphs for as7 resource from compatibility group and resources list.

Comment 4 Armine Hovsepyan 2013-05-27 11:51:04 UTC
Created attachment 753592 [details]
maxReqSumCompGr

Comment 5 Armine Hovsepyan 2013-05-27 11:51:46 UTC
Created attachment 753593 [details]
maxReqFromSumm

Comment 6 Armine Hovsepyan 2013-05-27 11:51:55 UTC
Created attachment 753594 [details]
compGrMacReq

Comment 7 Armine Hovsepyan 2013-05-27 11:52:02 UTC
Created attachment 753595 [details]
asMaxReq

Comment 8 Heiko W. Rupp 2013-08-31 10:17:33 UTC
Bulk close of old bugs in VERIFIED state.