Bug 820272 - JBossAS 7 plugin unable to discover running JDG instances
Summary: JBossAS 7 plugin unable to discover running JDG instances
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: RHQ Project
Classification: Other
Component: Plugins
Version: 4.4
Hardware: Unspecified
OS: Unspecified
urgent
high
Target Milestone: ---
: JON 3.1.0
Assignee: Heiko W. Rupp
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks: as7-plugin 820435
TreeView+ depends on / blocked
 
Reported: 2012-05-09 13:54 UTC by Martin Gencur
Modified: 2013-09-03 15:07 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 820435 (view as bug list)
Environment:
Last Closed: 2013-09-03 15:07:06 UTC
Embargoed:


Attachments (Terms of Use)

Description Martin Gencur 2012-05-09 13:54:25 UTC
Description of problem:

The plugin is not able to auto-discover running JBoss Data Grid servers.

The problem is in class org.rhq.modules.plugins.jbossas7.JBossProductType, method determineJBossProductTypeViaProductConfFile:

slot.equals("edg") -> slot.equals("jdg")   ...JDG's product.conf file contains slot=jdg

method determineJBossProductTypeViaHomeDirName:

homeDirName.contains("-jdg-")  ...the server dir for JDG usually has "jboss-datagrid-server" in its name followed by version

Comment 1 Heiko W. Rupp 2012-05-09 19:31:31 UTC
There are two parts of this:

- wrong detection of product and directory

master b8459c0d57e

- jdg server does not by default expose a http management port -> RHQ can not connect to it.

[21:29:26] <asantos> pilhuhn, that will be included in er8

Comment 2 Charles Crouch 2012-05-09 22:31:44 UTC
This change should be pushed to release/jon3.1.x prior to going ON_QA. Bug 820435 is tracking the fix in master and is already ON_QA

Comment 3 Heiko W. Rupp 2012-05-10 08:06:05 UTC
With JDG er8 discovery works as expected

snert:/im/rhq/modules/enterprise/agent/target/rhq-agent hrupp$ bin/standalone.sh 
Listening for transport dt_socket at address: 8788

Starting the plugin container.
Loading plugins
...Loaded plugin: JBossAS7
...Loaded plugin: Platforms

Ready.
[0]:0 > disc s
Discovery took: 1365ms
[Resource[id=-3, uuid=fd425fbd-cfb9-4031-aaba-dbb669163e61, type={JBossAS7}JBossAS7 Standalone Server, key=/devel/jboss-datagrid-server-6.0.0.ER8/standalone, name=JDG (127.0.0.1:9990), parent=dhcp-0-204.str.redhat.com, version=JDG 6.0.0.ER8]]
[1]:0 > set id -3
[2]:-3 > avail .     
JDG (127.0.0.1:9990)( -3 ):DOWN
[3]:-3 > invoke installRhqUser user=rhqadmin||password=rhqadmin
[PropertySimple[id=0, name=operationResult, value=Management user [rhqadmin] added., override=null]]
[4]:-3 > avail .
JDG (127.0.0.1:9990)( -3 ):UP

Comment 4 Heiko W. Rupp 2012-05-10 11:38:49 UTC
release branch cc89a1666a69b

Comment 5 Libor Zoubek 2012-05-28 14:38:19 UTC
verified on JON 3.1.ER6 + JDG ER.10

Comment 6 Heiko W. Rupp 2013-09-03 15:07:06 UTC
Bulk closing of old issues in VERIFIED state.


Note You need to log in before you can comment on or make changes to this bug.