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
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.
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.