Bug 811279

Summary: importing JBossAS 5 server failed to import JVM child properly
Product: [Other] RHQ Project Reporter: John Mazzitelli <mazz>
Component: PluginsAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED NOTABUG QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: urgent    
Version: 4.4CC: 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-04-10 20:44:52 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: 782579    
Attachments:
Description Flags
screen snapshot of down jvm child resource none

Description John Mazzitelli 2012-04-10 15:37:12 UTC
Created attachment 576496 [details]
screen snapshot of down jvm child resource

I have a JBoss EAP 5.1 server running (it is secured with the user/pass of admin/admin).

I see it in my discovery queue, so I import it.

Everything gets into inventory and and everything is green (I checked the plugin config and it looks like the plugin assumed user/pass is admin/admin as a default, which is why it immediately came in green).

HOWEVER, the child JVM resource is red.  When I look at its plugin configuration, its type is "Java SE 5", not "parent" which is what I think it should be. For example, if I import the RHQ Server (which is really just a JBossAS 4 server), the JVM child comes in green and its type is "parent", NOT Java SE 5, which is what I see the JVM child under my JBoss EAP 5 server).

See attached screen shot.

Comment 1 John Mazzitelli 2012-04-10 15:40:48 UTC
note: we should check if this same thing is broken when importing JBossAS 4 servers. I only tried importing a RHQ Server - which did work, but we should try with a standalone "normal" JBossAS 4 server - not the "special" RHQ Server resource.

Comment 2 John Mazzitelli 2012-04-10 17:34:49 UTC
I just checked and this happens on older RHQ versions as well - so nothing recently broke this - it's been broken.

I see the problem with: RHQ 4.3.0 (build Number: a9b2a27)

Comment 3 John Mazzitelli 2012-04-10 17:37:35 UTC
note: if I go to the JVM child resource's Connection Properties, set Type to "Parent" and unset Connector Address, it goes green and the rest of the JVM's own child resources get discovered, committed to inventory and also go green.

Comment 4 John Mazzitelli 2012-04-10 20:44:52 UTC
OK, after digging into this deeper, I think this can be closed as NOTABUG.

Here's the thing - when I started my EAP instance, I had enabled jmx remoting (that is, I had passed in several of the jmxremote... system properties when starting it up).

That means the EmbeddedJMXServerDiscoveryComponent detected this as a remoted JMX server. There is code that looks to see if it is remoted - and if it is, it sets up the JVM resource with plugin config settings to access it. I then completed the config in the GUI by setting the credentials for my remoted JMX user/pass and it went green.

If it is NOT remoted, it simply sets the plugin configuration "Type" setting to "Parent" and assumes the parent component will handle accessing the MBeanServer.