Bug 741691

Summary: missing some units in xsd
Product: [Other] RHQ Project Reporter: John Mazzitelli <mazz>
Component: PluginsAssignee: John Mazzitelli <mazz>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.1CC: hrupp
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-07 19:18:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
plugin used in verification
none
plugin descriptor used in verification none

Description John Mazzitelli 2011-09-27 15:29:43 UTC
We support many unit types in the code -  MeasurementUnits.

However, for some reason, our rhq-configuration.xsd is missing some - so a plugin cannot use what the code actually supports.

need to add to rhq-configuration.xsd to match what we support

Comment 1 John Mazzitelli 2011-09-27 15:36:48 UTC
will add the following units to the descriptor schema since they are supported by MeasurementUnits: petabytes, epoch_seconds, jiffys, microseconds

Comment 2 John Mazzitelli 2011-09-27 15:39:35 UTC
master commit c14cbc4 adds the four missing units. for QA to test, you can write a very simple plugin wiht just a descriptor that uses the four new units and makes sure you can add values to them with the appropriate unit specifiers (see MeasurementUnits for those - e.g. us=microseconds)

Comment 4 Mike Foley 2011-09-29 15:21:18 UTC
attaching a handwritten plugin that contains a plugin descriptor that uses all these new units of measure.

Comment 5 Mike Foley 2011-09-29 15:21:51 UTC
Created attachment 525592 [details]
plugin used in verification

Comment 6 Mike Foley 2011-09-29 15:22:25 UTC
Created attachment 525593 [details]
plugin descriptor used in verification

Comment 7 Mike Foley 2011-09-29 15:25:29 UTC
verified by writing a custom plugin (attached) that utilized all new units of measure.  uploaded this plugin to RHQ, plugins update, and then created an alert using these new units of measure.

Comment 8 Mike Foley 2012-02-07 19:18:52 UTC
changing status of VERIFIED BZs for JON 2.4.2 and JON 3.0 to CLOSED/CURRENTRELEASE