Bug 809623

Summary: [as7] 'startTime' metric on 'Managed Server' Resources returns null value
Product: [Other] RHQ Project Reporter: Ian Springer <ian.springer>
Component: PluginsAssignee: Heiko W. Rupp <hrupp>
Status: CLOSED NOTABUG QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: high    
Version: 4.3CC: ccrouch, hrupp
Target Milestone: ---   
Target Release: RHQ 4.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-09 17:12:02 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:
Bug Depends On:    
Bug Blocks: 707223    

Description Ian Springer 2012-04-03 20:23:03 UTC
Heiko: Not sure about this one -- did that ever exist or did we just add it globally ?

Comment 1 Heiko W. Rupp 2012-04-04 09:19:06 UTC
This now lives at
core-service=platform-mbean/type=runtime:start-time

for standalone

for host=*

for host=*/server=*/

Comment 2 Heiko W. Rupp 2012-04-04 12:09:46 UTC
master 64d1d7f

Note the failure in integration tests comes from the fact that 
the startTime lives on the runtime part of a managed server at

/host=master/server=X -- this is not present for servers that are not started
while they can still be defined at
/host=master/server-config=X

Currently we are returning nothing here, as there is no start time.

Comment 3 Heiko W. Rupp 2012-04-05 09:29:25 UTC
Ian what do you propose we do with the startTime for non-started servers?

Comment 4 Ian Springer 2012-04-05 13:21:49 UTC
// (pseudo-code)
if (metricName.equals("startTime")) {
   if (pingServer()) {
       return getAttribute("startTime");
   } else {
       return null;
   }
}

Comment 5 Ian Springer 2012-04-09 17:12:02 UTC
Closing this, as returning a null value for the 'startTime' trait for a non-started Managed Server is the expected behavior.