Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1443063

Summary: Warnings shown when trying to configure EAP6 domain mode for hawkular agent installed via RPM
Product: [JBoss] Middleware Manager Reporter: Sunil Kondkar <skondkar>
Component: Agent, download agentAssignee: John Mazzitelli <mazz>
Status: CLOSED WONTFIX QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: medium    
Version: unspecifiedCC: fbrychta, mmahoney
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: 2018-01-04 15:35:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Warnings none

Description Sunil Kondkar 2017-04-18 12:08:14 UTC
Created attachment 1272295 [details]
Warnings

Description of problem:

Installation of the hawkular agent via RPM into an RPM installed EAP 6 works for standalone mode.

When tried to configure for domain mode with below command, it shows warnings in console and the host.xml is not updated with details like server-url and configuration of rpm-based EAP6 server in domain mode could not be completed.

Please refer attached warnings in console.

java -jar ${JBOSS_HOME}/bin/hawkular-wildfly-agent-installer.jar \
       --target-location=${JBOSS_HOME} \
       --target-config=domain/configuration/host.xml \
       --server-url=http://${HAWKULAR_SERVER}:${HAWKULAR_PORT} \
       --username=jdoe \
       --password=password \
       --config-only=true

Example of warning shown in console:
--------------------------------------------------------------------
Apr 18, 2017 7:42:36 AM org.hawkular.wildfly.module.installer.RegisterExtension registerToHost
INFO: Register HOST extension module=org.hawkular.agent
Apr 18, 2017 7:42:36 AM 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
---------------------------------------------------------------------

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

Middleware Provider ER1
CFME: 5.8.0.10-beta1.20170411212748_e47d319

How reproducible:
Always

Steps to Reproduce:

Reference installation doc:
https://docs.engineering.redhat.com/display/JP/CloudForms+Middleware+-+EAP+6+RPM+Agent+Install

1) Install EAP6 with - yum groupinstall jboss-eap6
2) Download agent rpm from: download.eng.bos.redhat.com/brewroot/packages/middleware-manager-agent-eap6/0.29.4/1.Final_redhat_2.1.ep6.el7/noarch/middleware-manager-agent-eap6-0.29.4-1.Final_redhat_2.1.ep6.el7.noarch.rpm
3) yum install middleware-manager-agent-eap6-0.29.4-1.Final_redhat_2.1.ep6.el7.noarch.rpm
4) 
export JBOSS_HOME=/usr/share/jbossas/
export HAWKULAR_SERVER=http://10.8.186.157
export HAWKULAR_PORT=8080
5) java -jar ${JBOSS_HOME}/bin/hawkular-wildfly-agent-installer.jar \
       --target-location=${JBOSS_HOME} \
       --target-config=domain/configuration/host.xml \
       --server-url=http://${HAWKULAR_SERVER}:${HAWKULAR_PORT} \
       --username=jdoe \
       --password=password \
       --config-only=true

6) Observe Warnings in console after step 5 and the host.xml is not updated.

Actual results:
Warnings in console after step5 and configuration of rpm-based EAP6 server in domain mode could not be completed. 

Expected results:
No warnings and successful server configuration.


Additional info: