Red Hat Bugzilla – Bug 1016678
Notify user when unmanagable AS7 is discovered
Last modified: 2015-11-01 19:43:38 EST
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):
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 sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
Expected results: agent should tell the user about missing http-management-interface in his configuration.
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
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.
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.
Just checked the changes from Bug 1119240. Yes, the IPCE has an appropriate message now. No additional work needed.
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.