Bug 754858

Summary: as7: discovery fails with newer versions of as7.1
Product: [Other] RHQ Project Reporter: Heiko W. Rupp <hrupp>
Component: PluginsAssignee: Libor Zoubek <lzoubek>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: high    
Version: 4.2CC: hrupp, loleary, theute
Target Milestone: ---   
Target Release: RHQ 4.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 754838 Environment:
Last Closed: 2012-02-07 19:22:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 754838    
Bug Blocks: 707223    

Description Heiko W. Rupp 2011-11-17 22:25:51 UTC
THis bug is to further work on the issue on top of the commits cited at the bottom.


+++ This bug was initially created as a clone of Bug #754838 +++

As7.1 has changed the setup of the management port to now also use a socket-binding reference.
The current code is not able to discover that versions and fails with an exception.

Stop-gap fix is to assume a default port if no other port is given in the 

<management-interfaces> section

As7.1a2:

 <management-interfaces>
            <native-interface security-realm="ManagementRealm">
                <socket-binding native="management-native"/>
            </native-interface>
            <http-interface security-realm="ManagementRealm">
                <socket-binding http="management-http"/>
            </http-interface>
        </management-interfaces>
and
 <socket-binding name="management-http" interface="management" port="9990"/>

older versions and eap6a2 ( dr5: )

        <management-interfaces>
            <native-interface interface="management" port="9999"/>
            <http-interface interface="management" port="9990"/>
        </management-interfaces>

--- Additional comment from hrupp on 2011-11-17 16:37:04 EST ---

In addition the hostname is also not correctly determined.

--- Additional comment from hrupp on 2011-11-17 17:24:16 EST ---

Commits

aad83e7 in release branch
f2edb384f3 in master

check for empty port and/or host and use default values in that case.

Comment 1 Heiko W. Rupp 2011-12-20 12:21:24 UTC
19097edb5d591dae5ae6fdf7565b682cd5b1506c in master

Comment 2 Libor Zoubek 2011-12-22 17:30:57 UTC
EAP6 DR8 is discovered fine both Standalone and DomainController

Comment 3 Mike Foley 2012-02-07 19:22:30 UTC
changing status of VERIFIED BZs for JON 2.4.2 and JON 3.0 to CLOSED/CURRENTRELEASE