Bug 980765 - RHQ 4.8 Graphs do not show in new charts
Summary: RHQ 4.8 Graphs do not show in new charts
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Core Server, Core UI, Usability
Version: 4.7,4.8
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: RHQ 4.10
Assignee: Mike Thompson
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-07-03 08:12 UTC by Stian Lund
Modified: 2014-04-23 15:22 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-04-23 12:30:52 UTC
Embargoed:


Attachments (Terms of Use)
Logs and stuff (617.83 KB, application/zip)
2013-07-03 08:12 UTC, Stian Lund
no flags Details
RHQ 4.9 Linux Load Graph test (50.33 KB, image/png)
2013-08-14 09:22 UTC, Stian Lund
no flags Details
RHQ Server logs (1.20 MB, application/zip)
2013-08-23 08:48 UTC, Stian Lund
no flags Details
Firebug Logs (26.72 KB, text/plain)
2013-08-23 08:49 UTC, Stian Lund
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1079225 0 high CLOSED Graphs of sub-level resources in groups fail. 2021-02-22 00:41:40 UTC

Internal Links: 1079225

Description Stian Lund 2013-07-03 08:12:51 UTC
Created attachment 768131 [details]
Logs and stuff

Description of problem:

The new graphs do not show for several resources, especially for grouped resources. Either graphs do not show at all, or only one of a group shows.


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

RHQ 4.7, 4.8

How reproducible:

Always, but to varying degrees dependent on resource. Mostly happens to grouped resources. Also seems to happen to mostly the line charts, not bar charts since they are shown for single resources not grouped.

Steps to Reproduce:
1. Log in to RHQ
2. Open RHQ UI to a group or resource
3. Select to display a metric graph from Summary/Metrics

Actual results:

Graph subwindow appears but is empty apart from the timeline selection.
OR: One graph is shown in a group of two. When deselecting the one that is shown, the other graph appears.

Expected results:

Expect to see the graphs for the metric for all resources in the group.

Additional info:

Going to Monitoring > Graphs the bar charts show, but I guess only an average?

On client side using:
Microsoft Windows Server 2008 R2 Standard
Versjon	6.1.7601 Service Pack 1 Build 7601
Intel(R) Xeon(R) CPU E5-2670 0 @ 2.60GHz, 2600 Mhz

Reproduced in Chrome 25.0.1364.97 and Firefox 21.0.

On RHQ side:
Red Hat Enterprise Linux Server release 6.4 (Santiago)
Linux d26apvl007.test.local 2.6.32-358.6.1.el6.x86_64 #1 SMP Fri Mar 29 16:51:51 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux

Attaching logs from Firebug, Chrome Devtools and
Devtools-1/Firebug-1: Only one graph of group of two shows
Devtools-2/Firebug-2: No graphs show of group

Attaching screenshot of first situation.

Comment 1 Mike Thompson 2013-07-03 14:02:13 UTC
Thanks Stian for this information. Investigating...

Comment 2 Mike Thompson 2013-07-06 21:05:03 UTC
By the way thanks for all the wonderful logs and screenshots -- it help greatly.

The strange thing is that the data is getting queried and loaded and drawn as shown by:

FINE: # of child resources: 2
FINE: Adding child composite: AMelding (10590)16431
FINE: Adding child composite: AMelding (10590)16432
Draw nvd3 charts for composite multiline graph


So it doesn't make sense that only one of lines in the graph is showing. Which made me think that it was a timing issue. But the countdown latch ensures that drawing the graph doesn't occur until all resources have been loaded. I was also looking for an off by one error in the count down latch code. So perhaps it is in the nvd3 library itself. Since I'm getting rid of that code we can try it out with the new pure d3 version and hopefully all of this disappears. 

I will have a new release for you to try out in a couple days if you are willing to take it for a spin. At any rate, I'm adding extra logging to help diagnose. A most interesting problem ;-)


Thanks,

Mike

Comment 3 Stian Lund 2013-07-09 10:23:54 UTC
Hi Mike,
I'll be happy to test anything you throw my way :)

Be aware I am not able to compile code but I can test a new .war or .jar for instance, or replace some files.

Comment 4 Mike Thompson 2013-07-09 20:13:53 UTC
Awesome! The power of the community.

Thanks!

Comment 5 Stian Lund 2013-08-09 07:54:30 UTC
Hi,
any update on this one Mike?

Have you been able to repro the problem on your end?

I am still very much willing to test any build/debugs you have for me :)

thanks,
Stian

Comment 6 Mike Thompson 2013-08-09 16:09:36 UTC
Hi Stian,

Sorry for the long delay. I thought we would have the actual 4.9 release out a couple weeks ago. I checked in the fixes/rewrite for the multiline chart on 7/9/13 to master(e4acf0f). So if you want to build the code it is there. As for deployable artifacts, the build process (at Red Hat called 'brew') is quite involved as it builds from known, certified artifacts. RHQ 4.9 will be out soon (that's all I can say). I will check to see if QE has an alpha build with the desired commits it in the meantime.

WRT to being able to reproduce the bug on my end: I have not with my VM running Windows 7. So it is important to get this into your hands for testing.

Thank you for your Patience!

-- Mike

Comment 7 Mike Thompson 2013-08-09 19:33:29 UTC
Here a link to a RHQ 4.9 Snapshot (332Mb) August 8, 2013 build:

https://www.dropbox.com/s/t7apuml4xvnozb7/rhq-server-4.9.0-SNAPSHOT.zip

Comment 8 Stian Lund 2013-08-12 08:52:18 UTC
Hello!

Please see:
https://community.jboss.org/message/832268#832268

I am having problems installing the snapshot :(

Comment 9 Stian Lund 2013-08-12 15:51:08 UTC
Hey - Jay pushed a fix of this to master - could I please get another snapshot to try? Really keen on seeing if this bug is fixed.

Stian

Comment 10 Mike Thompson 2013-08-13 13:28:04 UTC
Hi Stian,

Here is another snapshot that you requested. It is the Aug 12, 2013 1:43pm snapshot.

https://www.dropbox.com/s/t7apuml4xvnozb7/rhq-server-4.9.0-SNAPSHOT.zip

Comment 11 Stian Lund 2013-08-14 09:21:12 UTC
Thanks Mike for the snapshot.

Here's an update after trying it.

- I was able to graph one groups of Linux servers, however the lines go outside the graphed area. See attachment.
- Also the hostnames are not selectable like I thought they would be?
- Other graphs do not show like before, and have the same behaviour as reported, i.e. just blank.

Other issues I have with 4.9 that are quite serious:
- I seem to have lost all metric history data since upgrade, even though /opt/rhq/rhq-storage/data and commitlog are large. Only new metrics are shown. Possibly baseline calculation fails, there are entries in log of Overflow Exception trying to bind NaN.

- All Jboss servers are Unavailable, Agent throws NPE on ASConnection.NewInstanceFor(...) So I have no Jboss servers to try graphs on.This includes the RHQ Server instance.

- Chrome throws a nasty JS error popup when loading the start page, something about compile time user.agent value (Gecko) not matching runtime user.agent value (Safari)? I can still log in though. Firefox is OK but very slow.

- Log throws WARN on invalid module options on the LDAP module (minor issue)

Basically there is so much wrong with this at the moment I am not sure I want to risk going further, not to mention reporting the numerous other issues I discovered with 4.9 :(

Comment 12 Stian Lund 2013-08-14 09:22:01 UTC
Created attachment 786468 [details]
RHQ 4.9 Linux Load Graph test

Comment 13 Mike Thompson 2013-08-14 16:06:09 UTC
(In reply to Stian Lund from comment #11)
> Thanks Mike for the snapshot.
> 
> Here's an update after trying it.
> 
> - I was able to graph one groups of Linux servers, however the lines go
> outside the graphed area. See attachment.
Strange. I have never seen this before. I'm not sure how this is even possible with the graph library.

> - Also the hostnames are not selectable like I thought they would be?
I will have to add this back in once we are happy with this multi-line chart solution (which is a new rewrite of old solution).
> - Other graphs do not show like before, and have the same behaviour as
> reported, i.e. just blank.
Hmmmm. 
> 
> Other issues I have with 4.9 that are quite serious:
> - I seem to have lost all metric history data since upgrade, even though
> /opt/rhq/rhq-storage/data and commitlog are large. Only new metrics are
> shown. Possibly baseline calculation fails, there are entries in log of
> Overflow Exception trying to bind NaN.
I'm not sure the upgrade process that you went through and I'm not the expert on this issue to answer this question. For this dev build I would assume that we would be installing new to avoid any other issues.

> 
> - All Jboss servers are Unavailable, Agent throws NPE on
> ASConnection.NewInstanceFor(...) So I have no Jboss servers to try graphs
> on.This includes the RHQ Server instance.
Something very wrong with this build. All bets off at this point.
> 
> - Chrome throws a nasty JS error popup when loading the start page,
> something about compile time user.agent value (Gecko) not matching runtime
> user.agent value (Safari)? I can still log in though. Firefox is OK but very
> slow.
Not an error. We only build for FireFox (to minimize the build times).
> 
> - Log throws WARN on invalid module options on the LDAP module (minor issue)
> 
> Basically there is so much wrong with this at the moment I am not sure I
> want to risk going further, not to mention reporting the numerous other
> issues I discovered with 4.9 :(

I don't think we will do anymore testing with the dev builds as it causes more confusion than its worth. Perhaps the build was pulled at a bad time.

We appreciate you taking the time to do this testing and highlighting some issues. I will continue to try to reproduce your strange graph issues.

-- Mike

Comment 14 Stian Lund 2013-08-14 17:23:10 UTC
No worries Mike, I will try some stuff on my side as well.

For instance clearing all metric data, it might work to start from a fresh set - do you know how to do this with Cassandra? I suspect we might have some bad data in there.

I will try to get some more "weird" examples for you, as well as seeing if I get some understandable message in Firebug, and seeing if there are some things to do on the browser side, trying Opera for instance.

You say:
> Not an error. We only build for FireFox (to minimize the build times).

Ok, but do you test with IE9? According to stuff I read IE9 is supported (well far as it goes)? The error with the msgbox is there as well. Firefox probably has the same error, just does not pop up an error dialog.

Also - Do you think it's an idea to post some of the stuff I'm seeing with the dev build on BZ? I can't find any of them with a quick search, and I would not want them to be in the final if no-one catches them.

thanks,
Stian

Comment 15 Mike Thompson 2013-08-14 18:06:06 UTC
(In reply to Stian Lund from comment #14)
> No worries Mike, I will try some stuff on my side as well.
Great!
> 
> For instance clearing all metric data, it might work to start from a fresh
> set - do you know how to do this with Cassandra? I suspect we might have
> some bad data in there.
Let me ask a coworker the best way to clear out the metrics data. Will get back to you on this...
> 
> I will try to get some more "weird" examples for you, as well as seeing if I
> get some understandable message in Firebug, and seeing if there are some
> things to do on the browser side, trying Opera for instance.
Yes, the Firebug logs help a whole lot! Please include information about the environment so we can get as close as possible to reproduce.
> 
> You say:
> > Not an error. We only build for FireFox (to minimize the build times).
> 
> Ok, but do you test with IE9? According to stuff I read IE9 is supported
> (well far as it goes)? The error with the msgbox is there as well. Firefox
> probably has the same error, just does not pop up an error dialog.
IE9 is supported. This Hudson build is just a quick check of things and since it is done many times a day; it only compiles the GWT stuff for firefox to keep it quick. So IE9 will not work on this build. 

I'm talking with QE to get a different build (maybe not so often) but that has more browsers support. Stay tuned.
> 
> Also - Do you think it's an idea to post some of the stuff I'm seeing with
> the dev build on BZ? I can't find any of them with a quick search, and I
> would not want them to be in the final if no-one catches them.
By all means, Go ahead and add that stuff to this BZ.
> 
> thanks,
> Stian

Thanks for being patient and especially helping make RHQ better!

-- Mike

Comment 16 Mike Thompson 2013-08-15 00:28:19 UTC
Stian, 

Regarding the clearing of metric data, I spoke with a coworker that informed me that is not there yet. For now, you need to reinstall. 

1) Remove rhq-data/
2) bin/rhqctrl install

Comment 17 Mike Thompson 2013-08-15 23:24:55 UTC
Stian,

It has come to my attention via Heiko that one of the issues you were seeing:

"Possibly baseline calculation fails, there are entries in log of Overflow Exception trying to bind NaN."

was most likely:
https://bugzilla.redhat.com/show_bug.cgi?id=993513

This is currently being worked on.

Comment 18 Stian Lund 2013-08-16 08:33:31 UTC
Thanks Mike- I did a search of BZ but wasn't able to find that one. It very much looks like the issue I have, every hour, but can't remember seeing it in 4.8.

The AS7 issue I'm seeing is very serious, but I figure it is so obvious someone else must have seen it, right?

I might post the LDAP issue but it's more a minor annoyance that it gives a WARN.

I will get a chance to do a complete reinstall early next week - I will clear all metric data (just delete the folder), and see if it helps.

Thanks again Mike,
have a good weekend :)

Stian

Comment 19 Stian Lund 2013-08-20 08:06:03 UTC
Hi Mike - 
an update: I tried doing a clean install with clearing all metric data under rhq-storage. It still doesn't seem to display graphs for grouped resources unfortunately... :(

I also made a BZ for the bug with AS7 plugin - I stated the RHQ server also was Unavailable but apparently it does show up, and it is running EAP, which apparently works. But all JBoss AS7 fail to connect.
https://bugzilla.redhat.com/show_bug.cgi?id=998842

I think this one is quite important so if you could hint at someone to have a look at it that would be appreciated ;)

cheers,
Stian

Comment 20 Stian Lund 2013-08-23 08:48:18 UTC
Hello Again - 
I have now had help from Thomas to fix the bug with AS7 servers, so I have more resources to test with.

I have tried a lot of different things now;
- Resetting all metric data with a clean install
- Clearing Agents persistent data (for BZ 998842)
- Trying different browsers (IE, Firefox, Chrome)
- Logging in through localhost on Linux to avoid potention firewall/network issue
- Logging in with rhqadmin to see if it is an auth issue (we normally use LDAP)

For some reason, the only charts I am able to create, is the top-level of groups, i.e. 
- I have a group of 19 Linux hosts and I can chart stuff like User Load, Free Memory etc (you saw an example earlier)
- I can go to the top level of a group of two AS7 and chart Max. Request Time. But any lower level resources fail to chart.

Could this be a clue - that top-level grouped resources do work (albeit but errors) while lower level (children) do not?

Also, it seems there's a limit to the number of resources I can chart here, I have a group of 40 JBoss AS7 servers, a couple of them Down, and get an uncaught exception in the background UI when tried to load the chart.

I am attaching some more logs from Firebug as well as logs from the server.

I find it really strange that no-one else has been able to repro this.

Hope this helps a bit to nail this one.

thanks,
Stian

Comment 21 Stian Lund 2013-08-23 08:48:58 UTC
Created attachment 789503 [details]
RHQ Server logs

Comment 22 Stian Lund 2013-08-23 08:49:29 UTC
Created attachment 789504 [details]
Firebug Logs

Comment 23 Mike Thompson 2013-08-23 14:43:25 UTC
Ok great! This info should help nail this one down. I will update you next week. Thanks for your legwork here, Stian!

-- Mike

Comment 24 Stian Lund 2013-09-11 09:59:17 UTC
Hello Mike & all :)

According to "rumour", 4.9 is "just outside the door" - so I am wondering if there's been any progress on this issue? Have you been able to repro on your side?

thanks,
Stian

Comment 25 Mike Thompson 2013-09-11 18:49:43 UTC
Hi Stian,

Honestly no, between cramming for the release (and vacation time on my part :-0) As 4.9 is released today, those changes did not get into that release. I will be able to devote time to it shortly now that release is out the door.

-- Mike

Comment 26 Stian Lund 2013-09-12 15:55:55 UTC
Thanks for the update Mike, I can live with that :)

And I will probably test in 4.9 during the next week anyway, maybe I get lucky and something Magic happens ;)

Let me know once you got something to test, the easiest would be to replace a jar/war or something instead of building a full snapshot, if possible.

-Stian

Comment 27 Stian Lund 2013-11-05 10:06:51 UTC
Hey, a little update.

I have (finally) been able to get 4.9 run, and it seems the same problem is still there. 

However, I guess 4.10 is being worked on and should contain some fixes so hopefully once it's out I would be able to test.

If there was a way to test just by replacing relevant bits of the rhq.ear then I could try that - however I don't think I will risk using a snapshot ;)

Comment 28 Mike Thompson 2013-11-06 04:18:48 UTC
Hi Stian,

Thanks for your feedback. Lots of optimizations have occurred to both charting and rendering performance. I would like to do an isolated test of just the d3 javascript rendering to determine if it a timing issue or browser technology issue. Looking a week or two out for this isolated testing.


Thanks for your help and patience in testing this!


-- Mike

Comment 29 Mike Thompson 2014-01-24 15:17:08 UTC
Picking up from previous conversation:

"Could this be a clue - that top-level grouped resources do work (albeit but errors) while lower level (children) do not?"

Is the group a compatible group? All resources in the group are of exactly the same type (and have exactly the same metrics)?



"Also, it seems there's a limit to the number of resources I can chart here, I have a group of 40 JBoss AS7 servers, a couple of them Down, and get an uncaught exception in the background UI when tried to load the chart."

This could be an issue, as there is a color palette of 20. I will investigate this more.


Also, when looking through the logs that you provided I noticed there were many baseline recalculation errors on the server. This has been totally rewritten now and would be great to retest in 4.10.

Comment 30 Stian Lund 2014-01-27 11:27:50 UTC
Hi Mike!

> Is the group a compatible group?

Yes - I usually create logical groups consisting of JBoss AS7 servers, Linux platforms, Tomcat servers. They are not necessarily exactly the same since different AS7 servers could have different deployments etc. But they are Compatible groups consisting of the same type of resources.

> This could be an issue, as there is a color palette of 20. I will investigate this more.

Maybe you could just limit the max displayed to 20 like it's done in 4.5.1. And then allow checkboxes to select the ones you want if it's a large group of resources.

For RHQ 4.5.1 I think it just throws an exception if you try to chart very large groups. Probably for performance reasons, and a huge number of lines in a single graph just looks messy anyway...

Comment 31 Mike Thompson 2014-03-11 17:40:15 UTC
commit ab39b47dfa50c909be0ab28c215f4dca5f8885d0
Author: Mike Thompson <mithomps>
Date:   Tue Mar 11 10:22:06 2014 -0700

    [BZ 980765] Groups with more than 20 resources don't display in Multi-line composite graph.
     The d3 color palette gives us 20 shades of colors; this along with the fact that waiting for more than n +1 queries to execute (even though they are in parallel - the browser is still a single thread) makes graphing groups of larger than 20 resources prohibitive. This fix places a maximum bounds of 20 resources for the multi-line graph.

@Stian, you will be happy to know that this makes the 4.1.0 release.

Comment 32 Stian Lund 2014-03-12 08:50:53 UTC
Absolutely happy to hear that Mike :)

Does this fix also affect the problem with graphs of groups consisting of fewer resources? It affects all sub-resources of groups, even if they consist of only two members. Top-level shows, sub-levels do not.

Happy to test something if it is possible to just replace some WAR/JAR files :)

Stian

Comment 33 Mike Thompson 2014-03-12 17:34:42 UTC
Stian,

WRT: "Top-level shows, sub-levels do not" - I'm assuming that you are referring to recursive compatible groups? If that is the case, I was not aware of that as a requirement.

The 4.10 release is imminent, so please test that and file a new BZ for this sub-level issue if you still find it as this BZ is getting long has multiple things in it that have been fixed (you can link this BZ to the new BZ).

WRT: testing artifacts: our QE is close to having artifacts continuously built from dev builds. [Here is the in progress url for that: https://drone.io/github.com/ahovsepy/test-drone/11

We will announce that in  mailing list once complete.

-- Mike

Comment 34 Stian Lund 2014-03-21 08:35:31 UTC
Hi Mike,
I've now had a chance to test with RHQ 4.10 and it seems we still have the problem with recursive groups, where the sub-levels are not able to be graphed.

I am really puzzled by this, that no-one else has experienced it, because it seems to be consistent and I can't figure out what is wrong with our installation that might be causing an error like this.

I will open a new BZ for grouped resources (even though this BZ was originally about the same problem :)

Stian

Comment 35 Stian Lund 2014-03-21 09:00:50 UTC
I opened:
https://bugzilla.redhat.com/show_bug.cgi?id=1079225

Comment 36 Mike Thompson 2014-03-21 23:08:15 UTC
Thanks Stian! I know you put a lot of effort into testing and documenting this.

This way it will get prioritised.

-- Mike

Comment 37 Heiko W. Rupp 2014-04-23 12:30:52 UTC
Bulk closing of 4.10 issues.

If an issue is not solved for you, please open a new BZ (or clone the existing one) with a version designator of 4.10.


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