Bug 759485
| Summary: | Error viewing live data in the resource metric graph portlet | |||
|---|---|---|---|---|
| Product: | [Other] RHQ Project | Reporter: | Lukas Krejci <lkrejci> | |
| Component: | Core UI | Assignee: | Jay Shaughnessy <jshaughn> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> | |
| Severity: | medium | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 4.2 | CC: | hrupp, jshaughn | |
| Target Milestone: | --- | |||
| Target Release: | RHQ 4.3.0 | |||
| Hardware: | All | |||
| OS: | All | |||
| Whiteboard: | ||||
| Fixed In Version: | 4,3 | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 790076 (view as bug list) | Environment: | ||
| Last Closed: | 2013-08-31 10:16:12 UTC | Type: | --- | |
| 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: | 752488, 790076 | |||
|
Description
Lukas Krejci
2011-12-02 14:00:49 UTC
The problem is maybe two-fold. The exception results from not protecting against an empty metric value return. I will fix this. The second problem is that there really shouldn't be an empty value returned. Interestingly, Lukas was just "lucky" in that the graphing actually seems to work for all resource types other than the one he used: CPU. At least all the ones I tried until I asked him what he used :) So, with the fix for problem 1 the graph does not generate an exception but it also does not display any data. I'll look at seeing if CpuComponent can be tweaked to provide something for a live data request. The issue is due to the fact that we already do some complex work to generate CPU metrics. master commit 69e2b1d81dc42b0bfc12ee8e32b08d7b2beba38d - Fixed the live graph code to throw out metric requests returning no values so we should be safe from the type of exception reported. - Fixed CpuComponent to return valid data on a live metric request, instead of null, so CPU resources should now give proper live graphs. verified RHQ 3 master branch Bulk close of old bugs in VERIFIED state. |