Bug 1445768

Summary: Unable to monitor EAP 6 in domain mode.
Product: [JBoss] Middleware Manager Reporter: Prachi <pyadav>
Component: Agent, download agentAssignee: John Mazzitelli <mazz>
Status: CLOSED CANTFIX QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact: jstickle
Priority: high    
Version: 7.0.0CC: abonas, jfrey, jhardy, mmahoney, obarenbo
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-05-03 17:53:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Middleware Target Upstream Version:
Embargoed:

Description Prachi 2017-04-26 13:11:27 UTC
Description of problem:Unable to monitor EAP 6 in domain mode. Agent is giving warning while installation


Version-Release number of selected component (if applicable):

5.8.0.12-rc1.20170425180304_4f35996 

How reproducible:


Steps to Reproduce:

1.download agent from HS UI
2. Install it using below command

Execute below command to install hawkular agent in EAP6 server:
******************************

java -jar hawkular-wildfly-agent-installer.jar --target-location <EAP6-server Home> --target-config <EAP6-server domain configuration xml file> --username jdoe --password password
******************************


3. start default domain

Actual results:

Agent is starting with warning and domain is not having any monitoring logs.

Agent Output:

******************************
[EAP@pyadav ~]$ java -jar hawkular-wildfly-agent-installer.jar --target-location /home/EAP/jboss-eap-6.4 --target-config /home/EAP/jboss-eap-6.4/domain/configuration/host.xml --username jdoe --password password
Apr 26, 2017 6:23:39 PM org.hawkular.wildfly.agent.installer.AgentInstaller downloadModuleZip
INFO: Downloading agent module extension from: http://10.16.23.128:8080/hawkular/wildfly-agent/download?appserver=eap6
Apr 26, 2017 6:23:54 PM org.hawkular.wildfly.module.installer.JBossModule installTo
INFO: Extracting module [file:/tmp/hawkular-wildfly-agent7226728610898204002.zip] to [/home/EAP/jboss-eap-6.4/modules]
Apr 26, 2017 6:23:54 PM org.hawkular.wildfly.module.installer.RegisterExtension registerToHost
INFO: Register HOST extension module=org.hawkular.agent
Apr 26, 2017 6:23:54 PM org.hawkular.wildfly.module.installer.XmlConfigBuilder warning
WARN: org.hawkular.wildfly.module.installer.XmlEdit[select=/host/extensions is-attribute-content=false is-ignore-attribute-value=false xml=<extension module="org.hawkular.agent"/>] does not select any element
Apr 26, 2017 6:23:54 PM org.hawkular.wildfly.module.installer.XmlConfigBuilder warning
WARN: org.hawkular.wildfly.module.installer.XmlEdit[select=/host/profile is-attribute-content=false is-ignore-attribute-value=false content=file:/home/EAP/jboss-eap-6.4/modules/system/add-ons/hawkular-agent/org/hawkular/agent/main/subsystem-snippet.xml] does not select any element
Apr 26, 2017 6:23:54 PM org.hawkular.wildfly.module.installer.XmlConfigBuilder warning
WARN: org.hawkular.wildfly.module.installer.XmlEdit[select=/host/profile/*[namespace-uri()='urn:org.hawkular.agent:agent:1.0'] is-attribute-content=false is-ignore-attribute-value=true attribute=type xml=<storage-adapter type="HAWKULAR" username="jdoe" password="password" url="http://10.16.23.128:8080"/>] does not select any element
Apr 26, 2017 6:23:54 PM org.hawkular.wildfly.module.installer.XmlConfigBuilder warning
WARN: org.hawkular.wildfly.module.installer.XmlEdit[select=/host/profile/*[namespace-uri()='urn:org.hawkular.agent:agent:1.0'] is-attribute-content=false is-ignore-attribute-value=false xml=<managed-servers><local-dmr name="Local" enabled="true" resource-type-sets="Domain Environment,Deployment,Web Component,EJB,Datasource,XA Datasource,JDBC Driver,Transaction Manager,Messaging,Socket Binding Group,Clustering,Hawkular"><wait-for name="/" /></local-dmr></managed-servers>] does not select any element
Apr 26, 2017 6:23:54 PM org.hawkular.wildfly.module.installer.XmlConfigBuilder warning
WARN: org.hawkular.wildfly.module.installer.XmlEdit[select=/host/profile/*[namespace-uri()='urn:org.hawkular.agent:agent:1.0'][@enabled] is-attribute-content=true is-ignore-attribute-value=false attribute=enabled xml=true] does not select any element
Apr 26, 2017 6:23:54 PM org.hawkular.wildfly.module.installer.RegisterExtension register
INFO: New serverConfig file written to [/home/EAP/jboss-eap-6.4/domain/configuration/host.xml]

******************************


Expected results:

Agent should install without warning and domain should contain monitoring logs of agent.

Additional info:

Able to monitor standalone server with the same mehod

Comment 2 John Mazzitelli 2017-05-03 14:13:47 UTC
Do we know when the last time it was that this worked? I cannot recall much changing in the installer recently that would have caused this.

Comment 4 John Mazzitelli 2017-05-03 17:53:57 UTC
It's all coming back to me now :)

This is a "CAN'T FIX" BZ. EAP6 does not allow custom extensions to be installed inside of it (that was a feature that was added to EAP7+).

Thus, the agent cannot be installed in EAP6 because it simply cannot run inside of EAP6. This is true for any subsystem extension - not just the agent. EAP6 did not support running custom subsystem extensions.