Description of problem: Resource Summary/Activity shows summary of disabled metrics Version-Release number of selected component (if applicable): jon 3.2 CR1 How reproducible: always Steps to Reproduce: 1. Navigate to Monitoring -> Schedule of platform resource 2. Click on See More link (or navigate to Platform -. Monitoring -> Metrics) 3. Cound metrics 4. navigate to platform resource -> summary -> activity 5. Count metrics shown Actual results: After step4: Diabled metrics (visible after step1 invisible after step 2)are visible on page Expected results: Only enabled metrics should be shown on summary -> activity page 2nd case: 1. Enable disabled metric visible on summary -> activity page 2. Compare values in summary and Monitoring/metrics pages Actual results: After step2. Value in Monitoring/Metrics is naN while values in Summary/Activity is not-null Expected results: Values in Monitoring/metrics and Summary/Activity are the same Additional info: Screen-shots attached
Created attachment 832575 [details] metric_summary_schedule disabled metrics visible on summary/activity
the issue seems visible for platform resources only - not visible for storage->cassandra server jvm->memory subsystem resource -- screen-shot attached
Created attachment 832577 [details] non-platform-resource
branch: master link: http://git.fedorahosted.org/cgit/rhq/rhq.git/commit/?id=985cf07bc time: 2013-12-04 20:10:36 +0100 commit: 985cf07bc5835ab816d661008f1f752a355f3d4e author: Jirka Kremser - jkremser message: [BZ 1038067] - Resource Summary/Activity shows summary of disabled metrics - adding a check that finds out whether the resource has those metrics scheduled. This is done in parallel using the countdown latch pattern. => needs to be cherry-picked over to the release branch once 3.2 is out
*** Bug 1033338 has been marked as a duplicate of this bug. ***
branch: master link: http://git.fedorahosted.org/cgit/rhq/rhq.git/commit/?id=ab5629677 time: 2013-11-21 12:31:24 +0200 commit: ab5629677b79df0286df8ced99e919264e0b6aba author: Jirka Kremser - jkremser message: [BZ 1038067] - Resource Summary/Activity shows summary of disabled metrics - fixing the issue for resource groups (Autogroups and compatible ones). Also doing some refactoring, because the same code was in the portlet for resource and for group, so I moved the common functionality to the group portlet and resource portlet overrides the different parts. What would be even better is to introduce a common abstract class in the new package org.rhq.coregui.client.dashboard.portlets.common (the same way it is done in the org.rhq.coregui.client.inventory.common package). However, all the portlets follow this pattern (ResourcePortlet extends GroupPortles), so it would be inconsistent. After the refactoring, the code is more flat because the callback hell is not so evil when using own methods for each callback. The toll for it is the number of arguments that has to be passed to those methods representing the state that is needed inside the method. => needs to be cherry-picked over to the release branch once 3.2 is out (together with the previous commit)
release/jon3.2.x commit 03f930f8d89535f76e68778dd538d3a5d4101886 Cherry-Pick master 985cf07bc5835ab816d661008f1f752a355f3d4e release/jon3.2.x commit 8932ffebcdeec5c2277e77ab05b9d632637ab0fa Cherry-Pick master ab5629677b79df0286df8ced99e919264e0b6aba
Moving to ON_QA as available for testing in the following brew build: https://brewweb.devel.redhat.com//buildinfo?buildID=336752 Note: the installed version is still JON 3.2.0.GA by design and this represents part of the payload for JON 3.2.1 also known as cumulative patch 1 for 3.2.0.GA. How this will be delivered to customers is still being discussed.
verified jon 3.2.1 dr1
re-verified in JON 3.2 CP1
JON 3.2.1 released week of 5/5/2014