Bug 1016678

Summary: Notify user when unmanagable AS7 is discovered
Product: [JBoss] JBoss Operations Network Reporter: Libor Zoubek <lzoubek>
Component: Plugin -- JBoss EAP 6Assignee: Libor Zoubek <lzoubek>
Status: CLOSED CURRENTRELEASE QA Contact: Armine Hovsepyan <ahovsepy>
Severity: medium Docs Contact:
Priority: unspecified    
Version: JON 3.2CC: ahovsepy, loleary, mfoley, mkoci, rafaelcba, theute, tsegismo
Target Milestone: ER01   
Target Release: JON 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-12-11 14:02:31 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:

Description Libor Zoubek 2013-10-08 14:05:16 UTC
Description of problem:

When you start AS7 without http management interface enabled/defined, agent discovers such AS7 and detects (or not detects) management port as 0. When user imports such server it never comes up. User has to know, that port 0 means that agent did not detect the port => why that happened? user has to find out he's missing http-management interface definition within his configuration.

This might be quite common mistake, because when you run stock EAP6.1.1 in domain mode with host-slave.xml (host controller only), http interface is not defined in this default config.

Version-Release number of selected component (if applicable):
JON 3.2.ER3

How reproducible: always


Steps to Reproduce:
1. unzip EAP6
2. cp -a domain machine1
3. run domain controller ./domain.sh --host-config-file=host-master.xml
4. run host controller ./domain.sh -Djboss.domain.base.dir=../machine1 --host-config=host-slave.xml -Djboss.domain.master.address=127.0.0.1


Actual results: host controler is discovered with management port 0, when imported agent throws exception with invalid port

Caused by: java.lang.IllegalArgumentException: Invalid port: 0
        at org.rhq.modules.plugins.jbossas7.ASConnection.<init>(ASConnection.java:165)
        at org.rhq.modules.plugins.jbossas7.ASConnection.newInstanceForServerPluginConfiguration(ASConnection.java:230)
        at org.rhq.modules.plugins.jbossas7.BaseServerComponent.start(BaseServerComponent.java:98)
        at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)


Expected results: agent should tell the user about missing http-management-interface in his configuration.
it should:
not discover such host controller at all, but explain everything into log file
OR: discover such host controller, but when imported, provide hint to user, so he can fix his setup

Additional info:

Comment 1 Simeon Pinder 2013-11-08 14:41:26 UTC
Moving to unspecified target milestone as only JON 3.2.0 'blockers'(https://url.corp.redhat.com/bz-jon32-blockers-list-notmodified-nodocs) will make it into subsequent builds after ER5.

Comment 4 Libor Zoubek 2014-08-22 23:04:05 UTC
Thomas this might be already implemented within Bug 1119240. If port is detected as 0 we throw PluginConfigurationException with appropriate message, so user gets a clue what to do.

Comment 5 Thomas Segismont 2014-08-25 12:11:00 UTC
Just checked the changes from Bug 1119240. Yes, the IPCE has an appropriate message now. No additional work needed.

Comment 6 Jan Bednarik 2014-09-11 13:16:23 UTC
Moving to VERIFIED.

If the http-interface is not specified in host-slave.xml, the host controller appears to be down. As described in BZ 1119240 Comment 2, there appears a triangle icon next to availability icon which, when clicked, opens the window with further explanation: "Unable to detect management port. Please enable management HTTP interface on and then set correct port number in Connection Settings of this resource". The same warning is logged in agent.log file as a WARN message while starting the host controller.

Version:3.3.0.ER02
Build Number:4fbb183:7da54e2