Bug 820435 - 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: ---
: RHQ 4.5.0
Assignee: RHQ Project Maintainer
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On: 820272
Blocks: as7-plugin
TreeView+ depends on / blocked
 
Reported: 2012-05-09 22:29 UTC by Charles Crouch
Modified: 2015-02-01 23:28 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 820272
Environment:
Last Closed: 2013-09-01 10:17:46 UTC
Embargoed:


Attachments (Terms of Use)

Description Charles Crouch 2012-05-09 22:29:06 UTC
+++ This bug was initially created as a clone of Bug #820272 +++

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

--- Additional comment from hrupp on 2012-05-09 15:31:31 EDT ---

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 1 Charles Crouch 2012-05-09 22:30:11 UTC
All RHQ related changes are done for this fix in master so pushing to ON_QA. Note target release is RHQ4.5

Comment 2 Heiko W. Rupp 2012-05-10 08:06:44 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 3 Heiko W. Rupp 2013-09-01 10:17:46 UTC
Bulk closing of items that are on_qa and in old RHQ releases, which are out for a long time and where the issue has not been re-opened since.


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