Bug 980639
| Summary: | JBoss Web connectors are not discovered if host name contains dash/hyphen (-) | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Operations Network | Reporter: | Larry O'Leary <loleary> |
| Component: | Plugin -- JBoss EAP 5 | Assignee: | Thomas Segismont <tsegismo> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Mike Foley <mfoley> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | JON 3.1.2 | CC: | rhatlapa, tsegismo |
| Target Milestone: | ER01 | ||
| Target Release: | JON 3.2.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-01-02 20:37:03 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: | |||
Fixed in master
commit 089d80191b85565760a5097e2cc5336fe4e9e6bd
Author: Thomas Segismont <tsegismo>
Date: Wed Aug 7 18:53:44 2013 +0200
Simplified the regular expression matching connector components.
Side fix: servers started with -b [hostname] instead of -b [ip address] have connector with composed names: (myserver.com%2F127.0.0.1). It was not taken into account when trying to find the thread pool associated with it (in order to collect thread pool metrics).
Tested with EAP 5.1.2 and 5.2.0
Verified with JON 3.2.0.ER3 and EAP 5.2.0 - I see now the connectors (as ajp://127.0.0.1:8009 and http://127.0.0.1:8080) |
Description of problem: If EAP 5 was started with a bind address that contains a hyphen such as my-server.com, the JBoss Web connectors are not discovered. Version-Release number of selected component (if applicable): 4.4.0.JON312GA How reproducible: Always Steps to Reproduce: 1. Start EAP 5 using a bind address that contains a hyphen: ./run.sh -c all -b my-server.com & To simulate this, update the /etc/hosts file to point my-server.com at 127.0.0.1. 2. Start JBoss ON system. 3. Import EAP server into inventory. 4. Wait for service discovery to complete. Actual results: No connectors appear under the EAP 5 server's JBoss Web / Connectors auto-group (EAP my-server.com:1099 all / Resources / JBoss Web / Connectors) Expected results: The http and ajp connectors should appear under the EAP 5 server's JBoss Web / Connectors auto-group (EAP my-server.com:1099 all / Resources / JBoss Web / Connectors / ( ajp://my-server.com%2F127.0.0.1:8009 | http://my-server.com%2F127.0.0.1:8080 ) Additional info: This issue is due to a bad regular expression that assumes that the hyphen represents the delimiter between protocol, address, and port. It does not take into consideration that hyphen is a valid character in a host/domain name as per the RFC.