Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1075217

Summary: The unit always changes to B (Bytes) while setting custom value for Baselines in resource measurements graphs
Product: [JBoss] JBoss Operations Network Reporter: Jan Bednarik <jbednari>
Component: Monitoring -- OtherAssignee: Michael Burman <miburman>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: unspecified    
Version: JON 3.2.1CC: loleary, lzoubek, miburman, mithomps, mkoci
Target Milestone: ER01   
Target Release: JON 3.3.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-27 19:58:14 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:

Description Jan Bednarik 2014-03-11 18:09:45 UTC
Description of problem:

When setting the custom value for baselines in resource measurements graphs the unit changes to B (Bytes) from whatever unit there was before. This issue only applies for measurements regarding "data unit" range (e.g. GB, MB, etc).

Version-Release number of selected component (if applicable):
JON 3.2.1 DR2 (Build Number : d18651a:f535707)

How reproducible:
always

Steps to Reproduce:
1. Install JON server
2. Go to Inventory -> Platforms and select server platform
3. In Summary tab choose some measurement in "Resources: Measurements" section, for instance "Used Memory"
4. Try to change the value of some baseline (either High, Low or Mean) which has its unit other then B.

Actual results:
Whatever the former unit was (GB, MB etc) the new unit displayed is B.

Expected results:
The original unit should be retained

Additional info:
See also BZ 1075211 which might somehow link to this one as it also describes undesirable behaviour only applicable to the measurements regarding data unit range.

Comment 3 Michael Burman 2015-01-14 14:07:30 UTC
Fixed in master:

commit e5038b4ff473b5a3bd4219907439b1a5281f2956
Author: Michael Burman <miburman>
Date:   Wed Jan 14 16:05:04 2015 +0200

    [BZ 1075217] Store the scaled measurement unit and use it to convert to bytes before sending back to the server

Comment 4 Libor Zoubek 2015-01-15 07:27:39 UTC
branch:  release/jon3.3.x
link:    https://github.com/rhq-project/rhq/commit/ea16c2805
time:    2015-01-15 08:26:51 +0100
commit:  ea16c28054c4174146f6eeea7e39d1948c662688
author:  Michael Burman - miburman
message: [BZ 1075217] Store the scaled measurement unit and use it to convert to
         bytes before sending back to the server
         (cherry picked from commit
         e5038b4ff473b5a3bd4219907439b1a5281f2956) Signed-off-by: Libor
         Zoubek <lzoubek>

Comment 5 Simeon Pinder 2015-01-26 08:15:03 UTC
Moving to ON_QA as available for test with the latest 3.3.1.ER01 bits from here:
http://download.devel.redhat.com/brewroot/packages/org.jboss.on-jboss-on-parent/3.3.0.GA/12/maven/org/jboss/on/jon-server-patch/3.3.0.GA/jon-server-patch-3.3.0.GA.zip