Bug 814733 - Verify that the RHQ/JON plugin works
Summary: Verify that the RHQ/JON plugin works
Keywords:
Status: VERIFIED
Alias: None
Product: JBoss Data Grid 6
Classification: JBoss
Component: Server
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 6.0.0
Assignee: Tristan Tarrant
QA Contact: Martin Gencur
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-20 14:52 UTC by Tristan Tarrant
Modified: 2015-02-06 01:19 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)
Steps performed to test JON with JDG (1.75 KB, application/octet-stream)
2012-05-09 12:15 UTC, Martin Gencur
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 820272 0 urgent CLOSED JBossAS 7 plugin unable to discover running JDG instances 2021-02-22 00:41:40 UTC

Description Tristan Tarrant 2012-04-20 14:52:43 UTC

Comment 1 Martin Gencur 2012-05-09 12:15:12 UTC
I was not able to find JDG server in JON discovery queue nor was able to add it manually into the view. 

Attaching steps performed to test JON+JDG integration.

Tested with bits downloaded from https://brewweb.devel.redhat.com/taskinfo?taskID=4372294

Findings:

- JON was able to discover running EAP6 ER6 and AS7.1.1 but was not able to discover running JDG ER7
- when trying to add the server manually to JON's inventory, the server throws the following exception when localhost/9990 connection information specified:

java.lang.RuntimeException:[1336565383535] org.rhq.core.clientapi.agent.PluginContainerException:Failed to add resource with type [JBossAS7 Standalone Server] and parent resource id [10001] -> org.rhq.core.util.exception.WrappedRemotingException:null -> org.rhq.core.util.exception.WrappedRemotingException:Discovery component invocation failed. -> org.rhq.core.util.exception.WrappedRemotingException:null
--- STACK TRACE FOLLOWS ---
[1336565383535] org.rhq.core.clientapi.agent.PluginContainerException:Failed to add resource with type [JBossAS7 Standalone Server] and parent resource id [10001] -> org.rhq.core.util.exception.WrappedRemotingException:null -> org.rhq.core.util.exception.WrappedRemotingException:Discovery component invocation failed. -> org.rhq.core.util.exception.WrappedRemotingException:null
   at Unknown.java_lang_RuntimeException_RuntimeException__V(Unknown Source)
   at Unknown.com_google_gwt_user_client_rpc_core_java_lang_RuntimeException_1FieldSerializer_instantiate__Lcom_google_gwt_user_client_rpc_SerializationStreamReader_2Ljava_lang_RuntimeException_2(Unknown Source)
   at Unknown.com_google_gwt_user_client_rpc_impl_SerializerBase$MethodMap_$instantiate__Lcom_google_gwt_user_client_rpc_impl_SerializerBase$MethodMap_2Lcom_google_gwt_user_client_rpc_SerializationStreamReader_2Ljava_lang_String_2Ljava_lang_Object_2(Unknown Source)
   at Unknown.com_google_gwt_user_client_rpc_impl_SerializerBase_$instantiate__Lcom_google_gwt_user_client_rpc_impl_SerializerBase_2Lcom_google_gwt_user_client_rpc_SerializationStreamReader_2Ljava_lang_String_2Ljava_lang_Object_2(Unknown Source)
   at Unknown.com_google_gwt_user_client_rpc_impl_AbstractSerializationStreamReader_$readObject__Lcom_google_gwt_user_client_rpc_impl_AbstractSerializationStreamReader_2Ljava_lang_Object_2(Unknown Source)
   at Unknown.com_google_gwt_user_client_rpc_impl_RequestCallbackAdapter_$onResponseReceived__Lcom_google_gwt_user_client_rpc_impl_RequestCallbackAdapter_2Lcom_google_gwt_http_client_Request_2Lcom_google_gwt_http_client_Response_2V(Unknown Source)
   at Unknown.org_rhq_enterprise_gui_coregui_client_util_rpc_TrackingRequestCallback_onResponseReceived__Lcom_google_gwt_http_client_Request_2Lcom_google_gwt_http_client_Response_2V(Unknown Source)
   at Unknown.com_google_gwt_http_client_Request_$fireOnResponseReceived__Lcom_google_gwt_http_client_Request_2Lcom_google_gwt_http_client_RequestCallback_2V(Unknown Source)
   at Unknown.com_google_gwt_http_client_RequestBuilder$1_onReadyStateChange__Lcom_google_gwt_xhr_client_XMLHttpRequest_2V(Unknown Source)
   at Unknown.anonymous(Unknown Source)
   at Unknown.com_google_gwt_core_client_impl_Impl_apply__Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2(Unknown Source)
   at Unknown.com_google_gwt_core_client_impl_Impl_entry0__Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2(Unknown Source)
   at Unknown.anonymous(Unknown Source)
   at Unknown.anonymous(Unknown Source)

Steps performed to import the server manually into the inventory:

- go to Inventory->Platforms
- open platform named "localhost"
- open Inventory tab of the platform
- click Import at the bottom, choose "JBossAS7 Standalone Server"
- specify connection information: Hostname: localhost, Port: 9990
- click Finish
- now the import fails and the exception is available at the top

Comment 2 Martin Gencur 2012-05-09 12:15:45 UTC
Created attachment 583256 [details]
Steps performed to test JON with JDG

Comment 3 Martin Gencur 2012-05-09 12:31:38 UTC
Those steps contain version 3.0.0.GA1 at some points but I actually used 3.1.0.GA.

Comment 4 Martin Gencur 2012-05-09 15:18:10 UTC
I was finally able to discover JDG instance in JON automatically but I had to do the following changes:

1) change file bin/product.conf in JDG in the following way -> change slot=jdg to slot=edg , this is due to bug in JBossAS7 plugin for JON which expects slot=edg, we can accomplish the same by renaming JDG server's dir to something that contains "-edg-"

2) add to standalone.xml:

<http-interface security-realm="ManagementRealm">
    <socket-binding http="management-http"/>
</http-interface> 

and create modules/org/jboss/as/domain-http-error-context/jdg module similar to eap module in the same folder

After that, I'm able to discover JDG instance and perform operations like stop,restart,...

However, I'm still not able to see any JMX statistics that should be available via infinispan-rhq-plugin.

Comment 5 Heiko W. Rupp 2012-05-09 19:33:02 UTC
The slot name + directory name fix has been incorporated in RHQ master b8459c0d57e

2) is required for management via RHQ

Comment 6 Tristan Tarrant 2012-05-16 20:18:00 UTC
A new RHQ/JON plugin will be released as part of ER9 that solves this issue

Comment 7 prabhat jha 2012-05-23 18:26:12 UTC
Verified by Martin as seen at https://tcms.engineering.redhat.com/run/39408/ . There is bug reported in JON however, details are at https://bugzilla.redhat.com/show_bug.cgi?id=824474


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